Skip to content

Commit

Permalink
Merge pull request #165 from lcnetdev/fix-edit-error
Browse files Browse the repository at this point in the history
Fix edit error after copy/paste
  • Loading branch information
f-osorio authored Dec 13, 2024
2 parents 45c9ecd + 74cbe4f commit 6dd64d3
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 8 deletions.
16 changes: 10 additions & 6 deletions src/components/panels/edit/fields/LookupComplex.vue
Original file line number Diff line number Diff line change
Expand Up @@ -607,7 +607,7 @@ export default {
this.marcDeliminatedLCSHMode = true
//Get the type of search
let selection = document.getElementById(this.guid)
let selection = document.getElementById(this.guid+"-select")
let selected = selection.options[selection.selectedIndex].value
this.searchType = selected
Expand Down Expand Up @@ -671,7 +671,7 @@ export default {
this.authorityLookup = this.searchValue.trim()
this.searchValue = this.searchValue.trim()
let selection = document.getElementById(this.guid)
let selection = document.getElementById(this.guid+"-select")
let selected = selection.options[selection.selectedIndex].value
this.searchType = selected
this.displaySubjectModal=true
Expand Down Expand Up @@ -737,7 +737,7 @@ export default {
// Open the authority `panel` for an given authority
openAuthority: function() {
//Get the type of search
let selection = document.getElementById(this.guid)
let selection = document.getElementById(this.guid+"-select")
let selected = selection.options[selection.selectedIndex].value
this.searchType = selected
Expand All @@ -764,9 +764,13 @@ export default {
this.marcDeliminatedLCSHModeTimeout = null
this.marcDeliminatedLCSHModeResults = []
let selection = document.getElementById(this.guid)
let selected = selection.options[selection.selectedIndex].value
this.searchType = selected
// try {
// let selection = document.getElementById(this.guid)
// let selected = selection.options[selection.selectedIndex].value
// this.searchType = selected
// } catch{
// }
this.displaySubjectModal = true
}
Expand Down
2 changes: 1 addition & 1 deletion src/components/panels/edit/fields/Ref.vue
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

</template>
<template v-else>
<select :id="structure['@guid']" @change="templateChange($event)" style=" background-color: transparent;">
<select :id="structure['@guid']+'-select'" @change="templateChange($event)" style=" background-color: transparent;">
<option v-for="rt in allRtTemplate" :value="rt.id" :selected="(rt.id === thisRtTemplate.id)">{{rt.resourceLabel}}</option>
</select>
</template>
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: 4,
versionPatch: 5,

regionUrls: {

Expand Down

0 comments on commit 6dd64d3

Please sign in to comment.