pkp / citationstylelanguage Goto Github PK
View Code? Open in Web Editor NEWAn OJS 3 plugin to generate an article citation in any CSL citation style using citeproc-php.
License: GNU General Public License v2.0
An OJS 3 plugin to generate an article citation in any CSL citation style using citeproc-php.
License: GNU General Public License v2.0
Hi all,
I’m running a new installation of OJS 3.04-1 on Ubuntu 22.04 with PHP 8.1 and Apache2.
MacOs Catalina 10.15.7
Chrome 114.0.5735.198
I have a strange problem with the Immersion theme. When I install the Citations plugin, it displays incorrectly, and doubles up.
This behaviour also occurs using the Health Sciences theme, but does not with the default theme.
The Apache log shows no errors when the plugin is enabled, nor when a page is loaded. Nothing in the PHP log either.
Thank you for any assistance you can provide.
ETA: I did try to update the Citations plugin, but was not successful. Attempting to upgrade to the latest github release via the backend was rejected, and deleting the plugin broke the plugin interface.
ETA2: If I select a citation style in the first menu, the site breaks, and I get a blank white page with the citation as plain text across the top.
I would also add that, more generally, the whole sidebar seems to be malfunctioning. A number of block plugins simply do not display.
I just noticed that when I load the settings form of the plugin, the form does not set the selected Primary Citation Format option as selected. It's the same for Additional Citation Formats and Downloadable Formats.
I saw this on an Open Journal Systems 3.1.0.1 installed from the .tar.gz
It looked at it on a FireFox 52.5.3 (32-Bit) (Windows) and Google Chrome (Version 62.0.3202.89 (64-Bit))
I think this issue we have is related with this one: #95
Currently we have a journal which names "Cinema & Território" and, in the citation, the name appears encoded like:
Baía Reis, A., Mendes, G., Rebanda Coelho, I., & Norton Dias, T. (2023). Editorial | A Direção da C&T. Cinema &Amp; Território, (8), 7.[ https://doi.org/10.34640/c.t8uma2023editorial](https://doi.org/10.34640/c.t8uma2023editorial)
I've found if I remove the htmlspecialchars
function at line 320: CitationStyleLanguagePlugin.inc.php (https://github.com/pkp/citationStyleLanguage/blob/3_2_1-2/CitationStyleLanguagePlugin.inc.php#L320):
$citationData->{'container-title'} = htmlspecialchars($context->getLocalizedName());
the name appear correctly with one single encoding. I'm guessing that, besides this one, a second encoding occurs at the template level. So my thoughts go to have only one, but which one?
Such possibility would be helpful when journal's website has two languages to choose (for example X and English) but some articles have English translation of titles and abstracts as supplementary information. I've tried to customize it (I am not PHP programmer) in the code, but it seems that citations are generated on a base of page information which differ depending on page language.
Looks like the UserGroupDAO
has been removed, therefore this piece of code needs to be reviewed:
One of our editors chose MLA as our Primary Citation Format. As Additional Citation Formats only Chicago was chosen. When you are now on the article page you can change the citation format from MLA to Chicago. But after that you are unable to change the citation style back to MLA because only the Additional Citation Formats are listed in the drop down.
I think it is not very obvious that you have to select the Primary Citation Format as an Additional Citation Format in order to select it again. I propose to always show the Primary Citation Format as an option in the drop down, even when the format is not selected as Additional Citation Format.
Hello there! (newbie here...)
I would like to confirm if the plugin version 3.3.0 is compatible with OJS 3.3.x?
I am getting an error as of follow:
[Thu Jun 23 15:59:57.486677 2022] [php7:error] [pid 107] [client 10.74.16.113:34594] PHP Fatal error: require_once(): Failed opening required '/var/www/html/ojs/plugins/generic/citationStyleLanguage/lib/vendor/autoload.php' (include_path='.:/usr/share/php') in /var/www/html/ojs/plugins/generic/citationStyleLanguage/CitationStyleLanguagePlugin.inc.php on line 17
In the file CitationStyleLanguagePlugin.inc.php
has the require_once(__DIR__ . '/lib/vendor/autoload.php');
, but in our instalation the folder ./ojs/lib/
has only a folder called bkp
.
So, I am not sure if our instalation has a bug itself, we should somehow run a composer install to get the vendor or if the plugin is not compatible with the version 3.3.x.
Thanks.
Old version of citeproc-php has bug seboettg/citeproc-php#46
Update it to the newer version, please.
When an article is published in an ahead-of-print issue first when accepted (say 2021), and then it is transferred to an issue with publication year 2022, the citation year is still 2021 and not changed to 2022 which it should according to reference rules.
I request that you add an option to the plugin to choose if the displayed year should be based on publication date of the article or the publication date of the issue. A similar option is available for the copyright year.
Hi,
Article citation has some bug regarding & char in the title of the journal. You can see it here: https://hrcak.srce.hr/ojs/index.php/slpdj/article/view/23237. "amp" is added twice for some reason.
regards.
When exporting to bibtex or RIS formats the abstract contents include
and
(in the form of <p> and </p>), at the beginning and end. Those characters are not part of the abstract contents added to the publication.A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.