@iebh/reflib 2.4.9 → 2.5.1
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.
- package/modules/endnoteXml.js +4 -2
- package/modules/ris.js +0 -1
- package/package.json +1 -1
package/modules/endnoteXml.js
CHANGED
|
@@ -152,7 +152,10 @@ export function writeStream(stream, options) {
|
|
|
152
152
|
},
|
|
153
153
|
write: ref => {
|
|
154
154
|
let refType = translations.types.rlMap.get(ref.type || settings.defaultType);
|
|
155
|
-
if (!refType)
|
|
155
|
+
if (!refType) {
|
|
156
|
+
console.warn(`Invalid reference type: "${ref.type}", defaulting to journal article`);
|
|
157
|
+
refType = translations.types.rlMap.get('journalArticle')
|
|
158
|
+
}
|
|
156
159
|
|
|
157
160
|
refsSeen++;
|
|
158
161
|
let recNumber = ref.recNumber || refsSeen;
|
|
@@ -407,7 +410,6 @@ export let translations = {
|
|
|
407
410
|
{rl: 'standard', rawText: 'Standard', rawId: 58},
|
|
408
411
|
{rl: 'statute', rawText: 'Statute', rawId: 31},
|
|
409
412
|
{rl: 'thesis', rawText: 'Thesis', rawId: 32},
|
|
410
|
-
{rl: 'unknown', rawText: 'unknown', rawId: 34},
|
|
411
413
|
{rl: 'unpublished', rawText: 'Unpublished Work', rawId: 34},
|
|
412
414
|
{rl: 'web', rawText: 'Web Page', rawId: 12},
|
|
413
415
|
],
|
package/modules/ris.js
CHANGED
|
@@ -324,7 +324,6 @@ export let translations = {
|
|
|
324
324
|
{rl: 'standard', raw: 'STAND'},
|
|
325
325
|
{rl: 'statute', raw: 'STAT'},
|
|
326
326
|
{rl: 'thesis', raw: 'THES'},
|
|
327
|
-
{rl: 'unknown', raw: 'unknown'},
|
|
328
327
|
{rl: 'unpublished', raw: 'UNPB'},
|
|
329
328
|
],
|
|
330
329
|
rawMap: new Map(), // Calculated later for quicker lookup
|