Repository navigation
v1.22.0
Changed
-
Borges requires PHP 8.1 or later. PHP 7.4 and 8.0 are end-of-life and get no security fixes. The plugin header,
readme.txt, andcomposer.json(require.php) now declare 8.1, PHPCompatibility checks against 8.1, and the runtime matrix drops its PHP 7.4 cell: pull requests test Apache with PHP 8.1 and WordPress 6.4 in its place, and pushes tomainrun ten cells, from PHP 8.1 through 8.5. Sites below PHP 8.1 stay on 1.21.0, since WordPress does not offer an update whoseRequires PHPis above the server's. The reusable citeproc-php renderer drops itssetAccessible()branch for PHP below 8.1. (#305) -
New WordPress.org banner, icon, and favicon. A quieter "Folio" design replaces the handwritten-signature banner: BORGES in Cormorant Garamond letterspaced over the tagline "Structured bibliographies and inline citations in any style." in EB Garamond Italic, beside three book spines in ink and oxblood on warm paper.
npm run assets:brand(scripts/build_brand_assets.py) builds the banners, the square icon (SVG, 128, 256, and 512px), and a favicon set. The old art and its scripts are archived indocs/design/archive/original-art/, which never ships or deploys. (#298) -
The WordPress.org readme is rewritten for end users. The description, installation steps, and FAQ now speak to people adding bibliographies to posts rather than to developers, and the listing screenshots are retaken. (#303)
-
A link pasted on its own opens Manual Entry. A plain link, such as a PDF (
https://clinicalgenome.org/…/clingen_vcep_protocol_version_11_november2023-1.pdf) or a web page whose address holds no DOI, arXiv ID, or catalog or archive.org record, used to get the general "Paste a DOI, PMID…" notice and stay in the box. Now Manual Entry opens as a webpage with the URL filled in, and a notice says that a link alone has no title, author, or date and asks for the title. An unfinished Manual Entry draft is never replaced: the link then stays in the paste box with that explanation. A link pasted beside other citations gets that explanation as its own error. Borges does not fetch the link: reading a remote PDF would mean calling any host a user pastes (where every lookup today calls a fixed one), and PDF metadata is rarely good enough to cite. The Playground demo's Manual Entry note shows it. (#293) -
Clearer help text. Help text in the block settings, the field editor, and manual entry says “display,” not “print,” for what appears on screen. The Annotation field now reads: “A note about this citation, shown under it when ‘Show annotations’ is on. Leave a blank line between paragraphs. The note is saved with the citation’s data, so CSL-JSON and BibTeX exports include it even when annotations are hidden.” It uses the toggle’s exact label and says what the note belongs to. (#306)
Fixed
-
The editor stays with the entry you click. Clicking an entry, or its Copy, Edit, Edit fields, Delete, or Move buttons, made the editor seem to jump to the top of the block: selecting the block shows the paste box above the list, and starting an edit shows a notice there, so the entry slid down, often out of view. The entry you click now stays where it was on screen while the block changes around it; after a delete, the next entry takes its place. Scrolling ends the hold at once. (#306)
-
The “Editing” label no longer overlaps an entry’s number. In numbered styles (IEEE, Vancouver), “Editing: Roe 2018” was drawn over the “6.”, because the label inherited the entry’s hanging indent. (#306)
-
Reviews print the work they review. A
revieworreview-bookentry went through each style's journal form, so no style printed itsreviewed-titleorreviewed-author, and Chicago dropped the day of a newspaper review:Jacobs, Alexandra. “The Muchness of Madonna.” New York Times (October 2023).Every bundled style now has a review form: Chicago'sReview of *Madonna: A Rebel Life*, by Mary Gabriel.before the periodical, with a newspaper review's full date (*New York Times*, October 8, 2023); APA 7's[Review of the book *Madonna: A rebel life*, by M. Gabriel]after the review's title, with the full date for a newspaper review; MLA 9'sReview of *Madonna: A Rebel Life*, by Mary Gabriel.; and a plainreview of *Title*, by Authorin Harvard, IEEE, Vancouver, and OSCOLA, andResenha da obra de:in ABNT, whose manuals give no review form. A review in a journal keeps the journal form. A review with no reviewed author ends at the title, with no danglingby. The reviewed title is italicized, and APA, Harvard, and Vancouver print it in sentence case. A new deprecation keeps blocks saved by 1.21.0 valid. The editor and the REST write routes share the formatter, so both are fixed; saved entries change when they are next formatted. (#308) -
Sentence case keeps the names of well-known places. APA 7, Harvard, IEEE, and Vancouver printed Borges's "The Library of Babel" as "The library of babel", because a capital alone cannot tell a proper noun from an ordinary word, and the list of words that keep their capitals had no cities or places. It now has about a hundred: world capitals and major cities (London, Paris, Kyoto, Toronto, Chicago) and places of history and legend (Babel, Babylon, Troy, Carthage, Eden, Atlantis). Names that are also common words (Reading, Bath, Nice, Mobile, Phoenix) stay off the list. People's names still need the entry's "Keep title capitalization as entered" checkbox, and the
bibliography_builder_sentence_case_proper_nounsfilter adds a site's own words. The formatter's cache keys include a hash of the list, so affected entries reformat; saved entries change when they are next formatted. The Playground demo's IEEE example adds the Borges chapter. (#304) -
Software entries print their version and access date. A
softwareentry went through each style's book form, so itsversionwas dropped in every style, and an undated online entry printed "n.d." with no access date (and, in Chicago, IEEE, Vancouver, and ABNT, no URL). Every bundled style now has a software form from its manual: APA 7'sTitle (Version 1.0) [Computer software], Chicago'sVersion 1.0with "Accessed …" in place of "n.d.", Cite Them Right's[Computer program], Citing Medicine's[computer program], and the version element in MLA 9, IEEE, OSCOLA, and ABNT. The editor and the REST write routes share the formatter, so both are fixed; saved entries change when they are next formatted. (#299) -
A pasted webpage citation keeps its date when the date has no day. In
ClinGen. "ClinGen Variant Curation Expert Panel Protocol, Version 11." November 2023. https://…, the "November 2023" became the website's name and the entry had no year, becauseparseWebpageCitation()read only the "November 15, 2023" form. A last sentence that is only a date ("November 15, 2023", "15 November 2023", "November 2023", or "2023") is now the entry's date, and the same forms work after a site name ("Clinical Genome Resource, November 2023"),Accessed, andEffective. Month names must be written out, so a site called "Mars 2030" keeps its name. The Playground demo's formatted citations include the ClinGen example. (#294) -
No more PHP 8.5 deprecation notices from formatting. On PHP 8.5 (WordPress Playground now runs 8.5), each
/formatrequest logged thousands of notices forReflectionProperty::setAccessible()andSplObjectStorage::attach()/contains()from the reusable citeproc-php renderer. It no longer callssetAccessible(), a no-op since PHP 8.1, and usesoffsetSet()/offsetExists(). Four notices remain, once per request, from citeproc-php 2.7.1 itself (pkp/citeproc-php#203); seedocs/external-eccentricities.md. The runtime matrix adds Apache with PHP 8.5 and latest WordPress. (#302) -
A dissertation's genre keeps its period. "PhD diss., University of Chicago" was stored as
PhD dissand printed as "PhD diss, University of Chicago" in every style. A genre ending in an abbreviation ("diss.", "Ph.D.") now keeps its period; other genres are trimmed as before. (#307) -
CSL-JSON pasted among other citations imports as CSL-JSON. A CSL-JSON item or array separated from other citations by blank lines was read as free text, so the JSON itself became a title. It now imports the same way as when it is pasted alone, and JSON that is not CSL-JSON gets the same notice and stays in the form. (#309)
Internal
- A plain
npm ciinstalls the dependencies. It failed on a clean checkout, becauseeslint-plugin-import,-jsx-a11y, and-react(pulled in by@wordpress/eslint-plugin) declare peer ranges that end at ESLint 9, and the repo uses ESLint 10. CI always passed--legacy-peer-deps. A new.npmrcmakes that the default, so local installs resolve the same way as CI;.distignorekeeps it out of the plugin. (#300)
What's Changed
- Add readme preview comments and gate the WordPress.org deploy by @dknauss in #291
- Fix race in the MLA legacy re-save e2e test by @dknauss in #292
- Read a day-less date in pasted webpage citations by @dknauss in #295
- Open Manual Entry for a link pasted on its own by @dknauss in #296
- Adopt the minimalist Folio banner, icon, and favicon; archive the old art by @dknauss in #298
- Print software entries' version and access date in every style by @dknauss in #299
- Stop PHP 8.5 deprecation notices from formatting by @dknauss in #302
- Rewrite the WordPress.org readme for end users by @dknauss in #303
- Keep well-known place names capitalized in sentence case by @dknauss in #304
- Require PHP 8.1 or later by @dknauss in #305
- docs: add bibliographic interoperability research to roadmap by @dknauss in #310
- Fix dissertation genre, review forms, and mixed CSL-JSON pastes (#307, #308, #309) by @dknauss in #311
- Install with legacy peer deps by default, as CI does by @dknauss in #300
- Release 1.22.0 by @dknauss in #306
Full Changelog: v1.21.0...v1.22.0