New OJS 3 Theme on Bootstrap 4

ojs
ojs3
bootstrap
jats
theme
Tags: #<Tag:0x00007f670d81d668> #<Tag:0x00007f670d81d500> #<Tag:0x00007f670d81d3c0> #<Tag:0x00007f670d81d280> #<Tag:0x00007f670d81d118>

#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


#74

Apologies: thank you already answered me in the other post

Hello @Vitaliy . In your example http://ojsdemo.e-medjournal.com/index.php/oldGregg/article/view/4

you show a fig un xml. Where you opload the fig1.png? in the submission procces or on an external server for figures?

Figure 1 Awesome figure title.

Another boring figure caption.

Regards


#75

Figure is simply attached to the XML galley through a dashboard.


#76

Hi.
Thanks for your great work.
Question: There is a problem with recaptcha v2. It request to agree with privacy terms but there is no option to do it. How can I fix it?

Regards,


#77

Replied here: "You must agree to the terms of the privacy statement" Cant be seen on Registration page


#78

Hi @Vitaliy,
Is there a way to force a new line (or break) in the table head cell?

Best regards,


#79

You can put content into paragraphs.


#80

I think p tags are not identified or they are cleared. I do not get the following working. They appear in a single row.

<td><p>content 1</p><p>content 2</p></td>
or
<th><p>content 1</p><p>content 2</p></th>

Best regards,


#81

You can add them manually, most important that they are supported by JATS Parser.
Think, putting these lines into the p tag will be enough: https://github.com/Vitaliy-1/oldGregg/blob/master/templates/frontend/parser/table.tpl#L64-L68


#82

I made three changes:

1. Added last 4 lines in somewhere beginning of text.tpl

{strip}
    {foreach from=$parContent->getType() item=textType key=k}
        {if $textType === "bold"}
            <strong>
        {elseif $textType === "italic"}
            <em>
        {elseif $textType === "sup"}
            <sup>
		{elseif $textType === "br"}
            <br />
		{elseif $textType === "p"}
            <p>
2. Added last two lines towards the end of text.tpl

{foreach from=$parContent->getType() item=textType key=k}
        {if $textType === "bold"}
            </strong>
        {elseif $textType === "italic"}
            </em>
        {elseif $textType === "sup"}
            </sup>
        {elseif $textType === "sub"}
            </sub>
		{elseif $textType === "p"}
            </p>
3. Added last two items in Text.inc.php

private static $nodeCheck = array("bold", "italic", "sup", "sub", "xref", "underline", "monospace", "ext-link", "br", "p");

Still, I am not getting support for br or p in table cell.

Should I do something more?

Best regards,


#83

Paragraphs inside the table are already supported by JATS Parser. You simply need to put the loops, where iteretion through them is done, inside p tags. Foreach loops are here:




Did you try that? I suppose, this should be enough.


#84

As for br tag it seems like a good idea. I think it can be incuded after I renew the source code on the GitHub, alongside with short guide how add the support for new tags.

But you were on the right path exept that p tag should not be added to the nodeCheck array as it’s used for parsing data inside the paragraph node. This method: https://github.com/Vitaliy-1/oldGregg/blob/master/jatsParser/src/JATSParser/Body/Text.inc.php#L57 is quite tricky and uses recursion for parsing nested elements inside the paragraph any level depth. Recursion there goes to all parent elements from the text nodes until this element is a paragraph (p).


#85

will wait until you update the source code.

Best wishes.


#87

Hi, I have installed the plugin (master) on …/plugin/themes/oldGregg , running PHP 7.0.30-0 and OJS 3.1.1.2. I logged inn to OJS admin and activated the plugin on the “Plugins” page. But, I cannot see it when I try to enable the theme in “Website Settings” on “Appearance” menu. What is wrong?

Regards
Obi


#88

You need PHP 7.1 or higher.