Skip to content

Commit

Permalink
Merge pull request #191 from lcnetdev/undifferentiated-names
Browse files Browse the repository at this point in the history
Undifferentiated Names
  • Loading branch information
f-osorio authored Jan 24, 2025
2 parents 35cc4a2 + 7119f30 commit 4326fc2
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 7 deletions.
13 changes: 8 additions & 5 deletions src/components/panels/edit/modals/ComplexLookupModal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@
let options = []
// add in the the defaul search ALL of everything possible
//options.push({label: 'All', urls:null, processor:null})
this.structure.valueConstraint.useValuesFrom.forEach((l)=>{
if (this.lookupConfig[l]){
this.lookupConfig[l].modes.forEach((mode)=>{
Expand Down Expand Up @@ -220,7 +220,7 @@
this.searchValueLocal = event.target.value
}
}
}
}
},
Expand Down Expand Up @@ -298,7 +298,7 @@
event.preventDefault()
return false
}
// all macros use the ctrl key
// all macros use the ctrl key
if (event.ctrlKey == true){
if (this.diacriticUse.length>0){
for (let macro of this.diacriticUseValues){
Expand Down Expand Up @@ -410,7 +410,7 @@
inputV.value = macro.codeEscape
this.searchValueLocal = inputV.value
}
}else{
Expand Down Expand Up @@ -811,7 +811,7 @@
Searching...
</option>

<option v-for="(r,idx) in activeComplexSearch" :data-label="r.label" :value="r.uri" v-bind:key="idx" :style="(r.depreciated) ? 'color:red' : ''" class="complex-lookup-result" v-html="' ' + (!r.literal ? r.suggestLabel : r.label) + ((r.literal) ? ' [Literal]' : '')">
<option v-for="(r,idx) in activeComplexSearch" :data-label="r.label" :value="r.uri" v-bind:key="idx" :style="(r.depreciated || r.undifferentiated) ? 'color:red' : ''" class="complex-lookup-result" v-html="' ' + (!r.literal ? r.suggestLabel : r.label) + ((r.literal) ? ' [Literal]' : '')">
</option>
</select>

Expand All @@ -836,6 +836,9 @@
<div v-if="activeContext.depreciated" style="background: pink;">
DEPRECIATED AUTHORITY
</div>
<div v-if="activeContext.nodeMap['MADS Collection'].includes('NamesUndifferentiated')" style="background: pink;">
THIS 1XX FIELD CANNOT BE USED UNDER RDA UNTIL THIS UNDIFFERENTIATED RECORD HAS BEEN HANDLED FOLLOWING THE GUIDELINES IN <a href="https://www.loc.gov/aba/pcc/rda/PCC%20RDA%20guidelines/Z01%20008%2032%202014rfeb.pdf" target="_blank">DCM Z1 008/32</a>.
</div>
<a style="color:#2c3e50; float: none; border: none;border-radius: 0;background-color: transparent;font-size: 1em;padding: 0;" v-if="activeContext.type!='Literal Value'" :href="rewriteURI(activeContext.uri)" target="_blank">view on id.loc.gov</a>

</div>
Expand Down
6 changes: 5 additions & 1 deletion src/lib/utils_network.js
Original file line number Diff line number Diff line change
Expand Up @@ -412,7 +412,8 @@ const utilsNetwork = {
literal:false,
depreciated: false,
extra: '',
total: r.count
total: r.count,
undifferentiated: false
}


Expand All @@ -421,6 +422,9 @@ const utilsNetwork = {
hitAdd.label = hitAdd.suggestLabel.split('(DEPRECATED')[0] + ' DEPRECATED'
hitAdd.depreciated = true
}
if (hit.more && hit.more.undifferentiated && hit.more.undifferentiated == 'Name not-unique'){
hitAdd.undifferentiated = true
}
results.push(hitAdd)
}

Expand Down
2 changes: 1 addition & 1 deletion src/stores/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export const useConfigStore = defineStore('config', {

versionMajor: 0,
versionMinor: 17,
versionPatch: 26,
versionPatch: 27,

regionUrls: {

Expand Down

0 comments on commit 4326fc2

Please sign in to comment.