Skip to content

Commit

Permalink
Update original Milli Kutuphane translator
Browse files Browse the repository at this point in the history
Fix fieldMode in MARC
  • Loading branch information
adam3smith committed Mar 15, 2024
1 parent d2de696 commit 69d7a53
Show file tree
Hide file tree
Showing 3 changed files with 106 additions and 318 deletions.
4 changes: 2 additions & 2 deletions MARC.js
Expand Up @@ -410,7 +410,7 @@ record.prototype.translate = function (item) {
let authorTab = this.getFieldSubfields(i);
for (let j in authorTab) {
if (authorTab[j].a) {
item.creators.push({ lastName: authorTab[j].a, creatorType: "contributor", fieldMode: true });
item.creators.push({ lastName: authorTab[j].a, creatorType: "contributor", fieldMode: 1 });
}
}
}
Expand Down Expand Up @@ -534,7 +534,7 @@ record.prototype.translate = function (item) {
authorTab[j].a = authorTab[j].a.replace(/^[\s\u00A0.,/[\]:]+/, '')
.replace(/[\s\u00A0.,/[\]:]+$/, '')
.replace(/[\s\u00A0]+/, ' ');
creatorObject = { lastName: authorTab[j].a, creatorType: "contributor", fieldMode: true };
creatorObject = { lastName: authorTab[j].a, creatorType: "contributor", fieldMode: 1 };
}
// some heuristic for the default values:
// in a book without any person as a main entry (no 100 field)
Expand Down
244 changes: 0 additions & 244 deletions Milli Kutuphane - National Library of Turkey.js

This file was deleted.

0 comments on commit 69d7a53

Please sign in to comment.