Skip to content

Commit

Permalink
Merge pull request #113 from lcnetdev/bfp-255-6xx-multiple-auth-label…
Browse files Browse the repository at this point in the history
…-values

Bfp 255 6xx multiple auth label values
  • Loading branch information
thisismattmiller authored Nov 1, 2024
2 parents 97612a0 + 64b9ae1 commit 0f14306
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions src/components/panels/edit/modals/SubjectEditor.vue
Original file line number Diff line number Diff line change
Expand Up @@ -909,7 +909,7 @@ methods: {
let literal = null
let marcKey = null
let nonLatinLabel = null
let nonLatinMarkKey = null
let nonLatinMarcKey = null
if (this.componetLookup[id] && this.componetLookup[id][ss]){
Expand All @@ -924,7 +924,7 @@ methods: {
uri = this.componetLookup[id][ss].uri
marcKey = this.componetLookup[id][ss].marcKey
nonLatinLabel = this.componetLookup[id][ss].nonLatinTitle
nonLatinMarkKey = this.componetLookup[id][ss].nonLatinMarcKey
nonLatinMarcKey = this.componetLookup[id][ss].nonLatinMarcKey
}
Expand All @@ -943,7 +943,7 @@ methods: {
posEnd: activePosStart + ss.length,
marcKey: marcKey,
nonLatinLabel:nonLatinLabel,
nonLatinMarkKey:nonLatinMarkKey,
nonLatinMarcKey:nonLatinMarcKey,
})
// increase the start length by the length of the string and also add 2 for the "--"
Expand Down
8 changes: 4 additions & 4 deletions src/stores/profile.js
Original file line number Diff line number Diff line change
Expand Up @@ -2238,8 +2238,8 @@ export const useProfileStore = defineStore('profile', {
}
}

if (subjectComponents[0].nonLatinMarkKey && subjectComponents[0].nonLatinMarkKey.length>0){
for (let nlMK of subjectComponents[0].nonLatinMarkKey){
if (subjectComponents[0].nonLatinMarcKey && subjectComponents[0].nonLatinMarcKey.length>0){
for (let nlMK of subjectComponents[0].nonLatinMarcKey){
currentUserValuePos["http://id.loc.gov/ontologies/bflc/marcKey"].push(
{
"@guid": short.generate(),
Expand Down Expand Up @@ -2297,8 +2297,8 @@ export const useProfileStore = defineStore('profile', {
'http://id.loc.gov/ontologies/bflc/marcKey': c.marcKey
}]

if (c.nonLatinMarkKey && c.nonLatinMarkKey.length>0){
for (let nlMK of c.nonLatinMarkKey){
if (c.nonLatinMarcKey && c.nonLatinMarcKey.length>0){
for (let nlMK of c.nonLatinMarcKey){
compo["http://id.loc.gov/ontologies/bflc/marcKey"].push(
{
"@guid": short.generate(),
Expand Down

0 comments on commit 0f14306

Please sign in to comment.