diff --git a/components/detail-disclosure.vue b/components/detail-disclosure.vue index 435ed63..301da4e 100644 --- a/components/detail-disclosure.vue +++ b/components/detail-disclosure.vue @@ -32,12 +32,13 @@ const changeSort = (col: string) => { const currentRels = computed(() => { let retRels = [...props.rels]; - if (sortBy.value.includes(":rev")) { + const adjValue = sortBy.value.replace(/((?:start|end)_date)/g, "$1_iso"); + if (adjValue.includes(":rev")) { retRels = retRels.sort((a, b) => - String(a[sortBy.value.split(":")[0]]) < String(b[sortBy.value.split(":")[0]]) ? 1 : -1, + String(a[adjValue.split(":")[0]]) < String(b[adjValue.split(":")[0]]) ? 1 : -1, ); } else { - retRels = retRels.sort((a, b) => (String(a[sortBy.value]) < String(b[sortBy.value]) ? -1 : 1)); + retRels = retRels.sort((a, b) => (String(a[adjValue]) < String(b[adjValue]) ? -1 : 1)); } return retRels.slice(page.value * limit, (page.value + 1) * limit); }); diff --git a/locales/de.json b/locales/de.json index 3a757b9..36082de 100644 --- a/locales/de.json +++ b/locales/de.json @@ -163,7 +163,8 @@ "institutions": "Institution", "allowance": "Zahlungen", "same_as": "Onlineressourcen", - "confession": "Konfession" + "confession": "Konfession", + "no-notes": "Keine Notizen vorhanden." }, "viecpro_courts": { "model": "Modell", diff --git a/locales/en.json b/locales/en.json index 02636e3..2204da5 100644 --- a/locales/en.json +++ b/locales/en.json @@ -162,7 +162,8 @@ "institutions": "Institution", "allowance": "Allowance", "same_as": "Online resources", - "confession": "Confession" + "confession": "Confession", + "no-notes": "No notes provided." }, "viecpro_courts": { "model": "Model", diff --git a/package.json b/package.json index 8e604c7..e1f5cae 100644 --- a/package.json +++ b/package.json @@ -35,7 +35,7 @@ "@headlessui-float/vue": "^0.13.3", "@headlessui/vue": "^1.7.16", "@nuxt/content": "^2.8.5", - "@nuxt/image": "npm:@nuxt/image-edge", + "@nuxt/image": "npm:@nuxt/image-edge@1.1.0-28344124.5284548", "@nuxtjs/i18n": "^8.0.0", "@tanstack/vue-query": "^5.17.2", "@vueuse/core": "^10.7.1", diff --git a/pages/detail/persons/[id].vue b/pages/detail/persons/[id].vue index 1854e02..dd8bedd 100644 --- a/pages/detail/persons/[id].vue +++ b/pages/detail/persons/[id].vue @@ -1,7 +1,7 @@