Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Undifferentiated Names #191

Merged
merged 4 commits into from
Jan 24, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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