File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments