From 4f577a50941f63af22a8effc2ec9ea43a3962638 Mon Sep 17 00:00:00 2001 From: Mohammad Betamony Date: Mon, 24 Aug 2026 16:18:03 +0300 Subject: [PATCH 1/7] LEAN-6041: update citeproc generation wrappers --- src/jats/exporter/citeproc.ts | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/src/jats/exporter/citeproc.ts b/src/jats/exporter/citeproc.ts index 68788c25..3c1a5ff3 100644 --- a/src/jats/exporter/citeproc.ts +++ b/src/jats/exporter/citeproc.ts @@ -182,9 +182,19 @@ const getPublicationType = (item: BibliographyItemAttrs) => { } const wrappers = { - // this is a name field, so other processing is required. See the "initJats" - // function for more info. - author: namesWrapper('author'), + // This is a name field, so other processing is required. See the + // "initJats" function for more info on name rendering. + // + // When an item has neither "author" nor "editor" data, the CSL style's + // author-substitute rule + // falls back to rendering the item's "title" in this slot instead. In + // that case the string received here is the title, not a name, so it's + // routed through the "title" wrapper to produce the correct JATS title + // element instead of being mislabeled as a . + author: (str: string, item: BibliographyItemAttrs) => { + const hasNames = item.author?.length || item.editor?.length + return hasNames ? namesWrapper('author')(str) : wrappers.title(str, item) + }, // Unlike other date fields, where a formatted date string is wrapped in // a tag with the "iso-8601-date" attribute, the "issued" date components // are individually wrapped in year/month/day tags. For the time being, From 4d7089852800f53faa26f9dd95d7a5834e87f0d1 Mon Sep 17 00:00:00 2001 From: "zax-assistant[bot]" <103364958+zax-assistant[bot]@users.noreply.github.com> Date: Mon, 24 Aug 2026 13:19:29 +0000 Subject: [PATCH 2/7] Update package.json --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 01f3223c..6a04c677 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "@manuscripts/transform", "description": "ProseMirror transformer for Manuscripts applications", - "version": "4.5.2", + "version": "4.5.3-LEAN-6041.0", "repository": "github:Atypon-OpenSource/manuscripts-transform", "license": "Apache-2.0", "main": "dist/cjs", From 825395458f56067644e5f58a25bcb23bd0fb7bb2 Mon Sep 17 00:00:00 2001 From: Mohammad Betamony Date: Mon, 24 Aug 2026 16:40:39 +0300 Subject: [PATCH 3/7] updates --- src/jats/exporter/citeproc.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/jats/exporter/citeproc.ts b/src/jats/exporter/citeproc.ts index 3c1a5ff3..44c2a963 100644 --- a/src/jats/exporter/citeproc.ts +++ b/src/jats/exporter/citeproc.ts @@ -146,6 +146,8 @@ export const initJats = () => { } } +const authorNamesWrapper = namesWrapper('author') + const namesWrapper = (type: string) => (str: string) => `${str}` @@ -186,14 +188,14 @@ const wrappers = { // "initJats" function for more info on name rendering. // // When an item has neither "author" nor "editor" data, the CSL style's - // author-substitute rule + // author-substitute rule // falls back to rendering the item's "title" in this slot instead. In // that case the string received here is the title, not a name, so it's // routed through the "title" wrapper to produce the correct JATS title // element instead of being mislabeled as a . author: (str: string, item: BibliographyItemAttrs) => { const hasNames = item.author?.length || item.editor?.length - return hasNames ? namesWrapper('author')(str) : wrappers.title(str, item) + return hasNames ? authorNamesWrapper(str) : wrappers.title(str, item) }, // Unlike other date fields, where a formatted date string is wrapped in // a tag with the "iso-8601-date" attribute, the "issued" date components From 8e252edf9cdecb3d62425ed1298e21d10af5c0a3 Mon Sep 17 00:00:00 2001 From: "zax-assistant[bot]" <103364958+zax-assistant[bot]@users.noreply.github.com> Date: Wed, 26 Aug 2026 09:17:25 +0000 Subject: [PATCH 4/7] Update package.json --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 6a04c677..93fd3079 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "@manuscripts/transform", "description": "ProseMirror transformer for Manuscripts applications", - "version": "4.5.3-LEAN-6041.0", + "version": "4.5.3-LEAN-6041.1", "repository": "github:Atypon-OpenSource/manuscripts-transform", "license": "Apache-2.0", "main": "dist/cjs", From 2778978f06f23c1a2ed5a968fc04998503f6bdda Mon Sep 17 00:00:00 2001 From: Mohammad Betamony Date: Wed, 26 Aug 2026 12:39:06 +0300 Subject: [PATCH 5/7] update --- src/jats/exporter/citeproc.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/jats/exporter/citeproc.ts b/src/jats/exporter/citeproc.ts index 44c2a963..da8aa58d 100644 --- a/src/jats/exporter/citeproc.ts +++ b/src/jats/exporter/citeproc.ts @@ -146,11 +146,10 @@ export const initJats = () => { } } -const authorNamesWrapper = namesWrapper('author') - const namesWrapper = (type: string) => (str: string) => `${str}` +const authorNamesWrapper = namesWrapper('author') // Even though the CSL data model specifies a date type, citeproc-js processes // date fields and replaces their value with an object with the structure: // { From f4249425df566cd67002891087f60dd46d482678 Mon Sep 17 00:00:00 2001 From: "zax-assistant[bot]" <103364958+zax-assistant[bot]@users.noreply.github.com> Date: Wed, 26 Aug 2026 09:40:05 +0000 Subject: [PATCH 6/7] Update package.json --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 93fd3079..c0daf250 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "@manuscripts/transform", "description": "ProseMirror transformer for Manuscripts applications", - "version": "4.5.3-LEAN-6041.1", + "version": "4.5.3-LEAN-6041.2", "repository": "github:Atypon-OpenSource/manuscripts-transform", "license": "Apache-2.0", "main": "dist/cjs", From 32b599235d0b1461038b0cf0c7610493f9913bb1 Mon Sep 17 00:00:00 2001 From: "zax-assistant[bot]" <103364958+zax-assistant[bot]@users.noreply.github.com> Date: Mon, 14 Sep 2026 13:13:18 +0000 Subject: [PATCH 7/7] Update package.json --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 0fc1009a..cc2d6661 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "@manuscripts/transform", "description": "ProseMirror transformer for Manuscripts applications", - "version": "4.5.6", + "version": "4.5.7-LEAN-6041.0", "repository": "github:Atypon-OpenSource/manuscripts-transform", "license": "Apache-2.0", "main": "dist/cjs",