citation-style-language / csl-editor

cslEditorLib - A HTML 5 library for searching and editing CSL styles
http://editor.citationstyles.org
MIT License
186 stars 33 forks source link

CSL's citation for Institutional/organization entities #223

Closed PhilipeRLeal closed 4 years ago

PhilipeRLeal commented 4 years ago

Dear all,

I am recently facing a common problem in my citation format, using Mendeley's automatic citation, which hosts the citation style language (CSL).

Several Journals and research institutes impose a type of citation style that, as it appears to me, CSL does not support yet.

The citation style impose that, for all references whose authors are institutional or organization entities (i.e.: World Health Organization, United Nations, United States of America), the names of such entities should be in citation format style (A) or (B).

In citation style (A), the entities should be abbreviated by its initials. For example, the case of the World Health Organization entity, an in-text citing should end like: ... some reference text here ... (WHO, yyyy). For United Nations citation, one should get: ... some reference text here ... (UN, yyyy).

For citation style (B), the institutional/organization entity should have its name written out in full and capitalized form. For the sample example: ... some reference text here ... (WORLD HEALTH ORGANIZATION, YYYY). For United Nations citation, one should get: ... some reference text here ... (UNITED NATIONS, yyyy).

In face of that reality, I have been trying to implement both citation styles (A and B) into CSL through Mendeley's web editor application (https://csl.mendeley.com/visualEditor). Once implemented, I could easily switch from one citation style to another, as requirement.

Nevertheless, here is my problem. How can I set this kind of option in the CSL?

In Mendeley's citation editor, I can't assign a "conditional node" to the authors of the reference, so that the type of the reference authorship could be checked prior to the "Text node" insertion.

If I could assess the citation authorship type (if it is an institutional/organization entity, or just a collection of personal names), I could define how the "Text node" should be inserted in the citation.

I thank you for your time, and I hope hearing from you soon.

Sincerely yours,

Philipe Riskalla Leal (leal.philipe@gmail.com)

adam3smith commented 4 years ago

This is tricky to do with CSL, though might be possible knowing some more details about the style and the data. You can bring this up to discuss details in the forums: https://discourse.citationstyles.org/ or on the Zotero forums (which are more active and have most CSL experts) and people may have more advice, but closing this here, since it's unrelated to the visual editor (which just implements CSL)