Example of new OJS3 Journal with custom template


#23

Not working yet and it had the codes from before. I have moved the title and author section to the breadcrumbs area. Can this be due to it?


#24

I think you should check out bootstrap documentation about affix:
https://getbootstrap.com/docs/3.3/javascript/#affix


#25

Hi @Vitaliy
Here is my tested ojs http://antologimatematika.id
For my journal, it does not have many items except for articles, announcement and we plan to add editorial.
I have activated browse plugin with your manuscript jats theme. We want to display the items properly in front page together with the slider.

  1. Recent articles remain in the left but only display current issue
  2. Editorial and announcement in the right
  3. Slider in the mid top.

Where do I add this?

In the current version, the plugin requires adding a specific method in the PublishedArticleDao class:

Thanks for your support


Journal of Medical Research and Innovation
#26

In this file under any function, here, for example:


#27

After inserting the codes, the web gets blank.
This is the error log says

[05-Nov-2017 09:39:49 UTC] PHP Strict Standards: Declaration of OpenAIREDAO::setOAI() should be compatible with PKPOAIDAO::setOAI($oai) in /home/k2542002/public_html/antologimatematika.id/plugins/generic/openAIRE/OpenAIREDAO.inc.php on line 19
[05-Nov-2017 09:39:49 UTC] PHP Fatal error: Cannot redeclare PublishedArticleDAO::getPublishedArticlesByJournalId() in /home/k2542002/public_html/antologimatematika.id/classes/article/PublishedArticleDAO.inc.php on line 269


#28

I have changed the method published several posts above. Try it.


#29

It works. Some questions:

  1. How do I change Editorials, Commentaries, Education & News to just Editorials. Below this editorial, I wan to display announcement
  2. How I hide Current Issue with its published articles?
  3. How I determine a number of recent articles to be displayed?

#30
  1. You can change sections id numbers to yours. Check sections table in your database to pick up valid section IDs:

I don’t know how to display the announcements there. Haven’t added such functionality.

  1. Modify: templates/frontend/pages/indexJournal.tpl. It’s better to accomplish in your child-theme. Just copy this file there and delete everything except:

     {include file="frontend/components/header.tpl" pageTitleTranslated=$currentJournal->getLocalizedName()}
    
     <div class="page_index_journal">
     	{call_hook name="Templates::Index::journal"}
     </div>
    
     {include file="frontend/components/footer.tpl"}
    
  2. Here:


#31

Thanks a lot @Vitaliy
Can you lead me to find the section IDs? I just found the following item in the DB
image

I have created two additional section in my journal, Editorial and News.

image

How I change the displayed items to Editorials


#32

There must to be “sections” table with an appropriate row.


#33

I got the section table
image

I set as follows
image

What I understand is that line 78 means max 3 (3,2) Editorials will be displayed and 2 (3,2) refers to ID section (Editorials) in DB. Is it correct?


#34

I am still not able to display the Editorial and News item. I have made one editorial and news section to try with through quick submit plugin.

I tried this setting
image


#35

The second number in the DBResultRange should be “1”. The first - is a number of articles to display.
Here you point the IDs of your sections (numbers at the end of lines):


From where those variables: $showArticlesCount and $showNewsCount, came from?


#36

$showArticlesCount and $showNewsCount are already there. I have referred to journal section IDs (1 for articles, 2 for Editorials, and 3 for News) but the latter items are not displayed yet.


#37

Don’t see these variables in the latest version. Can you compare the code?:

Also, if you want me to review the code, you can create an account on GitHub and upload plugin with your modifications there.


#38

The plugin should works. We use the same code.
Also, we are not planning to make any public releases for this plugin, because it requires modification of OJS core file. So its setup would not become more user-friendly.


#39

Hi @Vitaliy
I reinstalled your browser plugin, switched to bootstrap theme. It displayed the items, http://antologimatematika.id
How could the following items changed to only Editorials?
image

Do you use own plugin to display the articles etc?


#40

Check locale folder inside the plugin for localizations:

We use JATSParser plugin for displaying articles. It renders JATS XML and displays it on article detail page.


#41

I have tried your JATSParser, but article detail page looks better with your built manuscript theme than bootstrap.
For the slider widget, can it display the article title and author names only?


#42

It is all compatible. That is JATSParser plugin, browse plugin and JATS-Manuscript theme.

You can modify the template as usual. For example, the abstract for “recent articles” is coded here: