New OJS 3 Theme on Bootstrap 4

Hi Vitaly,

Do you have a time for updating the Old Gregg Theme?

Hi @Gokmen_ARSLAN,

I’ve done some texting and fixes for the last several days. Think, after styling of HTML and PDF galley pages theme can be released, maybe on this or next weekend.

I’ve made a release: Release 2.1.0 · Vitaliy-1/oldGregg · GitHub
Still thinking about the sidebar and styling for Archives page with possibility to show issues by year but nevertheless it looks ready. It’s compatible with OJS 3.2.1 and the latest JATS Parser Plugin but the latter is still in beta and I expect substantial changes before the production release. Live example: Психосоматична медицина та загальна практика (the journal doesn’t use some features of the theme).

1 Like

Is it necessary to install and activate the JATS Parser plugin? I mean, it does not include in the theme

The theme is decoupled from the JATS Parser. The latter is aimed to be used with any theme, including Old Gregg. From the next production release JATS Parser Plugin stops rendering JATS XML on a galley page. Instead, it will allow converting production ready file into full-text, which would be treated as a Publication property, saved in the database and showed on the article landing page after being published.

Unlike the theme, current version of JATS Parser Plugin is unstable, e.g., full-text may not be saved with the current memory limit in the publication_settings table, setting_value column.

So, XML file is not required anymore? Sorry, I have not understood about this

The reference could not be displayed yet. I tried selecting either Force to display references from JATS XML or Force to display parsed references from OJS in Plugin setting

Full-text is still generated from JATS XML but statically on the back-end when JATS Parser Plugin is enabled: GitHub - Vitaliy-1/JATSParserPlugin: OJS3 Plugin for parsing JATS XML and displaying it on article detail page. The theme will work normally without full-text generation, it’s not mandatory.

The mechanism how references are parsed from JATS XML will change, I’m still working on it. They will be parsed and saved into OJS database.

1 Like

I think this is a good idea.

Hi @Vitaliy
I think the mostViewed articles are not generated in mine Mathematics Education Review

Hi @kawahyu,

The code retrieves most viewed articles for the last 12 months (it’s not customizable yet) from metrics table once a day and stores it in the cache. I can think of 2 possible reasons, statistics hasn’t been recorded for the last year or cache isn’t regenerated yet. Can you try to clear the cache and look for the file fc-oldgregg-1.php inside the cache folder?

The web started in the last two months. Could it be the reason?
File fc-oldgregg-1.php is found in the cache folder

Is the file empty? Also, what about Statistics → Articles, does it show article views?

Dear Vitaliy, have you seen what happens when you change the language to english?

Can you explain in more details?

Only
<?php return array (
);

Yes, it does

Just want to clarify, did you clear the data caches? If it doesn’t help can you send me a dump of the metrics table?

I did. Ok, I’ll send it.

Thanks,

Hmm, the data look correct. I’m wondering if I should pass date in the different format. Can you perform some debugging? If you could change 2 lines of code it would be great: oldGregg/OldGreggThemePlugin.inc.php at 7a3a8b2c9ece8ad57df7add617e5699a65d675dc · Vitaliy-1/oldGregg · GitHub
The parts where: Y-m-d change to Ymd. Then clear the data caches and test if it works. If it’s the right path, 4 articles should appear as most viewed. Let me know if it works.

It works, 4 articles appear as most viewed

1 Like

I want to display the number of views after the publication date in Most Viewed. I tried this code mostRead/block.tpl at master · ajnyga/mostRead · GitHub but it did not work.