Skip to content

Commit 515a930

Browse files
authored
Merge pull request #724 from lcnetdev/nar--colon
Fix colon in NAR $d disappearing from MARC
2 parents c99e4b1 + 5b4c6d4 commit 515a930

1 file changed

Lines changed: 9 additions & 2 deletions

File tree

src/components/panels/edit/modals/NacoStubCreateModal.vue

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -320,6 +320,8 @@
320320
}
321321
}
322322
323+
console.info("this.oneXXParts: ", this.oneXXParts)
324+
323325
324326
let advMode = this.preferenceStore.returnValue('--b-edit-complex-nar-advanced-mode')
325327
// console.log("additonalFields",additonalFields)
@@ -700,8 +702,13 @@
700702
701703
if (dollarKey.d){
702704
703-
dollarKey.d = dollarKey.d.replace(":", "")
704-
let lifeDates = dollarKey.d.split('-')
705+
let lifeDates = []
706+
if (dollarKey.d.includes(":")){
707+
let temp = dollarKey.d.replace(":", "")
708+
lifeDates = temp.split('-')
709+
} else {
710+
lifeDates = dollarKey.d.split('-')
711+
}
705712
706713
// if the first part is empty, or starts with a YYYY build the 046, otherwise don't
707714
let dateCheck = /^[0-9]{4}/.test(lifeDates[0]) || lifeDates[0] == ""

0 commit comments

Comments
 (0)