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

Closes #2550 Add support for future dates by setting publication status to "forthcoming" #2594

Merged
merged 17 commits into from
Jan 24, 2024

Conversation

trackleft
Copy link
Member

@trackleft trackleft commented Jul 17, 2023

Description

Style changes: https://www.diffchecker.com/rhRIQGj0/

Resulting display:
image

Related issues

Closes #2550

How to test

Set site default citation style to Bluebook.
Add new publication of any of the following types:

article-journal article-magazine article-newspaper book broadcast chapter interview manuscript map patent personal_communication song speech thesis webpage

Set the issue date to be some time in the future.

Types of changes

Arizona Quickstart (install profile, custom modules, custom theme)

  • Patch release changes
    • Bug fix
    • Accessibility, performance, or security improvement
    • Critical institutional link or brand change
    • Adding experimental module
    • Update experimental module
  • Minor release changes
    • New feature
    • Breaking or visual change to existing behavior
    • Upgrade experimental module to stable
    • Enable existing module by default or database update
    • Non-critical brand change
    • New internal API or API improvement with backwards compatibility
    • Risky or disruptive cleanup to comply with coding standards
    • High-risk or disruptive change (requires upgrade path, risks regression, etc.)
  • Other or unknown
    • Other or unknown

Drupal core

  • Patch release changes
    • Security update
    • Patch level release (non-security bug-fix release)
    • Patch removal that's no longer necessary
  • Minor release changes
    • Major or minor level update
  • Other or unknown
    • Other or unknown

Drupal contrib projects

  • Patch release changes
    • Security update
    • Patch or minor level update
    • Add new module
    • Patch removal that's no longer necessary
  • Minor release changes
    • Major level update
  • Other or unknown
    • Other or unknown

Checklist

  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have read the CONTRIBUTING document.
  • I have added tests to cover my changes.
  • All new and existing tests passed.

@trackleft
Copy link
Member Author

trackleft commented Jul 17, 2023

We might also add a configuration option, that allows the site owner to mark future publications as forthcoming if their publish date is in the future.
Related #2595

@trackleft
Copy link
Member Author

trackleft commented Jul 17, 2023

  • Add Drupal translation support

@joeparsons joeparsons added the enhancement New feature or request label Aug 4, 2023
@joeparsons joeparsons changed the title Add support for future dates by setting publication status to "forthcoming " Closes #2550 Add support for future dates by setting publication status to "forthcoming" Aug 4, 2023
trackleft and others added 5 commits August 9, 2023 09:50
…al/az_quickstart into issue/2550-bluebook-forthcoming
Updates the requirements on [citation-style-language/styles](https://github.com/citation-style-language/styles) to permit the latest version.
- [Release notes](https://github.com/citation-style-language/styles/releases)
- [Changelog](https://github.com/citation-style-language/styles/blob/master/history-australia.csl)
- [Commits](citation-style-language/styles@v0.0.303...v0.0.325)

---
updated-dependencies:
- dependency-name: citation-style-language/styles
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <[email protected]>
composer.json Outdated Show resolved Hide resolved
@trackleft
Copy link
Member Author

trackleft commented Dec 4, 2023

Blocked by #2942 (review)

danahertzberg
danahertzberg previously approved these changes Dec 4, 2023
@trackleft trackleft changed the base branch from main to dependabot/composer/citation-style-language/styles-0.0.325 December 4, 2023 17:36
composer.json Outdated Show resolved Hide resolved
@trackleft trackleft marked this pull request as ready for review December 4, 2023 18:35
@trackleft trackleft requested a review from a team as a code owner December 4, 2023 18:35
@trackleft trackleft changed the base branch from dependabot/composer/citation-style-language/styles-0.0.325 to main December 4, 2023 18:48
@trackleft trackleft dismissed danahertzberg’s stale review December 4, 2023 18:48

The base branch was changed.

style: "<?xml version=\"1.0\" encoding=\"utf-8\"?>\r\n<style xmlns=\"http://purl.org/net/xbiblio/csl\" class=\"note\" version=\"1.0\" demote-non-dropping-particle=\"sort-only\" default-locale=\"en-US\">\r\n <info>\r\n <title>Bluebook Law Review</title>\r\n <id>http://www.zotero.org/styles/bluebook-law-review</id>\r\n <link href=\"http://www.zotero.org/styles/bluebook-law-review\" rel=\"self\"/>\r\n <link href=\"https://www.legalbluebook.com/\" rel=\"documentation\"/>\r\n <author>\r\n <name>Bruce D'Arcus</name>\r\n <email>[email protected]</email>\r\n </author>\r\n <author>\r\n <name>Nancy Sims</name>\r\n <email>[email protected]</email>\r\n </author>\r\n <contributor>\r\n <name>Patrick O'Brien</name>\r\n </contributor>\r\n <category citation-format=\"note\"/>\r\n <category field=\"law\"/>\r\n <summary>The Bluebook legal citation style for law reviews.</summary>\r\n <updated>2023-06-28T09:05:37+00:00</updated>\r\n <rights license=\"http://creativecommons.org/licenses/by-sa/3.0/\">This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 License</rights>\r\n </info>\r\n <locale>\r\n <terms>\r\n <term name=\"editor\" form=\"verb-short\">ed.</term>\r\n <term name=\"ibid\">id.</term>\r\n <term name=\"translator\" form=\"verb-short\">trans.</term>\r\n </terms>\r\n </locale>\r\n <macro name=\"name-macro\">\r\n <names variable=\"author\">\r\n <name and=\"symbol\" delimiter=\", \" delimiter-precedes-last=\"never\"/>\r\n <label form=\"short\" prefix=\" \"/>\r\n <substitute>\r\n <text variable=\"title\"/>\r\n </substitute>\r\n </names>\r\n </macro>\r\n <macro name=\"author-short\">\r\n <choose>\r\n <if type=\"legal_case\">\r\n <choose>\r\n <if variable=\"title-short\">\r\n <text macro=\"name-short-macro\" font-style=\"italic\"/>\r\n </if>\r\n <else>\r\n <text macro=\"name-short-macro\"/>\r\n </else>\r\n </choose>\r\n </if>\r\n <else-if type=\"bill legislation\" match=\"any\">\r\n <text macro=\"name-macro\"/>\r\n </else-if>\r\n <else-if type=\"book graphic motion_picture report song\" match=\"any\">\r\n <text macro=\"name-short-macro\" font-variant=\"small-caps\"/>\r\n </else-if>\r\n <else>\r\n <text macro=\"name-short-macro\"/>\r\n </else>\r\n </choose>\r\n </macro>\r\n <macro name=\"name-short-macro\">\r\n <names variable=\"author\">\r\n <name form=\"short\" and=\"text\" delimiter=\", \"/>\r\n <label form=\"verb-short\" prefix=\", \"/>\r\n <substitute>\r\n <text variable=\"title\" form=\"short\"/>\r\n </substitute>\r\n </names>\r\n </macro>\r\n <macro name=\"author\">\r\n <choose>\r\n <if type=\"bill legal_case legislation\" match=\"any\">\r\n <text macro=\"name-macro\"/>\r\n </if>\r\n <else-if type=\"book graphic motion_picture report song\" match=\"any\">\r\n <text macro=\"name-macro\" font-variant=\"small-caps\"/>\r\n </else-if>\r\n <else>\r\n <text macro=\"name-macro\"/>\r\n </else>\r\n </choose>\r\n </macro>\r\n <macro name=\"editor-translator\">\r\n <names variable=\"editor translator\" delimiter=\", \">\r\n <name and=\"symbol\" delimiter=\", \"/>\r\n <label form=\"short\" strip-periods=\"false\" prefix=\" \"/>\r\n </names>\r\n </macro>\r\n <macro name=\"access\">\r\n <choose>\r\n <if variable=\"URL\">\r\n <group delimiter=\" \">\r\n <text variable=\"URL\"/>\r\n <group delimiter=\" \" prefix=\"(\" suffix=\")\">\r\n <text value=\"last visited\"/>\r\n <date variable=\"accessed\">\r\n <date-part name=\"month\" form=\"short\" suffix=\" \" strip-periods=\"true\"/>\r\n <date-part name=\"day\" suffix=\", \"/>\r\n <date-part name=\"year\"/>\r\n </date>\r\n </group>\r\n </group>\r\n </if>\r\n </choose>\r\n </macro>\r\n <macro name=\"source\">\r\n <choose>\r\n <if type=\"article-journal\" match=\"any\">\r\n <group delimiter=\" \">\r\n <group delimiter=\", \">\r\n <text variable=\"title\" text-case=\"title\" font-style=\"italic\"/>\r\n <group delimiter=\" \">\r\n <text variable=\"volume\"/>\r\n <text macro=\"container\"/>\r\n <text variable=\"page-first\"/>\r\n </group>\r\n <text variable=\"locator\"/>\r\n </group>\r\n <text macro=\"issuance\" prefix=\"(\" suffix=\")\"/>\r\n </group>\r\n </if>\r\n <else-if type=\"legal_case\">\r\n <group delimiter=\" \">\r\n <group delimiter=\", \">\r\n <text variable=\"title\" text-case=\"title\"/>\r\n <text variable=\"volume\"/>\r\n </group>\r\n <text macro=\"container\"/>\r\n <group delimiter=\", \">\r\n <text variable=\"page-first\"/>\r\n <text variable=\"locator\"/>\r\n </group>\r\n <text macro=\"issuance\" prefix=\"(\" suffix=\")\"/>\r\n </group>\r\n </else-if>\r\n <else-if type=\"article-newspaper article-magazine thesis\" match=\"any\">\r\n <group delimiter=\", \">\r\n <text variable=\"title\" text-case=\"title\" font-style=\"italic\"/>\r\n <group delimiter=\" \">\r\n <text variable=\"volume\"/>\r\n <text macro=\"container\"/>\r\n </group>\r\n <text macro=\"issuance\"/>\r\n <group delimiter=\" \">\r\n <text value=\"at\"/>\r\n <text variable=\"page-first\"/>\r\n </group>\r\n </group>\r\n </else-if>\r\n <else-if type=\"chapter paper-conference\" match=\"any\">\r\n <text variable=\"title\" text-case=\"title\" font-style=\"italic\"/>\r\n <group prefix=\", \" delimiter=\" \" suffix=\" \">\r\n <text variable=\"volume\"/>\r\n <text macro=\"container\"/>\r\n </group>\r\n <text variable=\"page-first\"/>\r\n <text variable=\"locator\" prefix=\", \"/>\r\n <text macro=\"issuance\" prefix=\" (\" suffix=\")\"/>\r\n </else-if>\r\n <else-if type=\"book\" match=\"any\">\r\n <text variable=\"title\" text-case=\"title\" font-variant=\"small-caps\"/>\r\n <text variable=\"locator\" prefix=\" \"/>\r\n <text macro=\"issuance\" prefix=\" (\" suffix=\")\"/>\r\n </else-if>\r\n <else>\r\n <group delimiter=\", \">\r\n <text variable=\"title\" text-case=\"title\" font-style=\"italic\"/>\r\n <group delimiter=\" \">\r\n <text variable=\"volume\"/>\r\n <text macro=\"container\"/>\r\n <text variable=\"page-first\"/>\r\n <text variable=\"locator\"/>\r\n <text macro=\"issuance\" prefix=\"(\" suffix=\")\"/>\r\n </group>\r\n </group>\r\n </else>\r\n </choose>\r\n </macro>\r\n <macro name=\"issuance\">\r\n <choose>\r\n <if match=\"any\" variable=\"status\">\r\n <group>\r\n <text variable=\"status\" text-case=\"capitalize-first\"/>\r\n <date variable=\"issued\">\r\n <date-part name=\"year\"/>\r\n </date>\r\n </group>\r\n </if>\r\n <else>\r\n <choose>\r\n <if type=\"article-journal article-magazine article-newspaper broadcast interview manuscript map patent personal_communication song speech thesis webpage post-weblog\" match=\"any\">\r\n <group>\r\n <choose>\r\n <if type=\"article-newspaper thesis post-weblog\" match=\"any\">\r\n <group suffix=\", \">\r\n <date variable=\"issued\">\r\n <date-part name=\"month\" form=\"short\"/>\r\n <date-part name=\"day\" prefix=\" \"/>\r\n </date>\r\n </group>\r\n </if>\r\n <else-if type=\"article-magazine\">\r\n <date variable=\"issued\">\r\n <date-part name=\"month\" suffix=\" \" form=\"short\"/>\r\n </date>\r\n </else-if>\r\n </choose>\r\n <date variable=\"issued\">\r\n <date-part name=\"year\"/>\r\n </date>\r\n </group>\r\n </if>\r\n <else>\r\n <group delimiter=\", \">\r\n <text macro=\"editor-translator\"/>\r\n <group delimiter=\" \">\r\n <group delimiter=\" \">\r\n <text variable=\"edition\"/>\r\n <label variable=\"edition\" form=\"short\"/>\r\n </group>\r\n <date variable=\"issued\">\r\n <date-part name=\"year\"/>\r\n </date>\r\n </group>\r\n </group>\r\n </else>\r\n </choose>\r\n </else>\r\n </choose>\r\n </macro>\r\n <macro name=\"at_page\">\r\n <group delimiter=\" \">\r\n <text value=\"at\"/>\r\n <text variable=\"locator\"/>\r\n </group>\r\n </macro>\r\n <macro name=\"container\">\r\n <choose>\r\n <if type=\"chapter paper-conference\" match=\"any\">\r\n <group>\r\n <text term=\"in\" font-style=\"italic\" prefix=\" \"/>\r\n <text variable=\"container-title\" font-variant=\"small-caps\" prefix=\" \"/>\r\n </group>\r\n </if>\r\n <else-if type=\"legal_case\">\r\n <text variable=\"container-title\" form=\"short\" prefix=\" \"/>\r\n </else-if>\r\n <else-if type=\"article-journal\">\r\n <text variable=\"container-title\" form=\"short\" font-variant=\"small-caps\" prefix=\" \"/>\r\n </else-if>\r\n <else>\r\n <text variable=\"container-title\" font-variant=\"small-caps\"/>\r\n </else>\r\n </choose>\r\n </macro>\r\n <citation et-al-min=\"4\" et-al-use-first=\"1\">\r\n <layout suffix=\".\" delimiter=\"; \">\r\n <choose>\r\n <if position=\"ibid-with-locator\">\r\n <group delimiter=\" \">\r\n <text term=\"ibid\" text-case=\"capitalize-first\" font-style=\"italic\"/>\r\n <text macro=\"at_page\"/>\r\n </group>\r\n </if>\r\n <else-if position=\"ibid\">\r\n <text term=\"ibid\" text-case=\"capitalize-first\" font-style=\"italic\"/>\r\n </else-if>\r\n <else-if position=\"subsequent\">\r\n <group delimiter=\", \">\r\n <group delimiter=\" \">\r\n <choose>\r\n <if type=\"book\" match=\"any\">\r\n <text variable=\"volume\"/>\r\n </if>\r\n </choose>\r\n <text macro=\"author-short\"/>\r\n </group>\r\n <group delimiter=\" \">\r\n <text value=\"supra\" font-style=\"italic\"/>\r\n <text value=\"note\"/>\r\n <text variable=\"first-reference-note-number\"/>\r\n <text macro=\"at_page\"/>\r\n </group>\r\n </group>\r\n </else-if>\r\n <else>\r\n <group delimiter=\", \">\r\n <group delimiter=\" \">\r\n <choose>\r\n <if type=\"book\" match=\"any\">\r\n <text variable=\"volume\"/>\r\n </if>\r\n </choose>\r\n <text macro=\"author\"/>\r\n </group>\r\n <text macro=\"source\"/>\r\n <text macro=\"access\"/>\r\n </group>\r\n </else>\r\n </choose>\r\n </layout>\r\n </citation>\r\n <bibliography et-al-min=\"4\" et-al-use-first=\"1\">\r\n <layout suffix=\".\" delimiter=\"; \">\r\n <choose>\r\n <if position=\"ibid-with-locator\">\r\n <group delimiter=\" \">\r\n <text term=\"ibid\" text-case=\"capitalize-first\" font-style=\"italic\"/>\r\n <text macro=\"at_page\"/>\r\n </group>\r\n </if>\r\n <else-if position=\"ibid\">\r\n <text term=\"ibid\" text-case=\"capitalize-first\" font-style=\"italic\"/>\r\n </else-if>\r\n <else-if position=\"subsequent\">\r\n <group delimiter=\", \">\r\n <group delimiter=\" \">\r\n <choose>\r\n <if type=\"book\" match=\"any\">\r\n <text variable=\"volume\"/>\r\n </if>\r\n </choose>\r\n <text macro=\"author-short\"/>\r\n </group>\r\n <group delimiter=\" \">\r\n <text value=\"supra\" font-style=\"italic\"/>\r\n <text value=\"note\"/>\r\n <text variable=\"first-reference-note-number\"/>\r\n <text macro=\"at_page\"/>\r\n </group>\r\n </group>\r\n </else-if>\r\n <else>\r\n <group delimiter=\", \">\r\n <group delimiter=\" \">\r\n <choose>\r\n <if type=\"book\" match=\"any\">\r\n <text variable=\"volume\"/>\r\n </if>\r\n </choose>\r\n <text macro=\"author\"/>\r\n </group>\r\n <text macro=\"source\"/>\r\n <text macro=\"access\"/>\r\n </group>\r\n </else>\r\n </choose>\r\n </layout>\r\n </bibliography>\r\n</style>"
style: "<?xml version=\"1.0\" encoding=\"utf-8\"?>\r\n<style xmlns=\"http://purl.org/net/xbiblio/csl\" class=\"note\" version=\"1.0\" demote-non-dropping-particle=\"sort-only\" default-locale=\"en-US\">\r\n <info>\r\n <title>Bluebook Law Review</title>\r\n <id>http://www.zotero.org/styles/bluebook-law-review</id>\r\n <link href=\"http://www.zotero.org/styles/bluebook-law-review\" rel=\"self\"/>\r\n <link href=\"https://www.legalbluebook.com/\" rel=\"documentation\"/>\r\n <author>\r\n <name>Bruce D'Arcus</name>\r\n <email>[email protected]</email>\r\n </author>\r\n <author>\r\n <name>Nancy Sims</name>\r\n <email>[email protected]</email>\r\n </author>\r\n <contributor>\r\n <name>Patrick O'Brien</name>\r\n </contributor>\r\n <category citation-format=\"note\"/>\r\n <category field=\"law\"/>\r\n <summary>The Bluebook legal citation style for law reviews.</summary>\r\n <updated>2023-06-28T09:05:37+00:00</updated>\r\n <rights license=\"http://creativecommons.org/licenses/by-sa/3.0/\">This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 License</rights>\r\n </info>\r\n <locale>\r\n <terms>\r\n <term name=\"editor\" form=\"verb-short\">ed.</term>\r\n <term name=\"ibid\">id.</term>\r\n <term name=\"translator\" form=\"verb-short\">trans.</term>\r\n </terms>\r\n </locale>\r\n <macro name=\"name-macro\">\r\n <names variable=\"author\">\r\n <name and=\"symbol\" delimiter=\", \" delimiter-precedes-last=\"never\"/>\r\n <label form=\"short\" prefix=\" \"/>\r\n <substitute>\r\n <text variable=\"title\"/>\r\n </substitute>\r\n </names>\r\n </macro>\r\n <macro name=\"author-short\">\r\n <choose>\r\n <if type=\"legal_case\">\r\n <choose>\r\n <if variable=\"title-short\">\r\n <text macro=\"name-short-macro\" font-style=\"italic\"/>\r\n </if>\r\n <else>\r\n <text macro=\"name-short-macro\"/>\r\n </else>\r\n </choose>\r\n </if>\r\n <else-if type=\"bill legislation\" match=\"any\">\r\n <text macro=\"name-macro\"/>\r\n </else-if>\r\n <else-if type=\"book graphic motion_picture report song\" match=\"any\">\r\n <text macro=\"name-short-macro\" font-variant=\"small-caps\"/>\r\n </else-if>\r\n <else>\r\n <text macro=\"name-short-macro\"/>\r\n </else>\r\n </choose>\r\n </macro>\r\n <macro name=\"name-short-macro\">\r\n <names variable=\"author\">\r\n <name form=\"short\" and=\"text\" delimiter=\", \"/>\r\n <label form=\"verb-short\" prefix=\", \"/>\r\n <substitute>\r\n <text variable=\"title\" form=\"short\"/>\r\n </substitute>\r\n </names>\r\n </macro>\r\n <macro name=\"author\">\r\n <choose>\r\n <if type=\"bill legal_case legislation\" match=\"any\">\r\n <text macro=\"name-macro\"/>\r\n </if>\r\n <else-if type=\"book graphic motion_picture report song\" match=\"any\">\r\n <text macro=\"name-macro\" font-variant=\"small-caps\"/>\r\n </else-if>\r\n <else>\r\n <text macro=\"name-macro\"/>\r\n </else>\r\n </choose>\r\n </macro>\r\n <macro name=\"editor-translator\">\r\n <names variable=\"editor translator\" delimiter=\", \">\r\n <name and=\"symbol\" delimiter=\", \"/>\r\n <label form=\"short\" strip-periods=\"false\" prefix=\" \"/>\r\n </names>\r\n </macro>\r\n <macro name=\"access\">\r\n <choose>\r\n <if variable=\"URL\">\r\n <group delimiter=\" \">\r\n <text variable=\"URL\"/>\r\n <group delimiter=\" \" prefix=\"(\" suffix=\")\">\r\n <text value=\"last visited\"/>\r\n <date variable=\"accessed\">\r\n <date-part name=\"month\" form=\"short\" suffix=\" \" strip-periods=\"true\"/>\r\n <date-part name=\"day\" suffix=\", \"/>\r\n <date-part name=\"year\"/>\r\n </date>\r\n </group>\r\n </group>\r\n </if>\r\n </choose>\r\n </macro>\r\n <macro name=\"source\">\r\n <choose>\r\n <if type=\"article-journal\" match=\"any\">\r\n <group delimiter=\" \">\r\n <group delimiter=\", \">\r\n <text variable=\"title\" text-case=\"title\" font-style=\"italic\"/>\r\n <group delimiter=\" \">\r\n <text variable=\"volume\"/>\r\n <text macro=\"container\"/>\r\n <text variable=\"page-first\"/>\r\n </group>\r\n <text variable=\"locator\"/>\r\n </group>\r\n <text macro=\"issuance\" prefix=\"(\" suffix=\")\"/>\r\n </group>\r\n </if>\r\n <else-if type=\"legal_case\">\r\n <group delimiter=\" \">\r\n <group delimiter=\", \">\r\n <text variable=\"title\" text-case=\"title\"/>\r\n <text variable=\"volume\"/>\r\n </group>\r\n <text macro=\"container\"/>\r\n <group delimiter=\", \">\r\n <text variable=\"page-first\"/>\r\n <text variable=\"locator\"/>\r\n </group>\r\n <text macro=\"issuance\" prefix=\"(\" suffix=\")\"/>\r\n </group>\r\n </else-if>\r\n <else-if type=\"article-newspaper article-magazine thesis\" match=\"any\">\r\n <group delimiter=\", \">\r\n <text variable=\"title\" text-case=\"title\" font-style=\"italic\"/>\r\n <group delimiter=\" \">\r\n <text variable=\"volume\"/>\r\n <text macro=\"container\"/>\r\n </group>\r\n <text macro=\"issuance\"/>\r\n <group delimiter=\" \">\r\n <text value=\"at\"/>\r\n <text variable=\"page-first\"/>\r\n </group>\r\n </group>\r\n </else-if>\r\n <else-if type=\"chapter paper-conference\" match=\"any\">\r\n <text variable=\"title\" text-case=\"title\" font-style=\"italic\"/>\r\n <group prefix=\", \" delimiter=\" \" suffix=\" \">\r\n <text variable=\"volume\"/>\r\n <text macro=\"container\"/>\r\n </group>\r\n <text variable=\"page-first\"/>\r\n <text variable=\"locator\" prefix=\", \"/>\r\n <text macro=\"issuance\" prefix=\" (\" suffix=\")\"/>\r\n </else-if>\r\n <else-if type=\"book\" match=\"any\">\r\n <text variable=\"title\" text-case=\"title\" font-variant=\"small-caps\"/>\r\n <text variable=\"locator\" prefix=\" \"/>\r\n <text macro=\"issuance\" prefix=\" (\" suffix=\")\"/>\r\n </else-if>\r\n <else>\r\n <group delimiter=\", \">\r\n <text variable=\"title\" text-case=\"title\" font-style=\"italic\"/>\r\n <group delimiter=\" \">\r\n <text variable=\"volume\"/>\r\n <text macro=\"container\"/>\r\n <text variable=\"page-first\"/>\r\n <text variable=\"locator\"/>\r\n <text macro=\"issuance\" prefix=\"(\" suffix=\")\"/>\r\n </group>\r\n </group>\r\n </else>\r\n </choose>\r\n </macro>\r\n <macro name=\"issuance\">\r\n <choose>\r\n <if match=\"any\" variable=\"status\">\r\n <group>\r\n <text variable=\"status\" text-case=\"capitalize-first\"/>\r\n <date variable=\"issued\" prefix=\" \">\r\n <date-part name=\"year\"/>\r\n </date>\r\n </group>\r\n </if>\r\n <else>\r\n <choose>\r\n <if type=\"article-journal article-magazine article-newspaper broadcast interview manuscript map patent personal_communication song speech thesis webpage post-weblog\" match=\"any\">\r\n <group>\r\n <choose>\r\n <if type=\"article-newspaper thesis post-weblog\" match=\"any\">\r\n <group suffix=\", \">\r\n <date variable=\"issued\">\r\n <date-part name=\"month\" form=\"short\"/>\r\n <date-part name=\"day\" prefix=\" \"/>\r\n </date>\r\n </group>\r\n </if>\r\n <else-if type=\"article-magazine\">\r\n <date variable=\"issued\">\r\n <date-part name=\"month\" suffix=\" \" form=\"short\"/>\r\n </date>\r\n </else-if>\r\n </choose>\r\n <date variable=\"issued\">\r\n <date-part name=\"year\"/>\r\n </date>\r\n </group>\r\n </if>\r\n <else>\r\n <group delimiter=\", \">\r\n <text macro=\"editor-translator\"/>\r\n <group delimiter=\" \">\r\n <group delimiter=\" \">\r\n <text variable=\"edition\"/>\r\n <label variable=\"edition\" form=\"short\"/>\r\n </group>\r\n <date variable=\"issued\">\r\n <date-part name=\"year\"/>\r\n </date>\r\n </group>\r\n </group>\r\n </else>\r\n </choose>\r\n </else>\r\n </choose>\r\n </macro>\r\n <macro name=\"at_page\">\r\n <group delimiter=\" \">\r\n <text value=\"at\"/>\r\n <text variable=\"locator\"/>\r\n </group>\r\n </macro>\r\n <macro name=\"container\">\r\n <choose>\r\n <if type=\"chapter paper-conference\" match=\"any\">\r\n <group>\r\n <text term=\"in\" font-style=\"italic\" prefix=\" \"/>\r\n <text variable=\"container-title\" font-variant=\"small-caps\" prefix=\" \"/>\r\n </group>\r\n </if>\r\n <else-if type=\"legal_case\">\r\n <text variable=\"container-title\" form=\"short\" prefix=\" \"/>\r\n </else-if>\r\n <else-if type=\"article-journal\">\r\n <text variable=\"container-title\" form=\"short\" font-variant=\"small-caps\" prefix=\" \"/>\r\n </else-if>\r\n <else>\r\n <text variable=\"container-title\" font-variant=\"small-caps\"/>\r\n </else>\r\n </choose>\r\n </macro>\r\n <citation et-al-min=\"4\" et-al-use-first=\"1\">\r\n <layout suffix=\".\" delimiter=\"; \">\r\n <choose>\r\n <if position=\"ibid-with-locator\">\r\n <group delimiter=\" \">\r\n <text term=\"ibid\" text-case=\"capitalize-first\" font-style=\"italic\"/>\r\n <text macro=\"at_page\"/>\r\n </group>\r\n </if>\r\n <else-if position=\"ibid\">\r\n <text term=\"ibid\" text-case=\"capitalize-first\" font-style=\"italic\"/>\r\n </else-if>\r\n <else-if position=\"subsequent\">\r\n <group delimiter=\", \">\r\n <group delimiter=\" \">\r\n <choose>\r\n <if type=\"book\" match=\"any\">\r\n <text variable=\"volume\"/>\r\n </if>\r\n </choose>\r\n <text macro=\"author-short\"/>\r\n </group>\r\n <group delimiter=\" \">\r\n <text value=\"supra\" font-style=\"italic\"/>\r\n <text value=\"note\"/>\r\n <text variable=\"first-reference-note-number\"/>\r\n <text macro=\"at_page\"/>\r\n </group>\r\n </group>\r\n </else-if>\r\n <else>\r\n <group delimiter=\", \">\r\n <group delimiter=\" \">\r\n <choose>\r\n <if type=\"book\" match=\"any\">\r\n <text variable=\"volume\"/>\r\n </if>\r\n </choose>\r\n <text macro=\"author\"/>\r\n </group>\r\n <text macro=\"source\"/>\r\n <text macro=\"access\"/>\r\n </group>\r\n </else>\r\n </choose>\r\n </layout>\r\n </citation>\r\n <bibliography et-al-min=\"4\" et-al-use-first=\"1\">\r\n <layout suffix=\".\" delimiter=\"; \">\r\n <choose>\r\n <if position=\"ibid-with-locator\">\r\n <group delimiter=\" \">\r\n <text term=\"ibid\" text-case=\"capitalize-first\" font-style=\"italic\"/>\r\n <text macro=\"at_page\"/>\r\n </group>\r\n </if>\r\n <else-if position=\"ibid\">\r\n <text term=\"ibid\" text-case=\"capitalize-first\" font-style=\"italic\"/>\r\n </else-if>\r\n <else-if position=\"subsequent\">\r\n <group delimiter=\", \">\r\n <group delimiter=\" \">\r\n <choose>\r\n <if type=\"book\" match=\"any\">\r\n <text variable=\"volume\"/>\r\n </if>\r\n </choose>\r\n <text macro=\"author-short\"/>\r\n </group>\r\n <group delimiter=\" \">\r\n <text value=\"supra\" font-style=\"italic\"/>\r\n <text value=\"note\"/>\r\n <text variable=\"first-reference-note-number\"/>\r\n <text macro=\"at_page\"/>\r\n </group>\r\n </group>\r\n </else-if>\r\n <else>\r\n <group delimiter=\", \">\r\n <group delimiter=\" \">\r\n <choose>\r\n <if type=\"book\" match=\"any\">\r\n <text variable=\"volume\"/>\r\n </if>\r\n </choose>\r\n <text macro=\"author\"/>\r\n </group>\r\n <text macro=\"source\"/>\r\n <text macro=\"access\"/>\r\n </group>\r\n </else>\r\n </choose>\r\n </layout>\r\n </bibliography>\r\n</style>"
Copy link
Member Author

@trackleft trackleft Dec 4, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This adds <date variable=\"issued\" prefix=\" \">\r\n

To put a space before the year, likely need an issue created in the source repo.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor

@bberndt-uaz bberndt-uaz Dec 6, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request for the issue above: citation-style-language/styles#6807

@trackleft
Copy link
Member Author

Interestingly we are still overriding the bluebook style in this repo in order to add biblio support.

Additionally, the client I am implementing this for has additional overrides.
They remove the max authors listed settings for both citation, and bibliography elements to show all authors.

@danahertzberg
Copy link
Contributor

Troy will look into other citations to ensure styling is correct before approving

@trackleft trackleft requested a review from tadean December 18, 2023 19:48
@tadean
Copy link
Contributor

tadean commented Dec 20, 2023

Citation style language contains an automatically localized forthcoming term: https://github.com/citation-style-language/locales/blob/master/locales-en-US.xml#L78 which isn't being used in the style customization.

It would be good if we can leverage this somehow, but checking the logic of the event date appears difficult. CSL 1.0 doesn't appear to handle the case well of a user-entered value needing to be a term.

@tadean
Copy link
Contributor

tadean commented Dec 20, 2023

APA, CMOS, and IEEE make use of the status variable also. AMA and MLA do not appear to currently.

Notably, APA also seems unsure whether the status should be printed as-is, or as a term: https://github.com/citation-style-language/styles/blob/a3d9a63426d2390068b4c98da6f48bd4ce73b257/apa.csl#L269 (presently it prints the raw term)

@joeparsons joeparsons added the patch release Issues to be included in the next patch release label Jan 24, 2024
@joeparsons joeparsons merged commit fa708e5 into main Jan 24, 2024
@joeparsons joeparsons deleted the issue/2550-bluebook-forthcoming branch January 24, 2024 17:48
joeparsons pushed a commit that referenced this pull request Feb 2, 2024
…us to "forthcoming" (#2594)

* Initial commit

* Update modules/custom/az_publication/az_publication.module

* Adding pull request patches

* Update citation-style-language/styles requirement

Updates the requirements on [citation-style-language/styles](https://github.com/citation-style-language/styles) to permit the latest version.
- [Release notes](https://github.com/citation-style-language/styles/releases)
- [Changelog](https://github.com/citation-style-language/styles/blob/master/history-australia.csl)
- [Commits](citation-style-language/styles@v0.0.303...v0.0.325)

---
updated-dependencies:
- dependency-name: citation-style-language/styles
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <[email protected]>

* Update composer.json

* Reexport az_bluebook citation style to account for upstream updates.

* Update exported style for az_bluebook.

* Update composer.json

* Final touches

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
2.9.x only enhancement New feature or request patch release Issues to be included in the next patch release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add forthcoming functionality to az_bluebook citation style.
6 participants