Skip to content

Commit 8235da4

Browse files
authored
Merge pull request #739 from lcnetdev/remark-link-update
Stricter matching for partentStructure
2 parents 38c0401 + 059a824 commit 8235da4

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

src/components/panels/edit/fields/helpers/ActionButton.vue

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -647,7 +647,6 @@
647647
},
648648
649649
returnRemark: function(){
650-
651650
// check the lowest level first
652651
if (this.profileStore.rtLookup[this.structure.parentId] && this.profileStore.rtLookup[this.structure.parentId].propertyTemplates){
653652
for (let pt of this.profileStore.rtLookup[this.structure.parentId].propertyTemplates){
@@ -683,7 +682,7 @@
683682
// maybe it is in the parent structure
684683
if (this.profileStore.rtLookup[parentStructure.parentId] && this.profileStore.rtLookup[parentStructure.parentId].propertyTemplates){
685684
for (let pt of this.profileStore.rtLookup[parentStructure.parentId].propertyTemplates){
686-
if (pt.propertyURI == parentStructure.propertyURI && pt.remark){
685+
if (pt.propertyURI == parentStructure.propertyURI && pt.remark && pt['@guid'] == this.guid){
687686
return pt.remark
688687
}
689688
}

src/stores/config.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,8 @@ export const useConfigStore = defineStore('config', {
6262

6363
profiles : 'https://editor.id.loc.gov/marva/dancer/api/serve/marva-prod/profile',
6464
starting : 'https://editor.id.loc.gov/marva/dancer/api/serve/marva-prod/starting-points',
65+
// profiles: 'https://editor.id.loc.gov/marva/dancer/api/serve/marva-stage/profile',
66+
// starting : 'https://editor.id.loc.gov/marva/dancer/api/serve/marva-stage/starting-points',
6567

6668

6769
// worldCat: 'http://localhost:5200/worldcat/',

0 commit comments

Comments
 (0)