-
Notifications
You must be signed in to change notification settings - Fork 3
Citation Styles
Citations are generated by the PubHash
model. It uses the citeproc-ruby and csl-styles gems, which implement the Citation Style Language (CSL). For detailed commentary or support on working on CSL, there is a development listserv for CSL at https://lists.sourceforge.net/lists/listinfo/xbiblio-devel
The CSL Documentation has various download formats available at http://readthedocs.org/projects/citation-style-language/downloads/. There are useful appendices that define the CSL types (document types) and variables (document fields), see
- http://docs.citationstyles.org/en/stable/specification.html#appendix-iii-types
- http://docs.citationstyles.org/en/stable/specification.html#appendix-iv-variables
The CSL claims, "Our crowdsourced repository offers over 8000 free CSL citation styles." They provide information about searching styles at http://citationstyles.org/styles/. One way to search is to create an example of the citation required and use it, see
If we cannot find a suitable style defined for the document types and styles we require, we can use an existing style and dynamically modify it. An example of this is in PubHash
for the Chicago style that has a modified et al
rule when there are more than 5 authors.
The CSL web site provides an online editor, see
If a modification to an existing style or a new style needs to be incorporated into the github repository for styles, there are contribution guidelines for doing that via a github pull request.
CSL currently doesn't specify what document types go well with what CSL item types, but most CSL repository styles are based around the document type mappings used by Zotero [1,2] and Mendeley [3]. So, to expand support for doc-types in sul-pub, we could consider these Zotero [1,2] and Mendeley [3] examples of mapping UI label -> doc-type field -> CSL field. Also, it looks like a JSON-SCHEMA [4] is a useful validator for the citation data generated by any doc-type field mapping into CSL data.
- [1] Zotero: https://github.com/aurimasv/z2csl
- [2] Zotero: http://aurimasv.github.io/z2csl/typeMap.xml
- [3] Mendeley: http://support.mendeley.com/customer/portal/articles/364144-csl-type-mapping
- [4] JSON-SCHEMA: https://github.com/citation-style-language/schema#csl-json-schema
Zotero document their mapping in http://aurimasv.github.io/z2csl/typeMap.xml#map-report Mendeley have a similar mapping of working-paper into report, see the bottom of the page at http://support.mendeley.com/customer/portal/articles/364144-csl-type-mapping
* TYPE: WorkingPaper -> report
Abstract -> abstract
Chapter -> chapter-number
DOI -> DOI
Date Accessed -> accessed
Edition -> edition
Genre -> genre
ISBN -> ISBN
ISSN -> ISSN
Issue -> issue
Number -> number
Pages -> page
Publisher -> publisher
Sections -> section
Series Title -> container-title
Short Title -> shortTitle
Title -> title
Volume -> volume
The CSL website has style info for the three citation formats supported by CAP (Chicago, MLA and APA):
- APA Citation Style: http://editor.citationstyles.org/styleInfo/?styleId=http%3A%2F%2Fwww.zotero.org%2Fstyles%2Fapa
- Chicago Manual of Style: http://editor.citationstyles.org/styleInfo/?styleId=http%3A%2F%2Fwww.zotero.org%2Fstyles%2Fchicago-author-date Note: Use the Chicago "author-date" system
- MLA: http://editor.citationstyles.org/styleInfo/?styleId=http%3A%2F%2Fwww.zotero.org%2Fstyles%2Fmodern-language-association
The SearchWorks project uses an OCLC service to get back citations, including APA, MLA and Chicago formats. The SearchWorks code appears to be in:
- https://github.com/sul-dlss/SearchWorks/blob/master/app/models/citation.rb
- https://github.com/sul-dlss/SearchWorks/blob/master/config/settings.yml#L26-L30
It appears to use the OCLC Service at
- https://www.oclc.org/developer/develop/web-services/worldcat-search-api/bibliographic-resource.en.html
- It requires an OCLC catalog ID
- The SearchWorks code gets a
Title Level
citation, not anArticle Level
citation (since there is no article level data in SearchWorks) - AFAIK, sul-pub has no OCLC IDs in the publication data (to be confirmed)
We do not know anything about the OCLC service internals, at this time. It may use the Citation Style Language that is used in sul-pub.
Possibly relevant background docs are:
- Document_Type_Mapping_ScienceWire-to-CAP_revised22April2013.xlsx
- Manually_Entered_Records_revised_17Feb2016_TN_v2 (1).xlsx
- Report_citation_format_revised_6Jan2016.docx
- Pudue Online Writing Lab - Citation Style Chart: a side-by-side comparison of APA, MLA, and CMS styles.
- http://www.nait.ca/libresources/Citations/APA_Examples.pdf
SUL Resources on Citation Styles:
- http://library.stanford.edu/guides/working-citations
- https://library.stanford.edu/swain/collection/reference/style-guides
Words shown in bold are different from existing styles. Always append publicationURL at the end of the style if it exists.
Working papers (cite these like we would dissertations/theses, lectures, paper or other presentations, add new publicationURL at the end)
-
Chicago
- Deborah D. Lucki and Richard W. Pollay. 1980. “Content Analyses of Advertising: A Review of the Literature” (working paper, History of Advertising Archives, Faculty of Commerce, University of British Columbia, Vancouver).
-
MLA - http://wps.ablongman.com/wps/media/objects/1272/1303505/mla.doc.pdf
- Kaplan, Nancy. “E-literacies: Politexts, Hypertexts, and Other Cultural Formations in the Late Age of Print.” Working paper, 24 Jan. 1995. 2 July 1999 http://raven.ubalt.edu/staff/kaplan/lit.
-
APA - http://citesource.trincoll.edu/apa/apaworkingpaper.pdf
- Imberman, S., Kugler, A.D., & Sacerdote, B. (2009). Katrina’s children: evidence on the structure of peer effects from hurricane evacuees (Working Paper No. 15291). Retrieved from Nationl Bureau of Economic Research website: http://www.nber.org/papers/w15291
- POSSIBLE ERROR: see https://github.com/citation-style-language/styles/issues/2003#issuecomment-206037473
Case Studies (cite like we would a book)
- http://content.easybib.com/guides/citation-guides/how-do-i-cite-a/case-study
- http://libanswers.walsh.edu/a.php?qid=66193
- could sometimes be cited differently (http://www.ehow.com/how_7739606_cite-case-studies-apa-format.html) but since we don't collect enough enough to differentiate, recommend citing as a book
- Chicago
- Hill, Linda, Tarun Khanna, and Emily A. Stecker. 2008. HCL Technologies. Case study. Boston: Harvard Business Publishing.
- MLA
- Hill, Linda, Tarun Khanna, and Emily A. Stecker. HCL Technologies. Case study.
- APA
- Hill, L., Khanna, T., & Stecker, E. A. (2008). HCL Technologies [Case study].
Technical Reports (same as journal article)
-
- Last name, First name. Year of publication. Title of work. Publisher city: Publisher. Accessed Month Date, Year. URL
- Gorbunova, Yulia. 2013. Laws of Attrition: Crackdown on Russia’s Civil Society After Putin’s Return to the Presidency. New York: Human Rights Watch. Accessed February 11, 2013. http://www.hrw.org/reports/2013/04/24/laws-attrition.
-
MLA - http://content.easybib.com/guides/citation-guides/mla-format/how-to-cite-a-report-mla
- Last, First M. Report title. City: Publisher, Year. Print. Series Number.
- Gorbunova, Yulia, Konstantin Baranov. Laws of Attrition: Crackdown on Russia’s Civil Society After Putin’s Return to the Presidency. New York: Human Rights Watch. Print.
-
APA - http://content.easybib.com/guides/citation-guides/apa-format/how-to-cite-a-report-apa
- Author, F.M. (Publication Year). Title of report (Report No. XXX). Publisher City, State: Publisher.
- Turnitin. (2003). What’s Wrong with Wikipedia? : Evaluating the sources by students. Oakland, CA: Paradigms, LLC.
Other
- Key data:
- Author(s)
- Title
- Date
- URL/Source
- Publisher
- Place of publication
- Series name and number (if a report) - not required and we do not believe currently in the UI specification for CAP
Note: Grace put together a word document called Report_citation_format_revised_6Jan2016. that includes a bunch of examples from various departments/groups on campus that produce Working Papers, Case Studies and Technical Reports. The info in that document may be helpful.
Helpful links: Re APA citation styles: https://owl.english.purdue.edu/owl/resource/560/01/