Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for software citations to behavioral-ecology-and-sociobiology.csl #4389

Closed
tsievert opened this issue Nov 3, 2019 · 14 comments
Closed
Assignees
Labels
style-improvement Existing style error fixes and improvements

Comments

@tsievert
Copy link

tsievert commented Nov 3, 2019

The style is dependent on http://www.zotero.org/styles/springer-basic-author-date

It does not properly support references to software/computer programs.

How it should look:

R Core Team (2019). R: A language and environment for statistical computing. R Foundation for Statistical Computing. Version 3.6.1. Vienna, Austria. URL
https://www.R-project.org/.

How it currently is formatted:

R Core Team (2019) R: A language and environment for statistical computing.

Edit: This is in Mendeley when the document type is set to "Computer Program"

@POBrien333
Copy link
Contributor

Can you export the item as .json/or some other format and attach here? Then I´ll have a look.

@tsievert
Copy link
Author

tsievert commented Nov 6, 2019

I hope RIS is ok. I had to quickly zip it, otherwise I couldn't have uploaded it directly.
I could also offer it as BIB or XML.
R_citation.zip

@adam3smith
Copy link
Member

(@POBrien333 we currently recognize software as book with a version number in CSL styles and leave a comment in the style to update; see e.g. APA for an example)

@stale
Copy link

stale bot commented Dec 6, 2019

This issue hasn't seen any activity in the past 30 days. It will be automatically closed if no further activity occurs in the next two weeks.

@stale stale bot added the waiting The ticket/pull request is awaiting input from the contributor/depositor label Dec 6, 2019
@tsievert
Copy link
Author

tsievert commented Dec 7, 2019

Bad bot

@stale stale bot removed the waiting The ticket/pull request is awaiting input from the contributor/depositor label Dec 7, 2019
@rmzelle rmzelle added the style-improvement Existing style error fixes and improvements label Feb 13, 2020
POBrien333 added a commit to POBrien333/styles that referenced this issue Feb 13, 2020
via citation-style-language#4389
Note, the exact formatting that is request is not possible (insert version in-between publisher and publisher-place with dots), to the best of my knowledge.
I placed the Version between container-title and the publisher macro.
@POBrien333
Copy link
Contributor

POBrien333 commented Feb 13, 2020

Let's see if I did this right. ;)

@tsievert You are actually missing the version number in that .ris file you sent over.

adam3smith pushed a commit that referenced this issue Feb 15, 2020
@adam3smith
Copy link
Member

adam3smith commented Feb 15, 2020

closed via #4652

@tsievert
Copy link
Author

Hey @POBrien333 ,

Thanks a lot, but the output has not changed at all for me.
Here is the bibtex (which this times contains the version number).
r_stats.zip

@POBrien333
Copy link
Contributor

This item is a book, so it will be printed out just like any book.

@tsievert
Copy link
Author

Then it seems to be more a problem with Mendeley instead of the citation style.
The .xml also clearly identifies it as software, the only odd one is the bibtex.

@POBrien333
Copy link
Contributor

POBrien333 commented Feb 24, 2020

Hi,
Just tried to test it and fix it with Mendeley. The style works fine with Zotero.
Unfortunately, the CSL mapping with Mendeley is pretty inconsistent. I had an old file with the mapping, so I was able to track the issue down.
If you change the title macro to this it'll work:
<macro name="title"> <choose> <if type="book article" match="any"> <group delimiter=". "> <group delimiter=", "> <text variable="title"/> <text macro="edition"/> </group> <choose> <!-- Replace with type="software" as that becomes available --> <if type="book article" match="any" variable="number"> <text variable="number" prefix="Version "/> </if> </choose> </group> </if> <else> <text variable="title"/> </else> </choose> </macro>

(Make sure the file a different title, self-link and ID and FILENAME, otherwise it'll be overwritten)

Alternatively, switching to Zotero is not all that hard and I'm happy to help you with that, if that is an option.

@tsievert
Copy link
Author

Thanks, I'll try that.
I raised the issue with the Mendeley support linking to this issue.
And I would love to switch back to Zotero, but unfortunately I'm limited by the university IT rules at the moment.

@adam3smith
Copy link
Member

adam3smith commented Feb 24, 2020 via email

@POBrien333
Copy link
Contributor

Ah great. That'll come in handy. Thanks for that. :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
style-improvement Existing style error fixes and improvements
Projects
None yet
Development

No branches or pull requests

4 participants