Skip to content

Commit

Permalink
Merge pull request #166 from lcnetdev/fix-contrib-error
Browse files Browse the repository at this point in the history
Fix contrib error
  • Loading branch information
f-osorio authored Dec 13, 2024
2 parents 6dd64d3 + 56b73d4 commit 460a0b4
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 10 deletions.
26 changes: 17 additions & 9 deletions src/components/panels/edit/fields/LookupComplex.vue
Original file line number Diff line number Diff line change
Expand Up @@ -607,9 +607,11 @@ export default {
this.marcDeliminatedLCSHMode = true
//Get the type of search
let selection = document.getElementById(this.guid+"-select")
let selected = selection.options[selection.selectedIndex].value
this.searchType = selected
try{
let selection = document.getElementById(this.guid+"-select")
let selected = selection.options[selection.selectedIndex].value
this.searchType = selected
} catch {}
this.marcDeliminatedLCSHModeResults = await utilsNetwork.subjectLinkModeResolveLCSH(this.searchValue, this.searchType)
this.marcDeliminatedLCSHModeSearching = false
Expand Down Expand Up @@ -671,9 +673,13 @@ export default {
this.authorityLookup = this.searchValue.trim()
this.searchValue = this.searchValue.trim()
let selection = document.getElementById(this.guid+"-select")
let selected = selection.options[selection.selectedIndex].value
this.searchType = selected
try{
let selection = document.getElementById(this.guid+"-select")
let selected = selection.options[selection.selectedIndex].value
this.searchType = selected
} catch {}
this.displaySubjectModal=true
this.$nextTick(() => {
this.$refs.subjectEditorModal.focusInput()
Expand Down Expand Up @@ -737,9 +743,11 @@ export default {
// Open the authority `panel` for an given authority
openAuthority: function() {
//Get the type of search
let selection = document.getElementById(this.guid+"-select")
let selected = selection.options[selection.selectedIndex].value
this.searchType = selected
try{
let selection = document.getElementById(this.guid+"-select")
let selected = selection.options[selection.selectedIndex].value
this.searchType = selected
} catch {}
let label = this.$refs.el[0].innerHTML
this.profileData = this.profileStore.returnStructureByGUID(this.guid)
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: 5,
versionPatch: 6,

regionUrls: {

Expand Down

0 comments on commit 460a0b4

Please sign in to comment.