diff --git a/CHANGELOG.md b/CHANGELOG.md index a16380f9..2f43e4af 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,13 @@ # Changelog All notable changes to this project will be documented in this file. +## [1.6.3] - 2025-06-26 +### Added +- Buttons for `Create NAR/Hub` when looking for a hub + +### Fixed +- Sometimes after posting a record and then opening a unposted record, the `Post` button would be "green," this shouldn't happen anymore + ## [1.6.2] - 2025-04-28 ### Update - Copycat has a MARC comparison view. The comparison is shown after selecting a profile to load with and provides a chance for the cataloger to backout. Comparison can also be envoked from a "Compare" button if an existing record is found. diff --git a/src/components/panels/edit/modals/ComplexLookupModal.vue b/src/components/panels/edit/modals/ComplexLookupModal.vue index f33361d9..36bf4392 100644 --- a/src/components/panels/edit/modals/ComplexLookupModal.vue +++ b/src/components/panels/edit/modals/ComplexLookupModal.vue @@ -117,11 +117,11 @@ // array of the pssobile groups from the stlyes ...mapState(useConfigStore, ['lookupConfig']), - ...mapState(useProfileStore, ['returnComponentByPropertyLabel', 'duplicateComponentGetId', 'isEmptyComponent']), + ...mapState(useProfileStore, ['returnComponentByPropertyLabel', 'duplicateComponentGetId', 'isEmptyComponent', 'returnLccInfo']), ...mapState(usePreferenceStore, ['diacriticUseValues', 'diacriticUse','diacriticPacks', 'lastComplexLookupString']), - ...mapWritableState(useProfileStore, ['lastComplexLookupString','showNacoStubCreateModal', 'activeNARStubComponent', 'activeProfile', 'setValueLiteral']), + ...mapWritableState(useProfileStore, ['lastComplexLookupString','showNacoStubCreateModal', 'activeNARStubComponent', 'activeProfile', 'setValueLiteral', 'activeHubStubData', 'activeHubStubComponent', 'showHubStubCreateModal']), @@ -884,15 +884,46 @@ } }, - displayProvisonalNAR(){ + displayHubButton(){ + if (this.modeSelect.includes('Hubs')){ + return true + } + return false + }, + displayProvisonalNAR(){ if (this.structure && this.structure.valueConstraint && this.structure.valueConstraint.useValuesFrom && this.structure.valueConstraint.useValuesFrom.length>0 && this.structure.valueConstraint.useValuesFrom.join(' ').indexOf('id.loc.gov/authorities/names')>-1){ return true } + if (this.modeSelect.includes('Hubs')){ + return true + } + return false }, + + loadHubStubModal(){ + // console.log(this.guid) + let info = this.returnLccInfo(this.guid) + console.log("info",info) + this.activeHubStubData = info + this.activeHubStubComponent = { + type: this.type, + guid: this.guid, + fieldGuid: this.fieldGuid, + structure: this.structure, + type: this.type, + propertyPath:this.propertyPath + } + + this.$emit('hideComplexModal') + + this.showHubStubCreateModal = true + + }, + loadNacoStubModal(){ // Set the current value for NAR creation this.lastComplexLookupString = this.searchValueLocal @@ -1190,6 +1221,7 @@ +