New OJS 3 Theme on Bootstrap 4

theme
jats
bootstrap
ojs
ojs3
Tags: #<Tag:0x007f7699f1ec28> #<Tag:0x007f7699f1eae8> #<Tag:0x007f7699f1e9a8> #<Tag:0x007f7699f1e868> #<Tag:0x007f7699f1e728>

#54

I have made a major update to the theme. Most changes were made in JATS Parser; it was fully rewritten and now supports many JATS XML tags, including different text formatting (bold, italic, superscript, etc.; nested text formatting).

I have pushed all changes into the master branch. Hope, someone could test new theme version before release.

to @kawahyu
The support for APA references is added partially. Style reference can be changed through appearance menu. I want to ask you to create necessary template layout. Of course, if you have some experience in it. APA templates should be created here: https://github.com/Vitaliy-1/oldGregg/tree/master/templates/frontend/parser/apa
I have already made layout for journal articles. What is left - make similar changes for books, chapters, and conferences. You can find an example in the vancouver folder: https://github.com/Vitaliy-1/oldGregg/tree/master/templates/frontend/parser/vancouver
Tell me if you are interested in this.

Also, developers working with OJS may find interesting the part of the code which transforms JATS XML into the objects (JATS Parser): https://github.com/Vitaliy-1/JATSParser
It works quite simple. Code sample:

use JATSParser\Body\Document as Document;

$jatsDocument = new Document("document.xml");

Where document.xml is the path to an actual JATS XML file.
Now $jatsDocument variable contains the PHP object model of an article. It is worth to mention that the JATS Parser doesn’t validate XML, but it can be changed in the future. @asmecher - maybe you find the possibility of transforming JATS XML into PHP objects interesting as it allows to reuse article’s parts (such as references) anywhere in the OJS code.


#55

Thanks @Vitaliy
I will try it. I will ask you if having any issues


#56

Thanks for the major update. I will test it and report at earliest possible.

Best regards,

Edit:

It looks good to me. No problem found so far.

However, I have a question (not a new one) regarding citation. When there is a middle name of an author, only the initial of first name is presented, initial of middle name is not shown. There should have been initials of both first and middle name in the Vancouver system.

If this problem is not only with me, shall I open an issue in GitHub?


#57

Hi @Vitaliy,

Interesting – we have a lot of work to do on document composition/transformation before we can rely on JATS as a universal solution for OJS (many users just want to use Word documents or equivalent and not worry about semantics) but once we’ve built in some better tools and the publishing landscape has moved further in that direction I agree that this is a sensible document model to use for OJS.

One complication is that we’d need to make sure we didn’t leave OMP (and possibly OCS) behind; JATS doesn’t make sense for those, and there isn’t a clear front runner equivalent for monographs (possibly EPub, though it’s a very different model than JATS) or conference papers.

Regards,
Alec Smecher
Public Knowledge Project Team


#58

OOXML has quite straightforward structure. Theoretically, I see no problem in writing the parser that will retain all the data structure from Word document and transfer it to JATS. Practically, I have already tried to perform DOCX parser in Java and retrieved the similar structure to PHP objects for JATS: https://github.com/Vitaliy-1/docxParser/tree/master/src/main/java/com/emed/docxClasses
Although there is some concerns with references (users usually just don’t know how to cite literature with native Microsoft Word tool), I am planning to try to transfer this code in PHP and use this converter in our publishing model.

JATS XML is article oriented, so it is really can be a problem to use it for monographs.


#59

Probably, it would be better to open an issue on the Github.


#60

Hi @Vitaliy,

It is possible to transform OOXML to JATS, but not with 100% certainty, as you’d be going from a layout format to a semantic format, and the parser needs to guess the semantic meaning based on the layout. As much as we’d like to move to semantically-rich formats throughout, we’ll probably need to maintain pathways for both JATS and other formats for quite some time, possibly until authors are comfortable authoring documents in something other than a layout format.

Regards,
Alec Smecher
Public Knowledge Project Team


#61

Hi @Vitaliy,
I upgraded new theme to my site and it is working good.
I have done some twists to the templates in my child theme to my taste.

I would like to modify (or add support in the theme itself) a few things and request you to provide working guide on that direction. If you think these are worth adding to the theme itself, let me know, I will add issues in the GitHub.

1A. When we click the author name in the article detail page, it pop-up author affiliation. How can I add more information like bio-statement and ORCID.

1B. I would like the pop-up to disappear when i click any other part of the page. Currently, I have to click the same author again for it to disappear.

2 . In big screens, I would like to see the reference when i click the citation. This is only possible if I have already clicked “reference” tab. How can I visit corresponding reference by clicking citation even if I have not already clicked “reference” tab.

Best regards,


#62

Hello Everybody

I install theme oldGreg (multijournal instalation) but I need to modify some small elements

Languaje block:

I activate the plugin on the main site of ojs 3.1.1:


In the configuration I have the following but it does not show me the block
image

Footnote:

I want delete or modify :

how do I do that? In default theme in index page they are not and are only visualized within each journal

Regards
Cristian


#63

I suppose, this is index page for multijournal installation and I haven’t styled it yet (it is first in my TODO list). If you are hande with front-end development, you can modify this page by copy this file: https://github.com/pkp/ojs/blob/master/templates/frontend/pages/indexSite.tpl into the theme plugin’s correspondend directory: https://github.com/Vitaliy-1/oldGregg/tree/master/templates/frontend/pages

For styling it is better to create new CSS file here: https://github.com/Vitaliy-1/oldGregg/tree/master/css and point the path to it in the main PHP file of the theme: https://github.com/Vitaliy-1/oldGregg/blob/master/OldGreggThemePlugin.inc.php#L70

For the footer, it is coded here: https://github.com/Vitaliy-1/oldGregg/blob/master/templates/frontend/components/footer.tpl
If you want to preserve the changes after each theme upgrade, it is better to use own child-theme: https://pkp.gitbooks.io/pkp-theming-guide/content/en/child-themes.html


#64

Dear @Vitaliy
I tried adding fontawesomes in footer, some appear and some did not.
http://jurnalbeta.ac.id


#65

I need more information on this. Can you share the code that you have tried to add and your OJS version. Also, do you use latest theme version?


#66

I don’t use the latest OldGregg, Ojs 3.1.0. Here the fontawesome codes which could not show up

   <a href="https://web.facebook.com/betajtm"><i class="fa fa-facebook" aria-hidden="true"></i></a>
    <a href="https://twitter.com/jurnalbeta"><i class="fa fa-twitter" aria-hidden="true"></i></a>
`<span class="fa fa-fa fa-file-text-o"></span>`

<span class="fa fa-map-marker"></span>
<span class="fa fa-university"></span>

The last two codes did work


#67

Did you check this code to be valid according to fontawesome v5?


#68

Thanks, it is solved. It is about the prefix fa, fab and fal
https://fontawesome.com/how-to-use/svg-with-js


#69

Hi Vitaliy,

I installed your theme in our website. The website is displaying correctly in Mozilla Firefox 59.0.3 and Google Chrome Version 66.0.3359.139. However, in Internet Explorer version 11.431.16299.0, the webpages are not displaying correctly. The article details are not displayed there fully. I see only title of the article. No other details. I thought it could be a problem with my website/web host. So, I checked your demo site through IE.
http://ojsdemo.e-medjournal.com/index.php/oldGregg/article/view/4. Same problem. I could not see full article details. Any solution? Thanks.


#70

Internet Explorer isn’t update for a long time. As I remember the last update was in 2013. But there was a lot of changes in front-end development from that time. So, of course some issues can arise.

I think we shouldn’t pay much attention on this browser as only minority of people use it. For example, according to w3schools: https://www.w3schools.com/browsers/default.asp only 3.9% of people are using Edge/IE.

You can open issue on GitHub’s theme plugin page with describing the problem. I will take a look in a free time.


#71

Hi… Sir, I am happy to get your info, but why I can’t install that theme?


#72

Check the release you installed with your Ojs version.


#73

Keep in mind that OJS version must be 3.1.1 and PHP version >=7.1