Skip to content

v1.20.0

Choose a tag to compare

@github-actions github-actions released this 09 Nov 20:38
bd3e301

Added

  • Repeated authors setting. A new block setting, "Repeated authors" (repeatedAuthorMark), chooses how an entry by the same authors as the entry before it begins. MLA 9 and OSCOLA 5 blocks can write the names out instead of using their marks; Chicago blocks can use the 17th edition's 3-em dash (———.), and ABNT blocks NBR 6023:2002's underscore line (______.), for writers and journals that still ask for them. Screen readers hear the names, and copied text and exports keep them. Existing blocks save exactly as before. The write routes' settings PATCH, the read routes, the abilities, and wp borges list carry the setting. (#242)
  • Harvard citations can be pasted as text. A Harvard reference with no DOI or other identifier, in the Cite Them Right form Borges's Harvard style prints, is now read into its fields: journal articles, books (with edition and place), chapters in edited books, conference papers, arXiv preprints, encyclopedia entries, and web pages with or without an author, along with their Available at: links and access dates. Before, every Harvard reference got the "Paste a DOI…" notice. Pasting into a Harvard bibliography tries the Harvard reading first; in other styles it is tried after the others, so APA citations (with a full stop after the year) are read as before. Like APA, these show "Check the fields before publishing" under the entry. (#231)
  • IEEE and Vancouver citations can be pasted as text. IEEE references (initials-first names such as "C. R. Harris", quoted titles, vol., no., pp., [Online]. Available: links and Accessed: dates) and Vancouver references (names such as "Harris CR", Journal. 2020;585(7825):357-62., In: chapters, [Internet] pages with [cited …] dates, Available from: links, and PMIDs) with no identifier are now read into their fields: journal articles, books with edition, place, and editors, chapters, conference papers, preprints, theses (IEEE), encyclopedia entries, and web pages. Vancouver's shortened page ranges are written out ("357-62" is stored as 357-362, which the style shortens again). As with Harvard, pasting into an IEEE or Vancouver bibliography tries that style first, these entries ask you to check the fields, and the list numbers ("[1]", "1.") are dropped. (#231)

Changed

  • The bibliography heading is centered again, with a Heading Alignment setting. APA 7, MLA 9, Chicago, Turabian, and ABNT all center the reference list heading, so it is centered by default once more, including in bibliographies saved by 1.19.x. A new block setting, "Heading Alignment" (headingAlign), sets it back to the start of the line (left in left-to-right languages), in line with the entries and a theme's section headings, as 1.19.0 had it. The centered default uses :where() around the block wrapper, so it has the specificity of one class and a theme can set its own alignment with any rule on .bibliography-builder-heading (Bad Sector keeps it start-aligned this way); the setting's Start keeps the full selector, so a choice made on the block still wins. Saved markup is unchanged unless you choose Start, so existing blocks stay valid without a deprecation. Email and feed output follow the setting, and an <h2>–<h6> heading now carries its alignment inline too. The write routes' settings PATCH, the read routes, and wp borges list carry the setting.
  • Clearer "Citations in this post" panel. It now says "in-text citations", "out of date with the current style or numbering", and "edited by hand" instead of code-side terms; with no citations yet it says where Cite is (the block toolbar's More menu); and the checkbox, now "Also update citations I edited by hand", says that your wording will be replaced. The update notice says "hand-edited" to match. (#269)

Fixed

  • POST /bibliography/v1/format says when a request sends no citations. A body without a cslItems list (a misspelled key, an empty body, or a value that isn't a list) used to get 200 with no entries, which looked the same as a bibliography with nothing to format. It now gets 400 (bibliography_builder_formatter_missing_items) naming the key. items, the name the write routes and abilities use, is accepted as an alias, and an empty cslItems list still returns 200. The route's parameters now show in the REST index. The editor always sends cslItems, so it is unaffected. (#272)
  • The "Try the current main build" Playground demo no longer fails with "Could not download required files". Its blueprint fetched the main build's ZIP through Playground's CORS proxy, which sometimes stalls. CI now also deploys that ZIP to GitHub Pages, which sends CORS headers, and the Main build and write-API blueprints install it from there directly. See docs/playground-main-preview-hosting.md.
  • PubMed and PubMed Central records print cleanly. Names NCBI sends as bare initials now get their periods ("Zhao, C, and KG Claeys" reads "Zhao, C., and K. G. Claeys" in Chicago; "Kristien G" becomes "Kristien G."), an issue sent as "Pt 8" prints as "8", and a journal title with an NLM subtitle ("Brain : a journal of neurology") prints as the journal names itself ("Brain") when the record's short title says so. The cleanup runs once, as the record arrives, in the GET /pmid and GET /pmcid routes (cached records included) and in the editor, so REST clients get the same record. Entries already in a bibliography are unchanged; paste the PMID again to refresh one. (#270, #271)
  • Pasted citations the editor can't read are turned away instead of read wrongly. A labelled journal article in IEEE, ABNT, or MLA form ("vol. 12, no. 3, pp. 34–43") pasted with no DOI was read as a book, with the volume and issue in its title and the page range as its publisher. ABNT and MLA ones now get the "Paste a DOI…" notice, as other citations the editor doesn't read do, and IEEE ones are read as articles (see Added). A numbered entry ("[1] …", "12. …") is read without its number, which used to end up in the first author's name. Citations read by the parser's less certain patterns (chapters, web pages, APA-style books and articles, and articles with "et al." or semicolon-separated authors) now show "Read from pasted text without an identifier. Check the fields before publishing." under the entry and count toward the import notice's "Review N imported records"; editing the entry's fields clears it. (#231)

What's Changed

  • docs: link the footnote-mode roadmap entry to #243 by @dknauss in #265
  • Clarify the "Citations in this post" panel wording by @dknauss in #269
  • Free-text parser: scope more input styles, and fail closed on misread citations (#231 Phase 0) by @dknauss in #267
  • Free-text parser: read Harvard citations, with the block's style as a hint (#231 Phase 1) by @dknauss in #274
  • Add a manual live probe for the Playground demo links by @dknauss in #273
  • Add a "Repeated authors" block setting (repeatedAuthorMark) by @dknauss in #268
  • Center the bibliography heading by default, with a Heading Alignment setting by @dknauss in #278
  • Free-text parser: read IEEE and Vancouver citations (#231 Phase 2) by @dknauss in #276
  • Let themes override the bibliography heading's centered default by @dknauss in #277
  • Clean up NLM initials, "Pt" issues, and journal subtitles in PubMed records by @dknauss in #280
  • Serve the main-preview ZIP from GitHub Pages for the Main build demo by @dknauss in #279
  • Probe: log requests to the GitHub Pages host by @dknauss in #281
  • Return 400 from /format when the body has no cslItems list (#272) by @dknauss in #283
  • Run the Playground live probe daily, and document the self-hosted Playground experiment by @dknauss in #282
  • Release 1.20.0 by @dknauss in #284

Full Changelog: v1.19.1...v1.20.0