Closed cparnot closed 12 years ago
My validation script crashed and burned, and brought my computer to its knees, apparently because some of the style names end on an hyphen. :P
Case in point (there might be more): hydrology-and-earth-system-sciences-.csl hydrology-and-earth-system-sciences-discussions-.csl
This is because the journal titles end on a space.
ah, sorry about the computer issue. At least, we also uncover a bug in your validation script :P. Let me have a look.
I corrected the issue, and also noticed one that had 2 dashes in a row. Hopefully, all good now. I have updated the script in the issue description: extra spaces and dashes are removed from the identifier.
It works again (after a reboot :P). One more thing: the citation-format of the dependents is wrong (the parent style is author-date, not numeric).
And, while we're at it, the "https://github.com/citation-style-language/styles/issues/xxxTBDxxx" link in the XML comment should be updated.
@rmzelle good catch. I have pushed the changes: https://github.com/citation-style-language/styles/commit/1adb04c706b9651ac5405c6e896fe8a24ce24771
This is not an issue per se, but just an entry to provide context for the following commit: https://github.com/citation-style-language/styles/commit/61b5e7b14c6857194a8824da42b5f27ee86f6217
Here is the context of why and how it was done.
07-11-2012
Generating CSL files for all the journals published by Copernicus Publications
I contacted Copernicus Publications, and got a confirmation from Nadine Deisel that all their journals use the same reference style. She also provided me with an Excel file with the list of journals, with their titles, ISSNs and eISSNs.
Files
These are the files used to generate the styles
copernicus_journals.tab
: derived from the Excel file sent by Nadine Deisel, to have a tab-delimited version of the journal list, to make it easier to parse; I added manually "field" values to be used for the element<category field="#FIELD#"/>
copernicus_journals_to_skip.txt
: list of journals to skipgenerate_bmc_styles.rb
: script that generate the final CSL stylesbmc_style_template.csl
: template used by the scriptgenerated_styles
: will contain generated BMC stylescopernicus_journals.tab
copernicus_journals_to_skip.txt
copernicus_style_template.csl
generate_copernicus_styles.rb