diff --git a/:: b/:: new file mode 100644 index 00000000..e19f4086 --- /dev/null +++ b/:: @@ -0,0 +1,12 @@ +Add pref to use arrow keys to nav btwn compts + +Was the default, now a preference that is opt in. Only applies to +literal fields. Lookups still use arrow keys to move between components. +# Please enter the commit message for your changes. Lines starting +# with '#' will be ignored, and an empty message aborts the commit. +# +# On branch pref-nav-with-arrows +# Changes to be committed: +# modified: src/components/panels/edit/fields/Literal.vue +# modified: src/stores/preference.js +# diff --git a/src/App.vue b/src/App.vue index 67c5e183..a213f839 100644 --- a/src/App.vue +++ b/src/App.vue @@ -26,6 +26,7 @@ import AutoDeweyModal from "./components/panels/edit/modals/AutoDeweyModal.vue"; import YoshinoSubjectsModal from "./components/panels/edit/modals/YoshinoSubjectsModal.vue"; import MarvaScanModal from "./components/panels/edit/modals/MarvaScanModal.vue"; import UpdateAvailableModal from "@/components/general/UpdateAvailableModal.vue"; +import CipModal from "@/components/panels/edit/modals/CipModal.vue" @@ -59,6 +60,7 @@ export default { FieldColorsModal, HubStubCreateModal, NacoStubCreateModal, + CipModal, MarvaLogModal, UserDirectoryModal, FolioSyncModal @@ -76,7 +78,7 @@ export default { ...mapStores(useConfigStore, useProfileStore, usePreferenceStore, useMarvaScanStore), // // gives read access to this.count and this.double ...mapState(useProfileStore, ['profilesLoaded', 'showValidateModal','profilesLoaded', 'showPostModal', 'showItemInstanceSelection', 'isTestEnv']), - ...mapWritableState(useProfileStore, ['showShelfListingModal','showHubStubCreateModal', 'showAutoDeweyModal', 'showYoshinoSubjectsModal', 'showNacoStubCreateModal', 'showMarvaLogModal', 'showUserDirectoryModal', 'showFolioSyncModal']), + ...mapWritableState(useProfileStore, ['showShelfListingModal','showHubStubCreateModal', 'showAutoDeweyModal', 'showYoshinoSubjectsModal', 'showNacoStubCreateModal', 'showMarvaLogModal', 'showUserDirectoryModal', 'showFolioSyncModal', 'showCipModal']), ...mapWritableState(useMarvaScanStore, { showMarvaScanModal: 'showModal' }), ...mapState(usePreferenceStore, ['showPrefModal','catCode','ssoSessionExpired']), @@ -207,6 +209,10 @@ export default { + + + + diff --git a/src/components/panels/edit/modals/CipModal.vue b/src/components/panels/edit/modals/CipModal.vue new file mode 100644 index 00000000..d1d21e7d --- /dev/null +++ b/src/components/panels/edit/modals/CipModal.vue @@ -0,0 +1,353 @@ + + + + + + + + + + + X + + + + Finalize Record + A collection of common actions taken to finish a record. + + + Update Dates: + + + + This will: + + Remove the "Projected Publication Date" + Change the encoding level to "full" + + Match the "Provision Activity" dates and call number date to the "Publication Year" + Insert the "Copyright Year" into the "Copyright date," if provided + Update the "Note about the Instance," if appropriate + + Use the "Copyright Year" as the "Publication Year" and put [brackets] around value + + + + Set the "Note about the Instance." + + + + + + Publication Year: + (default value taken from "Provision Activity") + + Copyright Year: + + + + (Use CopyRight as Pub) + + + + + Finish CIP + + + + + + + + + + diff --git a/src/components/panels/nav/Nav.vue b/src/components/panels/nav/Nav.vue index 8379cf7c..bfd39f9b 100644 --- a/src/components/panels/nav/Nav.vue +++ b/src/components/panels/nav/Nav.vue @@ -67,6 +67,7 @@ import FindReplaceModal from '../edit/modals/FindReplaceModal.vue' import StatusIndicator from './nav_components/StatusIndicator.vue' import RecordHistory from './nav_components/RecordHistory.vue' import SystemStatus from './nav_components/SystemStatus.vue' +import short from 'short-uuid' import TimeAgo from 'javascript-time-ago' @@ -100,7 +101,6 @@ export default { default: [], type: Array } - }, computed: { @@ -110,7 +110,9 @@ export default { ...mapState(usePreferenceStore, ['styleDefault', 'showPrefModal', 'panelDisplay', 'customLayouts', 'createLayoutMode', 'panelSizePresets']), ...mapState(useConfigStore, ['layouts']), ...mapWritableState(usePreferenceStore, ['showLoginModal', 'showLoginModalSSO', 'showScriptshifterConfigModal', 'showDiacriticConfigModal', 'showTextMacroModal', 'layoutActiveFilter', 'layoutActive', 'showFieldColorsModal', 'customLayouts', 'createLayoutMode', 'showPanelSizeModal', 'showFindReplaceModal']), - ...mapWritableState(useProfileStore, ['showPostModal', 'showShelfListingModal', 'activeShelfListData', 'showValidateModal', 'showRecoveryModal', 'showAutoDeweyModal', 'showYoshinoSubjectsModal', 'showItemInstanceSelection', 'showAdHocModal', 'emptyComponents', 'activeProfilePosted', 'activeProfilePostedTimestamp', 'copyCatMode', 'showUserDirectoryModal', 'showFolioSyncModal']), + ...mapWritableState(useProfileStore, ['showPostModal', 'showShelfListingModal', 'activeShelfListData', 'showValidateModal', 'showRecoveryModal', 'showAutoDeweyModal', 'showYoshinoSubjectsModal', 'showItemInstanceSelection', 'showAdHocModal', 'emptyComponents', 'activeProfilePosted', 'activeProfilePostedTimestamp', 'copyCatMode', 'showUserDirectoryModal', 'showFolioSyncModal', 'showCipModal']), + + ...mapWritableState(useConfigStore, ['showNonLatinBulkModal', 'showNonLatinAgentModal']), @@ -469,6 +471,21 @@ export default { ) } + if (!this.disable.includes('Tools') && this.isStaging() && this.$route.path.startsWith('/edit/')) { + for (let sub in menu) { + if (menu[sub].text == 'Tools') { + menu[sub].menu.push( + { + text: 'Finalize Record', + click: () => { this.showCipModal = true }, + icon: "incomplete_circle", + hotkey: "ctrl+alt+f", + } + ) + } + } + } + if (this.$route.path.startsWith('/edit/') && this.preferenceStore.returnValue('--c-general-ad-hoc')) { for (let sub in menu) { if (menu[sub].text == 'Tools') { @@ -1513,6 +1530,7 @@ export default { } }, + addAllDefaults: function () { for (let rt in this.activeProfile.rt) { for (let pt in this.activeProfile.rt[rt].pt) { diff --git a/src/stores/profile.js b/src/stores/profile.js index 03b79fa9..f9f4f861 100644 --- a/src/stores/profile.js +++ b/src/stores/profile.js @@ -105,6 +105,7 @@ export const useProfileStore = defineStore('profile', { savedNARModalData:{}, savedHubModalData:{}, + showCipModal: false, showMarvaLogModal: false, marvaLogResults: [], marvaLogSearchValue: '', @@ -2033,7 +2034,7 @@ export const useProfileStore = defineStore('profile', { * @return {void} */ setValueLiteral: function(componentGuid, fieldGuid, propertyPath, value, lang, repeatedLiteral){ - // console.info("--------------------------\nsetValueLiteral") + console.info("--------------------------\nsetValueLiteral") // console.info("\tcomponentGuid: ", componentGuid) // console.info("\tfieldGuid: ", fieldGuid) // console.info("\tpropertyPath: ", propertyPath) @@ -2203,6 +2204,8 @@ export const useProfileStore = defineStore('profile', { // console.log("currentValueCount",currentValueCount) } + console.info("\t\tblankNode: ", blankNode) + if (!blankNode[lastProperty]){ console.error('Trying to find the value of this literal, unable to:',componentGuid, fieldGuid, propertyPath, value, lang, pt) }
A collection of common actions taken to finish a record.
This will: