Coder Social home page Coder Social logo

pkp / citationstylelanguage Goto Github PK

View Code? Open in Web Editor NEW
14.0 14.0 51.0 416 KB

An OJS 3 plugin to generate an article citation in any CSL citation style using citeproc-php.

License: GNU General Public License v2.0

PHP 77.66% Smarty 14.34% JavaScript 5.02% CSS 2.99%

citationstylelanguage's People

Contributors

ajnyga avatar alexandrafo avatar asmecher avatar bozana avatar chj2812 avatar ckamburov avatar crism avatar defstat avatar diegojmacedo avatar ewhanson avatar jhonathanlepidus avatar jirrka avatar jnugent avatar jonasraoni avatar mhvezina avatar mirkospiroski avatar mooselybased avatar mtub avatar natewr avatar neffe avatar nongenti avatar obidjonabdulloyev avatar osmndrmz avatar pnault avatar ppv1979 avatar primoz-svetek avatar stweil avatar tgc avatar tigran54 avatar vormia avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

citationstylelanguage's Issues

Citations not showing correctly in Immersion theme

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.

Screen Shot 2023-07-31 at 10 43 12 am

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.

Settings form does not select selected options

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))

Double encoding on citations

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?

Add option to generate citations only in main language of an article.

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.

Primary Citation Format can't be selected when not set as Additional Citation Formats

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.

[QUESTION] Is this version compatible with OJS 3.3.x?

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.

spanish prepositions

The prepositions in spanish (espagnol: Espagna) within the journal title are capitalized which is wrong. See screenshot. The styles APA, MLA and Chicago are concerned.

2023-01-03_14-03-28

Citation year incorrect

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.