-
Notifications
You must be signed in to change notification settings - Fork 21
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
Fixes #2313 Update Citation Style Configuration #2316
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code changes look good to me. I'm glad to see that classes/methods for discovering available stylesheets are provided by the CiteProc library so you didn't have to implement any of that. 👍🏻
Adding autocomplete to the stylesheet selection form element would definitely be a nice future improvement but this version seems totally usable to me as-is and I would be in favor of merging this PR.
Suggested change from 2023-04-05
|
Todo:
|
modules/custom/az_publication/src/Entity/AZQuickstartCitationStyleInterface.php
Outdated
Show resolved
Hide resolved
modules/custom/az_publication/config/install/az_publication.az_citation_style.az_ama.yml
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Interesting - thanks @bberndt-uaz ! I'll take a look at that and see what's going on in the style. |
@bberndt-uaz it seems that MLA uses the |
modules/custom/az_publication/config/schema/az_citation_style.schema.yml
Outdated
Show resolved
Hide resolved
@tadean Is going to create a follow-up issue for addressing the page number issue. |
Description
The
seboettg/citeproc-php
package has updated in its2.6.0
release to begin using thecitation-style-language/locales
andcitation-style-language/styles
packages for its CSL rules. These packages were not previously available on packagist and it used to be a manual step to install them.Previously, Quickstart was using
academicpuma/locales
(an older copy of the same locale files that was available on packagist) for its locale information, to prevent needing to install them manually.Now that these styles are available on packagist, we may want to consider refactoring how we include the styles. This PR updates the Publication content type to use
citation-style-language/locales
and modifies our configuration style entities to prefer referencing CSL styles in thecitation-style-language/styles
package by name rather than including the xml directly.Modifications are made to the style configuration form to allow either referencing a CSL style by name, or by custom XML. Most of our managed styles now refer to the
citation-style-language/styles
by reference. Bluebook Law Review currently still uses custom XML as thecitation-style-language/styles
version of bluebook law review does not support bibliographies The custom version of quickstart's Bluebook Law Review managed style has been modified to support bibliographies.Spike: Feedback is desired on the best way to include references to the stylesheets, given there are a very large number of options in
citation-style-language/styles
; dropdown built via cached introspection of the files, specifying name manually, etc.Related issues
#2313
How to test
az_publication
/admin/config/az-quickstart/settings/az-publication/az_citation_style
.csl
extension, e.g.modern-language-association
/admin/config/az-quickstart/settings/az-publication
to your style and verify they work correctlyTypes of changes
Arizona Quickstart (install profile, custom modules, custom theme)
Drupal core
Drupal contrib projects
Checklist