@manuscripts/transform 1.3.6 → 1.3.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -63,11 +63,13 @@ exports.jatsBodyTransformations = {
63
63
  const section = createElement('sec');
64
64
  const sectionType = abstractType ? `abstract-${abstractType}` : 'abstract';
65
65
  section.setAttribute('sec-type', sectionType);
66
- const title = createElement('title');
67
- title.textContent = abstractType
68
- ? `${capitalizeFirstLetter(abstractType)} Abstract`
69
- : 'Abstract';
70
- section.appendChild(title);
66
+ if (!abstractNode.querySelector('abstract > title')) {
67
+ const title = createElement('title');
68
+ title.textContent = abstractType
69
+ ? `${capitalizeFirstLetter(abstractType)} Abstract`
70
+ : 'Abstract';
71
+ section.appendChild(title);
72
+ }
71
73
  while (abstractNode.firstChild) {
72
74
  section.appendChild(abstractNode.firstChild);
73
75
  }
@@ -17,6 +17,7 @@
17
17
  Object.defineProperty(exports, "__esModule", { value: true });
18
18
  exports.bibliographyItem = void 0;
19
19
  exports.bibliographyItem = {
20
+ content: 'inline{0}',
20
21
  attrs: {
21
22
  id: { default: '' },
22
23
  type: { default: undefined },
@@ -60,11 +60,13 @@ export const jatsBodyTransformations = {
60
60
  const section = createElement('sec');
61
61
  const sectionType = abstractType ? `abstract-${abstractType}` : 'abstract';
62
62
  section.setAttribute('sec-type', sectionType);
63
- const title = createElement('title');
64
- title.textContent = abstractType
65
- ? `${capitalizeFirstLetter(abstractType)} Abstract`
66
- : 'Abstract';
67
- section.appendChild(title);
63
+ if (!abstractNode.querySelector('abstract > title')) {
64
+ const title = createElement('title');
65
+ title.textContent = abstractType
66
+ ? `${capitalizeFirstLetter(abstractType)} Abstract`
67
+ : 'Abstract';
68
+ section.appendChild(title);
69
+ }
68
70
  while (abstractNode.firstChild) {
69
71
  section.appendChild(abstractNode.firstChild);
70
72
  }
@@ -14,6 +14,7 @@
14
14
  * limitations under the License.
15
15
  */
16
16
  export const bibliographyItem = {
17
+ content: 'inline{0}',
17
18
  attrs: {
18
19
  id: { default: '' },
19
20
  type: { default: undefined },
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@manuscripts/transform",
3
3
  "description": "ProseMirror transformer for Manuscripts applications",
4
- "version": "1.3.6",
4
+ "version": "1.3.7",
5
5
  "repository": "github:Atypon-OpenSource/manuscripts-transform",
6
6
  "license": "Apache-2.0",
7
7
  "main": "dist/cjs",