Skip to content
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
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
38 changes: 35 additions & 3 deletions src/components/panels/edit/modals/ComplexLookupModal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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']),



Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -1190,6 +1221,7 @@

<!-- REMOVE v-if BEFORE PROD USAGE -->
<button @click="loadNacoStubModal" style="float: right;" v-if="displayProvisonalNAR() == true">Create NAR</button>
<button @click="loadHubStubModal" style="float: right;" v-if="displayHubButton() == true">Create Hub</button>

<hr style="margin-top: 5px;">
<div>
Expand Down
2 changes: 2 additions & 0 deletions src/components/panels/edit/modals/NacoStubCreateModal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -1952,6 +1952,8 @@
<option class="preset-option" value="1102#and 4102#">"1102 " &amp; "4102 "</option>
<option class="preset-option" value="1112#">"1112 "</option>
<option class="preset-option" value="1112#and 4112#">"1112 " &amp; "4112 "</option>
<option class="preset-option" value="130##">"130##"</option>
<option class="preset-option" value="430#and 430##">"130##" &amp; "430##"</option>
<option class="preset-option" value="151##">"151##"</option>
<option class="preset-option" value="151##and 451##">"151## &amp; 451##"</option>

Expand Down
1 change: 1 addition & 0 deletions src/lib/utils_network.js
Original file line number Diff line number Diff line change
Expand Up @@ -3387,6 +3387,7 @@ const utilsNetwork = {

let uuid = translator.toUUID(translator.new())


const rawResponse = await fetch(url, {
method: 'POST',
headers: {
Expand Down
2 changes: 1 addition & 1 deletion src/stores/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export const useConfigStore = defineStore('config', {

versionMajor: 1,
versionMinor: 6,
versionPatch: 2,
versionPatch: 3,



Expand Down
Loading