OSCOLA: Restrict URL display to online-only items#8147
OSCOLA: Restrict URL display to online-only items#8147adunning wants to merge 1 commit intocitation-style-language:masterfrom
Conversation
OSCOLA only displays URLs for items that items that are only available in digital format. This imitates the typical Zotero behaviour for journal articles and restricts display for item types that normally have a print equivalent.
|
Awesome! You just created a pull request to the Citation Styles Language styles repository. One of our human volunteers will try to get in touch soon (usually within a week). In the meantime, I will run some automated checks. You should be notified of the results in a few minutes. If you haven't done so yet, please make sure your style validates and follows all our other Style Requirements. To update this pull request, visit the "Files changed" tab above, click on the ellipsis button in the top-right corner of your style, and then select "Edit file" to start editing: If you have any questions, please leave a comment and we'll get back to you. While we usually respond in English, feel free to write in whatever language you're most comfortable. |
|
😃 Your submission passed all our automated tests. Below are some sample citations generated based on your proposed changes: oscola-journal-abbreviations.csl (modified style)‘CSL Search by Example’ (Citation style editor, 2012) <https://editor.citationstyles.org/searchByExample/> accessed 15 December 2012; Martin Fenner and others, ‘A Data Citation Roadmap for Scholarly Data Repositories’ (2019) 6 Sci Data <https://doi.org/10.1038/s41597-019-0031-8> accessed 31 March 2025. ‘CSL Search by Example’ (<i>Citation style editor</i>, 2012) <https://editor.citationstyles.org/searchByExample/> accessed 15 December 2012; Martin Fenner and others, ‘A Data Citation Roadmap for Scholarly Data Repositories’ (2019) 6 Sci Data <https://doi.org/10.1038/s41597-019-0031-8> accessed 31 March 2025.<br/>
-Tania Galindo-Castañeda and others, ‘Locating the Microbes along the Maize Root System under Nitrogen Limitation: a Root Phenotypic Approach’ (2025) 136 Ann Bot 1143 <https://doi.org/10.1093/aob/mcaf185> accessed 17 January 2026; Bob Hancké, Martin Rhodes and Mark Thatcher (eds), <i>Beyond Varieties of Capitalism: Conflict, Contradictions, and Complementarities in the European Economy</i> (Oxford University Press 2007) <https://doi.org/10.1093/acprof:oso/9780199206483.001.0001> accessed 19 October 2025.<br/>
-Isabela Mares, ‘Firms and the Welfare State: When, Why, and How Does Social Policy Matter to Employers?’ in Peter A Hall and David Soskice (eds), <i>Varieties of capitalism: the institutional foundations of comparative advantage</i> (Oxford University Press 2001) <https://doi.org/10.1093/0199247757.003.0005> accessed 7 January 2026.<br/>
+Tania Galindo-Castañeda and others, ‘Locating the Microbes along the Maize Root System under Nitrogen Limitation: a Root Phenotypic Approach’ (2025) 136 Ann Bot 1143; Bob Hancké, Martin Rhodes and Mark Thatcher (eds), <i>Beyond Varieties of Capitalism: Conflict, Contradictions, and Complementarities in the European Economy</i> (Oxford University Press 2007).<br/>
+Isabela Mares, ‘Firms and the Welfare State: When, Why, and How Does Social Policy Matter to Employers?’ in Peter A Hall and David Soskice (eds), <i>Varieties of capitalism: the institutional foundations of comparative advantage</i> (Oxford University Press 2001).<br/>
<hr/>
‘CSL Search by Example’ (<i>Citation style editor</i>, 2012) <https://editor.citationstyles.org/searchByExample/> accessed 15 December 2012<br/>
Fenner M and others, ‘A Data Citation Roadmap for Scholarly Data Repositories’ (2019) 6 Sci Data <https://doi.org/10.1038/s41597-019-0031-8> accessed 31 March 2025<br/>
-Galindo-Castañeda T and others, ‘Locating the Microbes along the Maize Root System under Nitrogen Limitation: a Root Phenotypic Approach’ (2025) 136 Ann Bot 1143 <https://doi.org/10.1093/aob/mcaf185> accessed 17 January 2026<br/>
-Hancké B, Rhodes M and Thatcher M (eds), <i>Beyond Varieties of Capitalism: Conflict, Contradictions, and Complementarities in the European Economy</i> (Oxford University Press 2007) <https://doi.org/10.1093/acprof:oso/9780199206483.001.0001> accessed 19 October 2025<br/>
-Mares I, ‘Firms and the Welfare State: When, Why, and How Does Social Policy Matter to Employers?’ in Peter A Hall and David Soskice (eds), <i>Varieties of capitalism: the institutional foundations of comparative advantage</i> (Oxford University Press 2001) <https://doi.org/10.1093/0199247757.003.0005> accessed 7 January 2026<br/>
+Galindo-Castañeda T and others, ‘Locating the Microbes along the Maize Root System under Nitrogen Limitation: a Root Phenotypic Approach’ (2025) 136 Ann Bot 1143<br/>
+Hancké B, Rhodes M and Thatcher M (eds), <i>Beyond Varieties of Capitalism: Conflict, Contradictions, and Complementarities in the European Economy</i> (Oxford University Press 2007)<br/>
+Mares I, ‘Firms and the Welfare State: When, Why, and How Does Social Policy Matter to Employers?’ in Peter A Hall and David Soskice (eds), <i>Varieties of capitalism: the institutional foundations of comparative advantage</i> (Oxford University Press 2001)<br/>
oscola-no-ibid.csl (modified style)‘CSL Search by Example’ (Citation style editor, 2012) <https://editor.citationstyles.org/searchByExample/> accessed 15 December 2012; Martin Fenner and others, ‘A Data Citation Roadmap for Scholarly Data Repositories’ (2019) 6 Scientific Data <https://doi.org/10.1038/s41597-019-0031-8> accessed 31 March 2025. ‘CSL Search by Example’ (<i>Citation style editor</i>, 2012) <https://editor.citationstyles.org/searchByExample/> accessed 15 December 2012; Martin Fenner and others, ‘A Data Citation Roadmap for Scholarly Data Repositories’ (2019) 6 Scientific Data <https://doi.org/10.1038/s41597-019-0031-8> accessed 31 March 2025.<br/>
-Tania Galindo-Castañeda and others, ‘Locating the Microbes along the Maize Root System under Nitrogen Limitation: a Root Phenotypic Approach’ (2025) 136 Annals of Botany 1143 <https://doi.org/10.1093/aob/mcaf185> accessed 17 January 2026; Bob Hancké, Martin Rhodes and Mark Thatcher (eds), <i>Beyond Varieties of Capitalism: Conflict, Contradictions, and Complementarities in the European Economy</i> (Oxford University Press 2007) <https://doi.org/10.1093/acprof:oso/9780199206483.001.0001> accessed 19 October 2025.<br/>
-Isabela Mares, ‘Firms and the Welfare State: When, Why, and How Does Social Policy Matter to Employers?’ in Peter A Hall and David Soskice (eds), <i>Varieties of capitalism: the institutional foundations of comparative advantage</i> (Oxford University Press 2001) <https://doi.org/10.1093/0199247757.003.0005> accessed 7 January 2026.<br/>
+Tania Galindo-Castañeda and others, ‘Locating the Microbes along the Maize Root System under Nitrogen Limitation: a Root Phenotypic Approach’ (2025) 136 Annals of Botany 1143; Bob Hancké, Martin Rhodes and Mark Thatcher (eds), <i>Beyond Varieties of Capitalism: Conflict, Contradictions, and Complementarities in the European Economy</i> (Oxford University Press 2007).<br/>
+Isabela Mares, ‘Firms and the Welfare State: When, Why, and How Does Social Policy Matter to Employers?’ in Peter A Hall and David Soskice (eds), <i>Varieties of capitalism: the institutional foundations of comparative advantage</i> (Oxford University Press 2001).<br/>
<hr/>
‘CSL Search by Example’ (<i>Citation style editor</i>, 2012) <https://editor.citationstyles.org/searchByExample/> accessed 15 December 2012<br/>
Fenner M and others, ‘A Data Citation Roadmap for Scholarly Data Repositories’ (2019) 6 Scientific Data <https://doi.org/10.1038/s41597-019-0031-8> accessed 31 March 2025<br/>
-Galindo-Castañeda T and others, ‘Locating the Microbes along the Maize Root System under Nitrogen Limitation: a Root Phenotypic Approach’ (2025) 136 Annals of Botany 1143 <https://doi.org/10.1093/aob/mcaf185> accessed 17 January 2026<br/>
-Hancké B, Rhodes M and Thatcher M (eds), <i>Beyond Varieties of Capitalism: Conflict, Contradictions, and Complementarities in the European Economy</i> (Oxford University Press 2007) <https://doi.org/10.1093/acprof:oso/9780199206483.001.0001> accessed 19 October 2025<br/>
-Mares I, ‘Firms and the Welfare State: When, Why, and How Does Social Policy Matter to Employers?’ in Peter A Hall and David Soskice (eds), <i>Varieties of capitalism: the institutional foundations of comparative advantage</i> (Oxford University Press 2001) <https://doi.org/10.1093/0199247757.003.0005> accessed 7 January 2026<br/>
+Galindo-Castañeda T and others, ‘Locating the Microbes along the Maize Root System under Nitrogen Limitation: a Root Phenotypic Approach’ (2025) 136 Annals of Botany 1143<br/>
+Hancké B, Rhodes M and Thatcher M (eds), <i>Beyond Varieties of Capitalism: Conflict, Contradictions, and Complementarities in the European Economy</i> (Oxford University Press 2007)<br/>
+Mares I, ‘Firms and the Welfare State: When, Why, and How Does Social Policy Matter to Employers?’ in Peter A Hall and David Soskice (eds), <i>Varieties of capitalism: the institutional foundations of comparative advantage</i> (Oxford University Press 2001)<br/>
oscola.csl (modified style)‘CSL Search by Example’ (Citation style editor, 2012) <https://editor.citationstyles.org/searchByExample/> accessed 15 December 2012; Martin Fenner and others, ‘A Data Citation Roadmap for Scholarly Data Repositories’ (2019) 6 Scientific Data <https://doi.org/10.1038/s41597-019-0031-8> accessed 31 March 2025. ‘CSL Search by Example’ (<i>Citation style editor</i>, 2012) <https://editor.citationstyles.org/searchByExample/> accessed 15 December 2012; Martin Fenner and others, ‘A Data Citation Roadmap for Scholarly Data Repositories’ (2019) 6 Scientific Data <https://doi.org/10.1038/s41597-019-0031-8> accessed 31 March 2025.<br/>
-Tania Galindo-Castañeda and others, ‘Locating the Microbes along the Maize Root System under Nitrogen Limitation: a Root Phenotypic Approach’ (2025) 136 Annals of Botany 1143 <https://doi.org/10.1093/aob/mcaf185> accessed 17 January 2026; Bob Hancké, Martin Rhodes and Mark Thatcher (eds), <i>Beyond Varieties of Capitalism: Conflict, Contradictions, and Complementarities in the European Economy</i> (Oxford University Press 2007) <https://doi.org/10.1093/acprof:oso/9780199206483.001.0001> accessed 19 October 2025.<br/>
-Isabela Mares, ‘Firms and the Welfare State: When, Why, and How Does Social Policy Matter to Employers?’ in Peter A Hall and David Soskice (eds), <i>Varieties of capitalism: the institutional foundations of comparative advantage</i> (Oxford University Press 2001) <https://doi.org/10.1093/0199247757.003.0005> accessed 7 January 2026.<br/>
+Tania Galindo-Castañeda and others, ‘Locating the Microbes along the Maize Root System under Nitrogen Limitation: a Root Phenotypic Approach’ (2025) 136 Annals of Botany 1143; Bob Hancké, Martin Rhodes and Mark Thatcher (eds), <i>Beyond Varieties of Capitalism: Conflict, Contradictions, and Complementarities in the European Economy</i> (Oxford University Press 2007).<br/>
+Isabela Mares, ‘Firms and the Welfare State: When, Why, and How Does Social Policy Matter to Employers?’ in Peter A Hall and David Soskice (eds), <i>Varieties of capitalism: the institutional foundations of comparative advantage</i> (Oxford University Press 2001).<br/>
<hr/>
‘CSL Search by Example’ (<i>Citation style editor</i>, 2012) <https://editor.citationstyles.org/searchByExample/> accessed 15 December 2012<br/>
Fenner M and others, ‘A Data Citation Roadmap for Scholarly Data Repositories’ (2019) 6 Scientific Data <https://doi.org/10.1038/s41597-019-0031-8> accessed 31 March 2025<br/>
-Galindo-Castañeda T and others, ‘Locating the Microbes along the Maize Root System under Nitrogen Limitation: a Root Phenotypic Approach’ (2025) 136 Annals of Botany 1143 <https://doi.org/10.1093/aob/mcaf185> accessed 17 January 2026<br/>
-Hancké B, Rhodes M and Thatcher M (eds), <i>Beyond Varieties of Capitalism: Conflict, Contradictions, and Complementarities in the European Economy</i> (Oxford University Press 2007) <https://doi.org/10.1093/acprof:oso/9780199206483.001.0001> accessed 19 October 2025<br/>
-Mares I, ‘Firms and the Welfare State: When, Why, and How Does Social Policy Matter to Employers?’ in Peter A Hall and David Soskice (eds), <i>Varieties of capitalism: the institutional foundations of comparative advantage</i> (Oxford University Press 2001) <https://doi.org/10.1093/0199247757.003.0005> accessed 7 January 2026<br/>
+Galindo-Castañeda T and others, ‘Locating the Microbes along the Maize Root System under Nitrogen Limitation: a Root Phenotypic Approach’ (2025) 136 Annals of Botany 1143<br/>
+Hancké B, Rhodes M and Thatcher M (eds), <i>Beyond Varieties of Capitalism: Conflict, Contradictions, and Complementarities in the European Economy</i> (Oxford University Press 2007)<br/>
+Mares I, ‘Firms and the Welfare State: When, Why, and How Does Social Policy Matter to Employers?’ in Peter A Hall and David Soskice (eds), <i>Varieties of capitalism: the institutional foundations of comparative advantage</i> (Oxford University Press 2001)<br/>
|
There was a problem hiding this comment.
Pull request overview
Updates the OSCOLA CSL styles to suppress URL/DOI output for sources that are likely to have a print equivalent, aiming to better match typical OSCOLA/Zotero URL display behavior.
Changes:
- Adjusted the
URLmacro logic to omit URL/DOI output for additional item categories (e.g., items withpage, books/chapters). - Moved the Zotero “data entry” reference from
<summary>into a<link>element and refreshed<updated>dates. - Applied the same changes across OSCOLA variant styles (
no-ibid,journal-abbreviations).
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 6 comments.
| File | Description |
|---|---|
| oscola.csl | Updates metadata and refines the URL macro to suppress URL/DOI output in more cases. |
| oscola-no-ibid.csl | Mirrors the OSCOLA changes for the “no ibid.” variant. |
| oscola-journal-abbreviations.csl | Mirrors the OSCOLA changes for the journal-abbreviations variant. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| <link href="http://www.zotero.org/styles/oscola-journal-abbreviations" rel="self"/> | ||
| <link href="http://www.zotero.org/styles/oscola" rel="template"/> | ||
| <link href="https://www.law.ox.ac.uk/oscola" rel="documentation"/> | ||
| <link href="https://zotero.org/groups/2205533/collections/AC7ETLN4" rel="documentation"/> |
There was a problem hiding this comment.
The added Zotero group/collection link is marked as rel="documentation", but it doesn’t describe the citation format (it’s a data-entry example). To avoid failing style requirements/QA expectations for documentation links, consider moving this URL back into the
| <choose> | ||
| <!-- display URLs only for online-only works --> | ||
| <if match="any" type="bill legal_case legislation"/> | ||
| <else-if match="any" variable="page"/> |
There was a problem hiding this comment.
The new "suppress URL when variable=page" condition will hide URLs for any item that has pages, including types where page data is common but the item may still be online-only (e.g., reports/theses with a total page count). If the goal is mainly to suppress URLs for print-equivalent types (like journal articles/books), consider replacing this with type-based conditions (e.g., article-journal/article-magazine/article-newspaper) rather than a blanket page check.
| <else-if match="any" variable="page"/> | |
| <else-if match="any" type="article-journal article-magazine article-newspaper"/> |
| <id>http://www.zotero.org/styles/oscola</id> | ||
| <link href="http://www.zotero.org/styles/oscola" rel="self"/> | ||
| <link href="https://www.law.ox.ac.uk/oscola" rel="documentation"/> | ||
| <link href="https://zotero.org/groups/2205533/collections/AC7ETLN4" rel="documentation"/> |
There was a problem hiding this comment.
The added Zotero group/collection link is marked as rel="documentation", but it doesn’t describe the citation format (it’s a data-entry example). To avoid failing style requirements/QA expectations for documentation links, consider moving this URL back into the
| <choose> | ||
| <!-- display URLs only for online-only works --> | ||
| <if match="any" type="bill legal_case legislation"/> | ||
| <else-if match="any" variable="page"/> |
There was a problem hiding this comment.
The new "suppress URL when variable=page" condition will hide URLs for any item that has pages, including types where page data is common but the item may still be online-only (e.g., reports/theses with a total page count). If the goal is mainly to suppress URLs for print-equivalent types (like journal articles/books), consider replacing this with type-based conditions (e.g., article-journal/article-magazine/article-newspaper) rather than a blanket page check.
| <else-if match="any" variable="page"/> | |
| <else-if match="any" type="article-journal article-magazine article-newspaper"/> |
| <link href="http://www.zotero.org/styles/oscola-no-ibid" rel="self"/> | ||
| <link href="http://www.zotero.org/styles/oscola" rel="template"/> | ||
| <link href="https://www.law.ox.ac.uk/oscola" rel="documentation"/> | ||
| <link href="https://zotero.org/groups/2205533/collections/AC7ETLN4" rel="documentation"/> |
There was a problem hiding this comment.
The added Zotero group/collection link is marked as rel="documentation", but it doesn’t describe the citation format (it’s a data-entry example). To avoid failing style requirements/QA expectations for documentation links, consider moving this URL back into the
| <choose> | ||
| <!-- display URLs only for online-only works --> | ||
| <if match="any" type="bill legal_case legislation"/> | ||
| <else-if match="any" variable="page"/> |
There was a problem hiding this comment.
The new "suppress URL when variable=page" condition will hide URLs for any item that has pages, including types where page data is common but the item may still be online-only (e.g., reports/theses with a total page count). If the goal is mainly to suppress URLs for print-equivalent types (like journal articles/books), consider replacing this with type-based conditions (e.g., article-journal/article-magazine/article-newspaper) rather than a blanket page check.
| <else-if match="any" variable="page"/> | |
| <else-if match="any" type="article-journal article-magazine article-newspaper"/> |

OSCOLA only displays URLs for items that items that are only available in digital format. This imitates the typical Zotero behaviour for journal articles and restricts display for item types that normally have a print equivalent.