Skip to content

Commit b9d79df

Browse files
authored
Merge pull request #740 from lcnetdev/nar-geo-heading
NAR Geo Heading 008
2 parents 8235da4 + f5f81cb commit b9d79df

1 file changed

Lines changed: 9 additions & 3 deletions

File tree

src/lib/utils_export.js

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2267,19 +2267,25 @@ const utilsExport = {
22672267

22682268
// check again if they made a 400 in the extraMarcStatements and there is no 667 then set it to a
22692269
for (let x of extraMarcStatements){
2270-
console.log("x.tag", x.tag, "has667", has667)
22712270
if ((x.tag == '400' || x.fieldTag == '400') && !has667){
22722271
pos29 = 'a'
22732272
}
22742273
}
22752274

2275+
let pos06 = 'n'
2276+
if (extraMarcStatements.some((mrc) => mrc.fieldTag == '781') ){
2277+
pos06 = 'i'
2278+
}
2279+
22762280
let pos32 = "a"
22772281
// did they make a 4xx
2278-
if (oneXXParts.fieldTag == '110' || oneXXParts.fieldTag == '111' || oneXXParts.fieldTag == '130'){
2282+
if (['110', '111', '130', '151'].includes(oneXXParts.fieldTag) ){
22792283
pos32 = 'n'
22802284
}
22812285

2282-
field008.innerHTML = `${year2Digits}${month2Digits}${day2Digits}` + 'n| azannaabn' + " ".repeat(10) + '|' + pos29+ ' a'+pos32+'a' + " ".repeat(6)
2286+
2287+
field008.innerHTML = `${year2Digits}${month2Digits}${day2Digits}` + pos06 + '| azannaabn' + " ".repeat(10) + '|' + pos29+ ' a'+pos32+'a' + " ".repeat(6)
2288+
22832289
console.log("field008.innerHTML", field008.innerHTML)
22842290
marcTxt = marcTxt+ this.buildMarcTxtLine('008',' ',' ',[field008.innerHTML])
22852291

0 commit comments

Comments
 (0)