From 1dbd8b0d31a9874bff2ee77d4bf194ecb3b8957a Mon Sep 17 00:00:00 2001 From: Thijn Date: Wed, 7 Aug 2024 15:50:35 +0200 Subject: [PATCH 01/18] added stages --- .../publication/AddPublicationModal.vue | 37 +++++++++++++------ 1 file changed, 25 insertions(+), 12 deletions(-) diff --git a/src/modals/publication/AddPublicationModal.vue b/src/modals/publication/AddPublicationModal.vue index 099246f6..4840b527 100644 --- a/src/modals/publication/AddPublicationModal.vue +++ b/src/modals/publication/AddPublicationModal.vue @@ -21,19 +21,32 @@ import { navigationStore, publicationStore } from '../../store/store.js'
- - + +
+ +
+ +
+ + Terug naar Catalogi + + +
+
+ + Terug naar Catalogi + Date: Wed, 7 Aug 2024 16:40:39 +0200 Subject: [PATCH 02/18] WIP there are fases for add publication --- src/modals/publication/AddPublicationModal.vue | 16 ++++------------ 1 file changed, 4 insertions(+), 12 deletions(-) diff --git a/src/modals/publication/AddPublicationModal.vue b/src/modals/publication/AddPublicationModal.vue index 4840b527..0553ac89 100644 --- a/src/modals/publication/AddPublicationModal.vue +++ b/src/modals/publication/AddPublicationModal.vue @@ -32,7 +32,7 @@ import { navigationStore, publicationStore } from '../../store/store.js'
- + Terug naar Catalogi
- - Terug naar Catalogi + + Terug naar Metadata -

Published

+

Publicatie datum

- -

Modified

- -
Date: Thu, 8 Aug 2024 10:13:46 +0200 Subject: [PATCH 03/18] finished publication modals --- .../publication/AddPublicationModal.vue | 33 ++++++--- .../publication/EditPublicationModal.vue | 72 +------------------ 2 files changed, 24 insertions(+), 81 deletions(-) diff --git a/src/modals/publication/AddPublicationModal.vue b/src/modals/publication/AddPublicationModal.vue index 0553ac89..8bc10dd8 100644 --- a/src/modals/publication/AddPublicationModal.vue +++ b/src/modals/publication/AddPublicationModal.vue @@ -87,19 +87,20 @@ import { navigationStore, publicationStore } from '../../store/store.js' + + + + Toevoegen +
- - - Toevoegen -
@@ -191,13 +192,19 @@ export default { }) .then((response) => { response.json().then((data) => { + const selectedCatalogus = data.results.filter((catalogus) => catalogus.id.toString() === navigationStore.selectedCatalogus.toString())[0] this.catalogi = { options: Object.entries(data.results).map((catalog) => ({ id: catalog[1].id, label: catalog[1].title, })), - + value: navigationStore.selectedCatalogus + ? { + id: selectedCatalogus.id, + label: selectedCatalogus.title, + } + : null, } }) this.catalogiLoading = false @@ -329,4 +336,8 @@ export default { flex-direction: row; align-items: center; } + +.apm-submit-button { + margin-block-start: 1rem +} diff --git a/src/modals/publication/EditPublicationModal.vue b/src/modals/publication/EditPublicationModal.vue index 43a40a87..6f1674ba 100644 --- a/src/modals/publication/EditPublicationModal.vue +++ b/src/modals/publication/EditPublicationModal.vue @@ -41,17 +41,11 @@ import { navigationStore, publicationStore } from '../../store/store.js' label="Portaal" :value.sync="publicationItem.portal" /> -

Published

+

Publicatie datum

- -

Modified

- -
{ response.json().then((data) => { publicationStore.setPublicationItem(data) + this.publicationItem = publicationStore.publicationItem }) this.loading = false }) @@ -180,65 +171,6 @@ export default { this.loading = false }) }, - fetchCatalogi() { - this.catalogiLoading = true - fetch('/index.php/apps/opencatalogi/api/catalogi', { - method: 'GET', - }) - .then((response) => { - response.json().then((data) => { - - const selectedCatalogi = data.results.find((catalogi) => catalogi.id.toString() === this.publicationItem.catalogi.toString()) - - this.catalogi = { - inputLabel: 'Catalogi', - options: data.results.map((catalog) => ({ - id: catalog.id, - label: catalog.title, - })), - // FIXME: for some reason the NcSelect uses the id instead of the label when displaying - value: [{ - id: selectedCatalogi.id ?? '', - label: selectedCatalogi.title ?? '', - }], - } - }) - this.catalogiLoading = false - }) - .catch((err) => { - console.error(err) - this.catalogiLoading = false - }) - }, - fetchMetaData() { - this.metaDataLoading = true - fetch('/index.php/apps/opencatalogi/api/metadata', { - method: 'GET', - }) - .then((response) => { - response.json().then((data) => { - const selectedMetaData = data.results.find((metadata) => metadata.id.toString() === this.publicationItem.metaData.toString()) - - this.metaData = { - inputLabel: 'MetaData', - options: data.results.map((metaData) => ({ - id: metaData.id, - label: metaData.title, - })), - // FIXME: for some reason the NcSelect uses the id instead of the label when displaying - value: { - id: selectedMetaData.id, - label: selectedMetaData.title, - }, - } - }) - this.metaDataLoading = false - }) - .catch((err) => { - console.error(err) - this.metaDataLoading = false - }) - }, updatePublication() { this.loading = true fetch( From 12a380dfab366605e2208cca0d4e1d1358b00942 Mon Sep 17 00:00:00 2001 From: Ruben van der Linde Date: Thu, 8 Aug 2024 10:42:58 +0200 Subject: [PATCH 04/18] Hotfixes voor catalogi en directory detail pagina --- src/modals/catalog/AddCatalogModal.vue | 4 +-- src/modals/catalog/EditCatalogModal.vue | 4 +-- src/sidebars/directory/DirectorySideBar.vue | 34 ++++++++++++++++++++- src/views/catalogi/CatalogiDetails.vue | 5 +-- 4 files changed, 38 insertions(+), 9 deletions(-) diff --git a/src/modals/catalog/AddCatalogModal.vue b/src/modals/catalog/AddCatalogModal.vue index 9294a4f5..f8afc657 100644 --- a/src/modals/catalog/AddCatalogModal.vue +++ b/src/modals/catalog/AddCatalogModal.vue @@ -35,9 +35,9 @@ import { catalogiStore, navigationStore } from '../../store/store.js' maxlength="255" :value.sync="catalogi.description" /> - Listed + Publiek vindbaar - Listed + Publiek vindbaar + + + + Beschickbaar maken voor mijn zoek opdrachten + + + Standaard mee nemen in de beantwoording van mijn zoekopdrachten + + + + + Welke meta data typen zou u uit deze catalogus willen overnemen? + + Metedata type 1 + +