From 86d14bebda069048066c81abfa1f27258fe01f8f Mon Sep 17 00:00:00 2001 From: fo Date: Fri, 26 Jun 2026 14:56:29 +0000 Subject: [PATCH 1/2] Add Create NAR/Hub buttons when looking for Hubs They should show up whenever "Hub" is in the selected Mode --- .../panels/edit/modals/ComplexLookupModal.vue | 38 +++++++++++++++++-- .../edit/modals/NacoStubCreateModal.vue | 2 + src/lib/utils_network.js | 1 + 3 files changed, 38 insertions(+), 3 deletions(-) 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 @@ +
diff --git a/src/components/panels/edit/modals/NacoStubCreateModal.vue b/src/components/panels/edit/modals/NacoStubCreateModal.vue index 418d14da..c4b4f861 100644 --- a/src/components/panels/edit/modals/NacoStubCreateModal.vue +++ b/src/components/panels/edit/modals/NacoStubCreateModal.vue @@ -1952,6 +1952,8 @@ + + diff --git a/src/lib/utils_network.js b/src/lib/utils_network.js index ba305753..ec68fa96 100644 --- a/src/lib/utils_network.js +++ b/src/lib/utils_network.js @@ -3387,6 +3387,7 @@ const utilsNetwork = { let uuid = translator.toUUID(translator.new()) + const rawResponse = await fetch(url, { method: 'POST', headers: { From 38ae072af7a1b5d3927d15c7d50b4404b65cb0e5 Mon Sep 17 00:00:00 2001 From: fo Date: Fri, 26 Jun 2026 14:59:38 +0000 Subject: [PATCH 2/2] version++, changelog update --- CHANGELOG.md | 7 +++++++ src/stores/config.js | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) 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/stores/config.js b/src/stores/config.js index 2daec421..ab6f3145 100644 --- a/src/stores/config.js +++ b/src/stores/config.js @@ -8,7 +8,7 @@ export const useConfigStore = defineStore('config', { versionMajor: 1, versionMinor: 6, - versionPatch: 2, + versionPatch: 3,