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

Create apa-7th-prt-legislation.csl #7287

Open
wants to merge 11 commits into
base: master
Choose a base branch
from

Conversation

rppm
Copy link

@rppm rppm commented Oct 26, 2024

This is an adaptation of APA 7th edition to include citation and bilbiography of Portuguese law according to portuguese legal citation (https://www.parlamento.pt/ArquivoDocumentacao/Documents/AR_Regras_Legistica.pdf). The correct way to use this style is to use document type legislation ("statute" in Zotero), putting the location (Lisboa) in the jurisdiction field. If unavailable (like Zotero and Mendeley) use extra field with prefix "jurisdiction: " (ex. jurisdiction: Lisboa).

This is an adaptation of APA 7th edition to include citation and bilbiography of Portuguese law according to portuguese legal citation (https://www.parlamento.pt/ArquivoDocumentacao/Documents/AR_Regras_Legistica.pdf). The correct way to use this style is to use document type legislation ("statute" in Zotero), putting the location (Lisboa) in the references field ("History" in Zotero).
Copy link

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.

Copy link

😟 There are some issues with your submission.

3 tests failed

apa-7th-prt-legislation: "template" link must point to an existing independent style

expected ["academy-of-management-review", "accident-analysis-and-prevention", "aci-materials-journal", "acm-si...chaftlichen-arbeiten", "zoological-journal-of-the-linnean-society", "zootaxa", "zwitscher-maschine"] to include "american-psychological-association-7th-ed"

apa-7th-prt-legislation: may not have any unused macros

expected: []
     got: ["citation-locator", "container-legal", "date-legal"]

(compared using ==)

apa-7th-prt-legislation: "self" link must match the style ID

expected: "http://www.zotero.org/styles/apa-7-prt-statute"
     got: "http://www.zotero.org/styles/apa-7th-prt-legislation"

(compared using ==)

Please check the test report for details.

Copy link

😃 Your submission passed all our automated tests.

Below are some sample citations generated based on your proposed changes:

apa-7th-prt-legislation.csl (new)
CSL Search by Example, (2012); Hancké et al., (2007)
Fenner et al., (2019); Mares, (2001)

CSL search by example. (2012). Citation Style Editor. http://editor.citationstyles.org/searchByExample/
Fenner, M., Crosas, M., Grethe, J. S., Kennedy, D., Hermjakob, H., Rocca-Serra, P., Durand, G., Berjon, R., Karcher, S., Martone, M., & Clark, T. (2019). A data citation roadmap for scholarly data repositories. Scientific Data, 6(1), 28. https://doi.org/10.1038/s41597-019-0031-8
Hancké, B., Rhodes, M., & Thatcher, M. (Eds.). (2007). Beyond varieties of capitalism: Conflict, contradiction, and complementarities in the European economy. Oxford University Press.
Mares, I. (2001). Firms and the welfare state: When, why, and how does social policy matter to employers? In P. A. Hall & D. Soskice (Eds.), Varieties of capitalism. The institutional foundations of comparative advantage (pp. 184–213). Oxford University Press.

@bwiernik
Copy link
Member

Thanks— the correct variable to indicate location for legal items in CSL is the jurisdiction variable. Can you please adapt your style to use this instead of co-opting the history variable?

@github-actions github-actions bot added the waiting-for-response-from-contributor The ticket/pull request is awaiting input from the contributor/depositor label Oct 26, 2024
Changed item variable "History" to "jurisdiction".
Copy link

😃 Your submission passed all our automated tests.

Below are some sample citations generated based on your proposed changes:

apa-7th-prt-legislation.csl (new)
CSL Search by Example, (2012); Hancké et al., (2007)
Fenner et al., (2019); Mares, (2001)

CSL search by example. (2012). Citation Style Editor. http://editor.citationstyles.org/searchByExample/
Fenner, M., Crosas, M., Grethe, J. S., Kennedy, D., Hermjakob, H., Rocca-Serra, P., Durand, G., Berjon, R., Karcher, S., Martone, M., & Clark, T. (2019). A data citation roadmap for scholarly data repositories. Scientific Data, 6(1), 28. https://doi.org/10.1038/s41597-019-0031-8
Hancké, B., Rhodes, M., & Thatcher, M. (Eds.). (2007). Beyond varieties of capitalism: Conflict, contradiction, and complementarities in the European economy. Oxford University Press.
Mares, I. (2001). Firms and the welfare state: When, why, and how does social policy matter to employers? In P. A. Hall & D. Soskice (Eds.), Varieties of capitalism. The institutional foundations of comparative advantage (pp. 184–213). Oxford University Press.

@rppm
Copy link
Author

rppm commented Oct 26, 2024

Thanks— the correct variable to indicate location for legal items in CSL is the jurisdiction variable. Can you please adapt your style to use this instead of co-opting the history variable?

@bwiernik, thank you for the fast reply! I have changed the item variable history to jurisdiction.

@github-actions github-actions bot removed the waiting-for-response-from-contributor The ticket/pull request is awaiting input from the contributor/depositor label Oct 26, 2024
Changed minor mistake in section variable
Copy link

github-actions bot commented Nov 4, 2024

😃 Your submission passed all our automated tests.

Below are some sample citations generated based on your proposed changes:

apa-7th-prt-legislation.csl (new)
CSL Search by Example, (2012); Hancké et al., (2007)
Fenner et al., (2019); Mares, (2001)

CSL search by example. (2012). Citation Style Editor. http://editor.citationstyles.org/searchByExample/
Fenner, M., Crosas, M., Grethe, J. S., Kennedy, D., Hermjakob, H., Rocca-Serra, P., Durand, G., Berjon, R., Karcher, S., Martone, M., & Clark, T. (2019). A data citation roadmap for scholarly data repositories. Scientific Data, 6(1), 28. https://doi.org/10.1038/s41597-019-0031-8
Hancké, B., Rhodes, M., & Thatcher, M. (Eds.). (2007). Beyond varieties of capitalism: Conflict, contradiction, and complementarities in the European economy. Oxford University Press.
Mares, I. (2001). Firms and the welfare state: When, why, and how does social policy matter to employers? In P. A. Hall & D. Soskice (Eds.), Varieties of capitalism. The institutional foundations of comparative advantage (pp. 184–213). Oxford University Press.

rppm and others added 2 commits November 4, 2024 03:04
Remade the whole style to change the minimum from the original. There were mistakes in bibliography order and citations.
Copy link

😟 There are some issues with your submission.

1 test failed

apa-7th-prt-legislation: must be parsable as a CSL style

failed to register macro #<CSL::Style::Macro name="author-bib" children=[1]>: duplicate name

Please check the test report for details.

Copy link

😟 There are some issues with your submission.

1 test failed

apa-7th-prt-legislation: must be parsable as a CSL style

failed to register macro #<CSL::Style::Macro name="author-bib" children=[1]>: duplicate name

Please check the test report for details.

Corrected duplication mistake.

The code was changed to be the closest possible to APA 7 original code.
Copy link

😃 Your submission passed all our automated tests.

Below are some sample citations generated based on your proposed changes:

apa-7th-prt-legislation.csl (new)
(CSL Search by Example, 2012; Hancké et al., 2007)
(Fenner et al., 2019; Mares, 2001)

CSL search by example. (2012). Citation Style Editor. http://editor.citationstyles.org/searchByExample/
Fenner, M., Crosas, M., Grethe, J. S., Kennedy, D., Hermjakob, H., Rocca-Serra, P., Durand, G., Berjon, R., Karcher, S., Martone, M., & Clark, T. (2019). A data citation roadmap for scholarly data repositories. Scientific Data, 6(1), 28. https://doi.org/10.1038/s41597-019-0031-8
Hancké, B., Rhodes, M., & Thatcher, M. (Eds.). (2007). Beyond varieties of capitalism: Conflict, contradiction, and complementarities in the European economy. Oxford University Press.
Mares, I. (2001). Firms and the welfare state: When, why, and how does social policy matter to employers? In P. A. Hall & D. Soskice (Eds.), Varieties of capitalism. The institutional foundations of comparative advantage (pp. 184–213). Oxford University Press.

@rppm
Copy link
Author

rppm commented Nov 10, 2024

@bwiernik, remade the code to be as close as possible to APA 7th, but to include portuguese legislation. Explanation is on the lega-cites macro. Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants