@piveau/piveau-hub-ui-modules 4.4.13 → 4.4.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/datasetDetails/navigation/DatasetDetailsNavigationLinks.vue.d.ts +1 -0
- package/dist/datasetDetails/navigation/DatasetDetailsNavigationLinks.vue.mjs +209 -158
- package/dist/datasetDetails/navigation/DatasetDetailsNavigationLinks.vue.mjs.map +1 -1
- package/dist/datasetDetails/properties/specification.mjs +3 -3
- package/dist/datasetDetails/properties/specification.mjs.map +1 -1
- package/dist/piveau-hub-ui-modules.css +1 -1
- package/dist/services/datasetService.mjs +1 -1
- package/dist/services/datasetService.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DatasetDetailsNavigationLinks.vue.mjs","sources":["../../../lib/datasetDetails/navigation/DatasetDetailsNavigationLinks.vue"],"sourcesContent":["<template>\n <nav class=\"dsd-nav-links\">\n <ul class=\"menu m-0 list-inline list-unstyled navbar-nav\">\n <dataset-details-feedback-button />\n <div class=\"d-inline dropdown dsd-link-share\">\n <app-link class=\"nav-item nav-link dropdown-toggle text-nowrap\" fragment=\"#\" role=\"button\" id=\"shareDatasetDropdownMenuLink\" data-toggle=\"dropdown\" aria-haspopup=\"true\" aria-expanded=\"false\">\n <span :title=\"$t('message.tooltip.datasetDetails.share')\"\n data-toggle=\"tooltip\"\n data-placement=\"top\">\n {{ $t('message.datasetDetails.share') }}\n </span>\n </app-link>\n <div class=\"dropdown-menu\" aria-labelledby=\"shareDatasetDropdownMenuLink\">\n <dataset-details-share-button class=\"dropdown-item\" :to=\"`https://www.facebook.com/sharer.php?u=${url}`\" :icon=\"{ prefix: 'fab', iconName: 'facebook-f' }\"></dataset-details-share-button>\n <dataset-details-share-button class=\"dropdown-item\" :to=\"`https://twitter.com/intent/tweet?url=${url}`\" :icon=\"{ prefix: 'fab', iconName: 'twitter' }\"></dataset-details-share-button>\n <dataset-details-share-button class=\"dropdown-item\" :to=\"`https://www.linkedin.com/shareArticle?mini=true&url=${url}`\" :icon=\"{ prefix: 'fab', iconName: 'linkedin-in' }\"></dataset-details-share-button>\n </div>\n </div>\n <div class=\"d-inline dsd-link-feed\">\n <app-link class=\"nav-item nav-link text-nowrap\"\n :to=\"getFeedLink()\"\n target=\"_blank\"\n matomo-track-page-view\n role=\"button\">\n <span :title=\"$t('message.tooltip.datasetDetails.datasetFeed')\" data-toggle=\"tooltip\" data-placement=\"top\"> {{ $t('message.datasetDetails.datasetFeed') }}\n </span>\n </app-link>\n </div>\n <div class=\"d-inline dropdown dsd-link-linked-data\">\n <app-link class=\"nav-item nav-link dropdown-toggle text-nowrap\" fragment=\"#\" role=\"button\" id=\"linkedDataDropdownMenuLink\" data-toggle=\"dropdown\" aria-haspopup=\"true\" aria-expanded=\"false\">\n <!--<i class=\"material-icons small-icon align-bottom text-dark\">***FIND A LINKED DATA ICON***</i>-->\n <span :title=\"$t('message.tooltip.datasetDetails.linkedData')\"\n data-toggle=\"tooltip\"\n data-placement=\"top\">\n {{ $t('message.metadata.linkedData') }}\n </span>\n </app-link>\n <div class=\"dropdown-menu\" aria-labelledby=\"linkedDataDropdownMenuLink\">\n <resource-details-linked-data-button class=\"dropdown-item\" format=\"rdf\" text=\"RDF/XML\" resources=\"datasets\" v-bind:resources-id=\"datasetId\"></resource-details-linked-data-button>\n <resource-details-linked-data-button class=\"dropdown-item\" format=\"ttl\" text=\"Turtle\" resources=\"datasets\" v-bind:resources-id=\"datasetId\"></resource-details-linked-data-button>\n <resource-details-linked-data-button class=\"dropdown-item\" format=\"n3\" text=\"Notation3\" resources=\"datasets\" v-bind:resources-id=\"datasetId\"></resource-details-linked-data-button>\n <resource-details-linked-data-button class=\"dropdown-item\" format=\"nt\" text=\"N-Triples\" resources=\"datasets\" v-bind:resources-id=\"datasetId\"></resource-details-linked-data-button>\n <resource-details-linked-data-button class=\"dropdown-item\" format=\"jsonld\" text=\"JSON-LD\" resources=\"datasets\" v-bind:resources-id=\"datasetId\"></resource-details-linked-data-button>\n </div>\n </div>\n <div class=\"d-inline dropdown dsd-link-dqv\" v-if=\"showDQV\">\n <app-link class=\"nav-item nav-link dropdown-toggle text-nowrap\" \n :class=\"{'disabled': !(getIsDQVDataRDFAvailable || getIsDQVDataTTLAvailable || getIsDQVDataN3Available || getIsDQVDataNTAvailable || getIsDQVDataJSONLDAvailable)}\"\n fragment=\"#\" role=\"button\" id=\"metaDataDropdownMenuLink\" data-toggle=\"dropdown\" aria-haspopup=\"true\" aria-expanded=\"false\">\n <!--<i class=\"material-icons small-icon align-bottom text-dark\">***FIND A LINKED DATA ICON***</i>-->\n <span :title=\"$t('message.tooltip.datasetDetails.dqvData')\"\n data-toggle=\"tooltip\"\n data-placement=\"top\">\n DQV Data\n </span>\n </app-link>\n <div class=\"dropdown-menu dropdown-menu-right\" aria-labelledby=\"metaDataDropdownMenuLink\">\n <dataset-details-linked-metrics-button class=\"dropdown-item\" :class=\"{'disabled': !getIsDQVDataRDFAvailable}\" format=\"rdf\" text=\"RDF/XML\" v-bind:dataset-id=\"datasetId\"></dataset-details-linked-metrics-button>\n <dataset-details-linked-metrics-button class=\"dropdown-item\" :class=\"{'disabled': !getIsDQVDataTTLAvailable}\" format=\"ttl\" text=\"Turtle\" v-bind:dataset-id=\"datasetId\"></dataset-details-linked-metrics-button>\n <dataset-details-linked-metrics-button class=\"dropdown-item\" :class=\"{'disabled': !getIsDQVDataN3Available}\" format=\"n3\" text=\"Notation3\" v-bind:dataset-id=\"datasetId\"></dataset-details-linked-metrics-button>\n <dataset-details-linked-metrics-button class=\"dropdown-item\" :class=\"{'disabled': !getIsDQVDataNTAvailable}\" format=\"nt\" text=\"N-Triples\" v-bind:dataset-id=\"datasetId\"></dataset-details-linked-metrics-button>\n <dataset-details-linked-metrics-button class=\"dropdown-item\" :class=\"{'disabled': !getIsDQVDataJSONLDAvailable}\" format=\"jsonld\" text=\"JSON-LD\" v-bind:dataset-id=\"datasetId\"></dataset-details-linked-metrics-button>\n </div>\n </div>\n <div class=\"d-inline dropdown dsd-link-cite\">\n <app-link\n class=\"nav-item nav-link dropdown-toggle text-nowrap\"\n :class=\"{\n 'disabled': getLoading,\n }\"\n fragment=\"#\"\n role=\"button\"\n id=\"citationDropdown\"\n data-toggle=\"dropdown\"\n aria-haspopup=\"true\"\n aria-expanded=\"false\"\n data-cy=\"citation-dropdown-expand\">\n <span :title=\"$t('message.tooltip.datasetDetails.cite')\" data-toggle=\"tooltip\" data-placement=\"top\"> {{ $t('message.datasetDetails.cite') }}\n </span>\n </app-link>\n <div\n class=\"dropdown-menu dropdown-menu-right\"\n aria-labelledby=\"citationDropdown\"\n >\n <button\n class=\"dropdown-item\"\n v-for=\"(citationLabel, style) in availableCitationStyles\"\n type=\"button\"\n :key=\"style\"\n :disabled=\"getLoading\"\n @click=\"showCitationModal(style)\"\n >\n <div :data-cy=\"`citation-dropdown-item@${style}`\">\n {{ $te(`message.datasetDetails.citationStyle.${style}`) ? $t(`message.datasetDetails.citationStyle.${style}`) : citationLabel }}\n </div>\n </button>\n </div>\n </div>\n <div v-if=\"this.$env.content.datasetDetails.embed.enable\" class=\"d-inline dropdown dsd-link-cite\">\n <button type=\"button\" data-toggle=\"modal\" data-target=\"#embedModal\" class=\"nav-item nav-link text-nowrap bg-none border-0\" fragment=\"#\" role=\"button\" id=\"\" style=\"background:none;\">\n <span title=\"Embed\"\n data-toggle=\"tooltip\"\n data-placement=\"top\"\n >\n {{ $t('message.datasetDetails.datasets.modal.embed') }}\n </span>\n </button>\n </div>\n <hr />\n </ul>\n <dataset-citation-modal\n v-if=\"!getLoading && getID\"\n :modal-id=\"citationModalId\"\n :citation-style=\"citationStyle\"\n :available-citation-styles=\"availableCitationStyles\"\n />\n <dataset-embed-modal />\n </nav>\n</template>\n\n<script>\nimport { defineAsyncComponent } from 'vue';\nimport { mapGetters, mapActions } from \"vuex\";\nimport $ from \"jquery\";\nimport * as metaInfo from '../../composables/head';\nimport { getTranslationFor } from \"../../utils/helpers\";\n\n\nexport default {\n name: \"DatasetDetailsNavigationLinks\",\n props: {\n datasetId: {\n type: String,\n required: true,\n },\n },\n components: {\n AppLink: defineAsyncComponent(() => import('../../widgets/AppLink')),\n DatasetCitationModal: defineAsyncComponent(() => import('../../citation/DatasetCitationModal')),\n DatasetEmbedModal: defineAsyncComponent(() => import('../../embed/DatasetEmbedModal')),\n DatasetDetailsFeedbackButton: defineAsyncComponent(() => import('../../datasetDetails/DatasetDetailsFeedbackButton')),\n DatasetDetailsShareButton: defineAsyncComponent(() => import('../../datasetDetails/DatasetDetailsShareButton')),\n DatasetDetailsLinkedMetricsButton: defineAsyncComponent(() => import('../../datasetDetails/DatasetDetailsLinkedMetricsButton')),\n ResourceDetailsLinkedDataButton: defineAsyncComponent(() => import('../../widgets/ResourceDetailsLinkedDataButton')),\n },\n data() {\n return {\n baseUrl: this.$env.api.baseUrl,\n useDQVDataDropdown: this.$env.content.datasetDetails.quality.useDQVDataDropdown,\n citationModalId: 'citationModal',\n // Note: leave citationStyle empty so that the app does not try to load the citation\n // on navigation to the dataset details page in the background.\n citationStyle: '',\n availableCitationStyles: {\n deu: 'EU Data Citation',\n apa: 'APA',\n harvard1: 'Harvard',\n vancouver: 'Vancouver',\n },\n };\n },\n computed: {\n ...mapGetters('datasetDetails', [\n 'getTitle',\n 'getLanguages',\n 'getLoading',\n 'getIsDQVDataRDFAvailable',\n 'getIsDQVDataTTLAvailable',\n 'getIsDQVDataN3Available',\n 'getIsDQVDataNTAvailable',\n 'getIsDQVDataJSONLDAvailable',\n 'getID',\n ]),\n url() { \n return window.location.href; \n },\n showDQV() {\n return this.useDQVDataDropdown && this.$route.path.endsWith(\"quality\");\n },\n },\n methods: {\n getTranslationFor,\n getFeedLink() {\n return `${this.baseUrl}${this.$route.query.locale}/feeds/datasets/${this.datasetId}.rss`;\n },\n async showCitationModal(style = 'default') {\n this.citationStyle = style;\n await this.$nextTick();\n $('#citationModal').modal({ show: true });\n },\n modal() {\n $('#citationModal').modal({ show: true });\n },\n },\n mounted() {},\n setup() {\n metaInfo.useDatasetDetailsNavigationLinksHead();\n }\n}\n</script>\n\n<style scoped lang=\"scss\">\n.dropdown-item {\n &:active {\n background-color: var(--dropdown-item-active-bg);\n }\n}\n\n.nav-link {\n text-decoration: underline;\n}\n</style>\n"],"names":["_sfc_main","defineAsyncComponent","mapGetters","getTranslationFor","style","$","metaInfo.useDatasetDetailsNavigationLinksHead","_hoisted_1","_hoisted_2","_hoisted_3","_hoisted_4","_hoisted_6","_hoisted_7","_hoisted_8","_hoisted_9","_hoisted_12","_hoisted_14","_hoisted_15","_hoisted_17","_hoisted_18","_openBlock","_createElementBlock","_createElementVNode","_createVNode","_component_dataset_details_feedback_button","_cache","_createTextVNode","_component_app_link","_withCtx","_ctx","_toDisplayString","_hoisted_5","_component_dataset_details_share_button","$options","_hoisted_10","_component_resource_details_linked_data_button","$props","_hoisted_11","_normalizeClass","_hoisted_13","_component_dataset_details_linked_metrics_button","_createCommentVNode","_hoisted_16","_Fragment","_renderList","$data","citationLabel","$event","_hoisted_19","_hoisted_20","_hoisted_21","_createBlock","_component_dataset_citation_modal","_component_dataset_embed_modal"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAgIA,MAAKA,IAAU;AAAA,EACb,MAAM;AAAA,EACN,OAAO;AAAA,IACL,WAAW;AAAA,MACT,MAAM;AAAA,MACN,UAAU;AAAA,IACX;AAAA,EACF;AAAA,EACD,YAAY;AAAA,IACV,SAASC,EAAqB,MAAM,OAAO,+BAAuB,CAAC;AAAA,IACnE,sBAAsBA,EAAqB,MAAM,OAAO,6CAAqC,CAAC;AAAA,IAC9F,mBAAmBA,EAAqB,MAAM,OAAO,uCAA+B,CAAC;AAAA,IACrF,8BAA8BA,EAAqB,MAAM,OAAO,yCAAmD,CAAC;AAAA,IACpH,2BAA2BA,EAAqB,MAAM,OAAO,sCAAgD,CAAC;AAAA,IAC9G,mCAAmCA,EAAqB,MAAM,OAAO,8CAA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,MACzB,kBAAgBA,EAAa;AAAA,MAC7B,6BAA2BA,EAAuB;AAAA,gFAlHzDJ,EAAA,IAAA,EAAA;AAAA,IAAAhB,EAAA,EAAA,MAAAA,EAAA,EAAA,IAAAC,EAAA;AAAA,IAoHIH,EAAuB8B,CAAA;AAAA;;;"}
|
|
1
|
+
{"version":3,"file":"DatasetDetailsNavigationLinks.vue.mjs","sources":["../../../lib/datasetDetails/navigation/DatasetDetailsNavigationLinks.vue"],"sourcesContent":["<template>\n <nav class=\"dsd-nav-links\">\n <ul class=\"menu m-0 list-inline list-unstyled navbar-nav\">\n <dataset-details-feedback-button />\n <div class=\"d-inline dropdown dsd-link-share\">\n <app-link class=\"nav-item nav-link dropdown-toggle text-nowrap\" fragment=\"#\" role=\"button\" id=\"shareDatasetDropdownMenuLink\" data-toggle=\"dropdown\" aria-haspopup=\"true\" aria-expanded=\"false\">\n <span :title=\"$t('message.tooltip.datasetDetails.share')\"\n data-toggle=\"tooltip\"\n data-placement=\"top\">\n {{ $t('message.datasetDetails.share') }}\n </span>\n </app-link>\n <div class=\"dropdown-menu\" aria-labelledby=\"shareDatasetDropdownMenuLink\">\n <dataset-details-share-button class=\"dropdown-item\" :to=\"`https://www.facebook.com/sharer.php?u=${url}`\" :icon=\"{ prefix: 'fab', iconName: 'facebook-f' }\"></dataset-details-share-button>\n <dataset-details-share-button class=\"dropdown-item\" :to=\"`https://twitter.com/intent/tweet?url=${url}`\" :icon=\"{ prefix: 'fab', iconName: 'twitter' }\"></dataset-details-share-button>\n <dataset-details-share-button class=\"dropdown-item\" :to=\"`https://www.linkedin.com/shareArticle?mini=true&url=${url}`\" :icon=\"{ prefix: 'fab', iconName: 'linkedin-in' }\"></dataset-details-share-button>\n </div>\n </div>\n\n <!-- API link with True/False-->\n <div v-if=\"this.$env.content.datasetDetails.embed.enable\" class=\"d-inline dropdown dsd-link-cite\">\n <button\n @click=\"openApiCall()\"\n class=\"nav-item nav-link text-nowrap api-button\"\n :class=\"{\n 'disabled': getLoading,\n }\"\n fragment=\"#\"\n role=\"button\"\n id=\"citationDropdown\"\n data-toggle=\"dropdown\"\n aria-haspopup=\"true\"\n aria-expanded=\"false\"\n data-cy=\"citation-dropdown-expand\">\n \n <span class=\"api-link\" title=\"Open API request of this Dataset.\" data-toggle=\"tooltip\" data-placement=\"top\"> \n API \n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"12\" height=\"12\" fill=\"currentColor\" class=\"bi bi-box-arrow-up-right\" viewBox=\"0 0 16 16\">\n <path fill-rule=\"evenodd\" d=\"M8.636 3.5a.5.5 0 0 0-.5-.5H1.5A1.5 1.5 0 0 0 0 4.5v10A1.5 1.5 0 0 0 1.5 16h10a1.5 1.5 0 0 0 1.5-1.5V7.864a.5.5 0 0 0-1 0V14.5a.5.5 0 0 1-.5.5h-10a.5.5 0 0 1-.5-.5v-10a.5.5 0 0 1 .5-.5h6.636a.5.5 0 0 0 .5-.5\"/>\n <path fill-rule=\"evenodd\" d=\"M16 .5a.5.5 0 0 0-.5-.5h-5a.5.5 0 0 0 0 1h3.793L6.146 9.146a.5.5 0 1 0 .708.708L15 1.707V5.5a.5.5 0 0 0 1 0z\"/>\n </svg>\n </span>\n </button>\n \n </div>\n\n <!-- Cite link -->\n <div class=\"d-inline dropdown dsd-link-cite\">\n <app-link\n class=\"nav-item nav-link dropdown-toggle text-nowrap\"\n :class=\"{\n 'disabled': getLoading,\n }\"\n fragment=\"#\"\n role=\"button\"\n id=\"citationDropdown\"\n data-toggle=\"dropdown\"\n aria-haspopup=\"true\"\n aria-expanded=\"false\"\n data-cy=\"citation-dropdown-expand\">\n <span :title=\"$t('message.tooltip.datasetDetails.cite')\" data-toggle=\"tooltip\" data-placement=\"top\"> {{ $t('message.datasetDetails.cite') }}\n </span>\n </app-link>\n <div\n class=\"dropdown-menu dropdown-menu-right\"\n aria-labelledby=\"citationDropdown\"\n >\n <button\n class=\"dropdown-item\"\n v-for=\"(citationLabel, style) in availableCitationStyles\"\n type=\"button\"\n :key=\"style\"\n :disabled=\"getLoading\"\n @click=\"showCitationModal(style)\"\n >\n <div :data-cy=\"`citation-dropdown-item@${style}`\">\n {{ $te(`message.datasetDetails.citationStyle.${style}`) ? $t(`message.datasetDetails.citationStyle.${style}`) : citationLabel }}\n </div>\n </button>\n </div>\n </div>\n\n <!-- Linked Data link-->\n <div class=\"d-inline dropdown dsd-link-linked-data\">\n <app-link class=\"nav-item nav-link dropdown-toggle text-nowrap\" fragment=\"#\" role=\"button\" id=\"linkedDataDropdownMenuLink\" data-toggle=\"dropdown\" aria-haspopup=\"true\" aria-expanded=\"false\">\n <!--<i class=\"material-icons small-icon align-bottom text-dark\">***FIND A LINKED DATA ICON***</i>-->\n <span :title=\"$t('message.tooltip.datasetDetails.linkedData')\"\n data-toggle=\"tooltip\"\n data-placement=\"top\">\n {{ $t('message.metadata.linkedData') }}\n </span>\n </app-link>\n <div class=\"dropdown-menu\" aria-labelledby=\"linkedDataDropdownMenuLink\">\n <resource-details-linked-data-button class=\"dropdown-item\" format=\"rdf\" text=\"RDF/XML\" resources=\"datasets\" v-bind:resources-id=\"datasetId\"></resource-details-linked-data-button>\n <resource-details-linked-data-button class=\"dropdown-item\" format=\"ttl\" text=\"Turtle\" resources=\"datasets\" v-bind:resources-id=\"datasetId\"></resource-details-linked-data-button>\n <resource-details-linked-data-button class=\"dropdown-item\" format=\"n3\" text=\"Notation3\" resources=\"datasets\" v-bind:resources-id=\"datasetId\"></resource-details-linked-data-button>\n <resource-details-linked-data-button class=\"dropdown-item\" format=\"nt\" text=\"N-Triples\" resources=\"datasets\" v-bind:resources-id=\"datasetId\"></resource-details-linked-data-button>\n <resource-details-linked-data-button class=\"dropdown-item\" format=\"jsonld\" text=\"JSON-LD\" resources=\"datasets\" v-bind:resources-id=\"datasetId\"></resource-details-linked-data-button>\n </div>\n </div>\n\n <!-- Embed link with True/False-->\n <div v-if=\"this.$env.content.datasetDetails.embed.enable\" class=\"d-inline dropdown dsd-link-cite\">\n <button type=\"button\" data-toggle=\"modal\" data-target=\"#embedModal\" class=\"nav-item nav-link text-nowrap bg-none border-0\" fragment=\"#\" role=\"button\" id=\"\" style=\"background:none;\">\n <span title=\"Copy link to embed the dataset in other pages\"\n data-toggle=\"tooltip\"\n data-placement=\"top\"\n >\n {{ $t('message.datasetDetails.datasets.modal.embed') }}\n </span>\n </button>\n </div>\n\n <!-- DQV link with True/False-->\n <div class=\"d-inline dropdown dsd-link-dqv\" v-if=\"showDQV\">\n <app-link class=\"nav-item nav-link dropdown-toggle text-nowrap\" \n :class=\"{'disabled': !(getIsDQVDataRDFAvailable || getIsDQVDataTTLAvailable || getIsDQVDataN3Available || getIsDQVDataNTAvailable || getIsDQVDataJSONLDAvailable)}\"\n fragment=\"#\" role=\"button\" id=\"metaDataDropdownMenuLink\" data-toggle=\"dropdown\" aria-haspopup=\"true\" aria-expanded=\"false\">\n <!--<i class=\"material-icons small-icon align-bottom text-dark\">***FIND A LINKED DATA ICON***</i>-->\n <span :title=\"$t('message.tooltip.datasetDetails.dqvData')\"\n data-toggle=\"tooltip\"\n data-placement=\"top\">\n DQV Data\n </span>\n </app-link>\n <div class=\"dropdown-menu dropdown-menu-right\" aria-labelledby=\"metaDataDropdownMenuLink\">\n <dataset-details-linked-metrics-button class=\"dropdown-item\" :class=\"{'disabled': !getIsDQVDataRDFAvailable}\" format=\"rdf\" text=\"RDF/XML\" v-bind:dataset-id=\"datasetId\"></dataset-details-linked-metrics-button>\n <dataset-details-linked-metrics-button class=\"dropdown-item\" :class=\"{'disabled': !getIsDQVDataTTLAvailable}\" format=\"ttl\" text=\"Turtle\" v-bind:dataset-id=\"datasetId\"></dataset-details-linked-metrics-button>\n <dataset-details-linked-metrics-button class=\"dropdown-item\" :class=\"{'disabled': !getIsDQVDataN3Available}\" format=\"n3\" text=\"Notation3\" v-bind:dataset-id=\"datasetId\"></dataset-details-linked-metrics-button>\n <dataset-details-linked-metrics-button class=\"dropdown-item\" :class=\"{'disabled': !getIsDQVDataNTAvailable}\" format=\"nt\" text=\"N-Triples\" v-bind:dataset-id=\"datasetId\"></dataset-details-linked-metrics-button>\n <dataset-details-linked-metrics-button class=\"dropdown-item\" :class=\"{'disabled': !getIsDQVDataJSONLDAvailable}\" format=\"jsonld\" text=\"JSON-LD\" v-bind:dataset-id=\"datasetId\"></dataset-details-linked-metrics-button>\n </div>\n </div>\n \n <!-- Dataset Feed link -->\n <div class=\"d-inline dsd-link-feed\">\n <app-link class=\"nav-item nav-link text-nowrap\"\n :to=\"getFeedLink()\"\n target=\"_blank\"\n matomo-track-page-view\n role=\"button\">\n <span :title=\"$t('message.tooltip.datasetDetails.datasetFeed')\" data-toggle=\"tooltip\" data-placement=\"top\"> {{ $t('message.datasetDetails.datasetFeed') }}\n </span>\n </app-link>\n </div>\n <hr />\n </ul>\n <dataset-citation-modal\n v-if=\"!getLoading && getID\"\n :modal-id=\"citationModalId\"\n :citation-style=\"citationStyle\"\n :available-citation-styles=\"availableCitationStyles\"\n />\n <dataset-embed-modal />\n </nav>\n</template>\n\n<script>\nimport { defineAsyncComponent } from 'vue';\nimport { mapGetters, mapActions } from \"vuex\";\nimport $ from \"jquery\";\nimport * as metaInfo from '../../composables/head';\nimport { getTranslationFor } from \"../../utils/helpers\";\n\n\nexport default {\n name: \"DatasetDetailsNavigationLinks\",\n props: {\n datasetId: {\n type: String,\n required: true,\n },\n },\n components: {\n AppLink: defineAsyncComponent(() => import('../../widgets/AppLink')),\n DatasetCitationModal: defineAsyncComponent(() => import('../../citation/DatasetCitationModal')),\n DatasetEmbedModal: defineAsyncComponent(() => import('../../embed/DatasetEmbedModal')),\n DatasetDetailsFeedbackButton: defineAsyncComponent(() => import('../../datasetDetails/DatasetDetailsFeedbackButton')),\n DatasetDetailsShareButton: defineAsyncComponent(() => import('../../datasetDetails/DatasetDetailsShareButton')),\n DatasetDetailsLinkedMetricsButton: defineAsyncComponent(() => import('../../datasetDetails/DatasetDetailsLinkedMetricsButton')),\n ResourceDetailsLinkedDataButton: defineAsyncComponent(() => import('../../widgets/ResourceDetailsLinkedDataButton')),\n },\n data() {\n return {\n baseUrl: this.$env.api.baseUrl,\n useDQVDataDropdown: this.$env.content.datasetDetails.quality.useDQVDataDropdown,\n citationModalId: 'citationModal',\n // Note: leave citationStyle empty so that the app does not try to load the citation\n // on navigation to the dataset details page in the background.\n citationStyle: '',\n availableCitationStyles: {\n deu: 'EU Data Citation',\n apa: 'APA',\n harvard1: 'Harvard',\n vancouver: 'Vancouver',\n },\n };\n },\n computed: {\n ...mapGetters('datasetDetails', [\n 'getTitle',\n 'getLanguages',\n 'getLoading',\n 'getIsDQVDataRDFAvailable',\n 'getIsDQVDataTTLAvailable',\n 'getIsDQVDataN3Available',\n 'getIsDQVDataNTAvailable',\n 'getIsDQVDataJSONLDAvailable',\n 'getID',\n ]),\n url() { \n return window.location.href; \n },\n showDQV() {\n return this.useDQVDataDropdown && this.$route.path.endsWith(\"quality\");\n },\n },\n methods: {\n getTranslationFor,\n getFeedLink() {\n return `${this.baseUrl}${this.$route.query.locale}/feeds/datasets/${this.datasetId}.rss`;\n },\n async showCitationModal(style = 'default') {\n this.citationStyle = style;\n await this.$nextTick();\n $('#citationModal').modal({ show: true });\n },\n modal() {\n $('#citationModal').modal({ show: true });\n },\n openApiCall() {\n window.open(this.baseUrl + \"datasets/\" + this.getID, \"_blank\");\n }\n },\n mounted() {},\n setup() {\n metaInfo.useDatasetDetailsNavigationLinksHead();\n }\n}\n</script>\n\n<style scoped lang=\"scss\">\n.dropdown-item {\n &:active {\n background-color: var(--dropdown-item-active-bg);\n }\n}\n\n.nav-link {\n text-decoration: underline;\n}\n\n.api-link svg {\n margin-bottom: 4px;\n}\n\n.api-button {\n all: unset; \n cursor: pointer; \n padding: 0px;\n margin-top: 8px;\n}\n\n.menu .nav-link:focus {\n border: none !important;\n}\n</style>\n"],"names":["_sfc_main","defineAsyncComponent","mapGetters","getTranslationFor","style","$","metaInfo.useDatasetDetailsNavigationLinksHead","_hoisted_1","_hoisted_2","_hoisted_3","_hoisted_4","_hoisted_7","_hoisted_8","_hoisted_10","_hoisted_11","_hoisted_12","_hoisted_13","_hoisted_19","_hoisted_21","_hoisted_22","_openBlock","_createElementBlock","_createElementVNode","_createVNode","_component_dataset_details_feedback_button","_cache","_createTextVNode","_component_app_link","_withCtx","_ctx","_toDisplayString","_hoisted_5","_component_dataset_details_share_button","$options","_hoisted_6","_normalizeClass","_createCommentVNode","_hoisted_9","_Fragment","_renderList","$data","citationLabel","$event","_hoisted_14","_component_resource_details_linked_data_button","$props","_hoisted_15","_hoisted_16","_hoisted_17","_hoisted_18","_hoisted_20","_component_dataset_details_linked_metrics_button","_createBlock","_component_dataset_citation_modal","_component_dataset_embed_modal"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAqKA,MAAKA,IAAU;AAAA,EACb,MAAM;AAAA,EACN,OAAO;AAAA,IACL,WAAW;AAAA,MACT,MAAM;AAAA,MACN,UAAU;AAAA,IACX;AAAA,EACF;AAAA,EACD,YAAY;AAAA,IACV,SAASC,EAAqB,MAAM,OAAO,+BAAuB,CAAC;AAAA,IACnE,sBAAsBA,EAAqB,MAAM,OAAO,6CAAqC,CAAC;AAAA,IAC9F,mBAAmBA,EAAqB,MAAM,OAAO,uCAA+B,CAAC;AAAA,IACrF,8BAA8BA,EAAqB,MAAM,OAAO,yCAAmD,CAAC;AAAA,IACpH,2BAA2BA,EAAqB,MAAM,OAAO,sCAAgD,CAAC;AAAA,IAC9G,mCAAmCA,EAAqB,MAAM,OAAO,8CAAwD,CAAC;AAAA,IAC9H,iCAAiCA,EAAqB,MAAM,OAAO,uDAA+C,CAAC;AAAA,EACpH;AAAA,EACD,OAAO;AACL,WAAO;AAAA,MACL,SAAS,KAAK,KAAK,IAAI;AAAA,MACvB,oBAAoB,KAAK,KAAK,QAAQ,eAAe,QAAQ;AAAA,MAC7D,iBAAiB;AAAA;AAAA;AAAA,MAGjB,eAAe;AAAA,MACf,yBAAyB;AAAA,QACvB,KAAK;AAAA,QACL,KAAK;AAAA,QAC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AA,EAAA,MAAAA,EAAA,EAAA,IAAAC,EAAA;AAAA,MAuIMJ,EASM,OATNJ,IASM;AAAA,QARJK,EAOWI,GAAA;AAAA,UAPD,OAAM;AAAA,UACL,IAAIM,EAAW,YAAA;AAAA,UAChB,QAAO;AAAA,UACP,0BAAA;AAAA,UACA,MAAK;AAAA;UA5IvB,SAAAL,EA6IU,MACO;AAAA,YADPN,EACO,QAAA;AAAA,cADA,OAAOO,EAAE,GAAA,4CAAA;AAAA,cAAgD,eAAY;AAAA,cAAW,kBAAe;AAAA,YAAU,GAAAC,EAAAD,EAAA,GA7I1H,oCAAA,CAAA,GAAA,GAAAV,EAAA;AAAA;UAAA,GAAA;AAAA;;MAAAM,EAAA,EAAA,MAAAA,EAAA,EAAA,IAAAC,EAAA;AAAA,wBAiJMJ,EAAM,MAAA,MAAA,MAAA,EAAA;AAAA;IAjJZG,EAAA,EAAA,MAAAA,EAAA,EAAA,IAAAC,EAAA;AAAA,IAoJa,CAAAG,EAAA,cAAcA,EAAK,cAD5BuB,EAKEC,GAAA;AAAA,MAxJN,KAAA;AAAA,MAqJO,YAAUb,EAAe;AAAA,MACzB,kBAAgBA,EAAa;AAAA,MAC7B,6BAA2BA,EAAuB;AAAA,gFAvJzDJ,EAAA,IAAA,EAAA;AAAA,IAAAX,EAAA,EAAA,MAAAA,EAAA,EAAA,IAAAC,EAAA;AAAA,IAyJIH,EAAuB+B,CAAA;AAAA;;;"}
|
|
@@ -13,7 +13,7 @@ const a = `releaseDate,modificationDate,creator,landingPages,sources,
|
|
|
13
13
|
sources: { type: "links", translate: ",sources" },
|
|
14
14
|
languages: { type: "links", translate: "language,languages" },
|
|
15
15
|
publisher: { type: "object", fields: "name,email,homepage" },
|
|
16
|
-
contactPoints: { type: "objects", translate: "/message.tooltip.contactPoints,contactPoints", fields: "name::/message.datasetDetails.contactPoints.organizationName,email,telephone,address,url::'URL'" },
|
|
16
|
+
contactPoints: { type: "objects", translate: "/message.tooltip.contactPoints,contactPoints", fields: "name::/message.metadata.name,organisation_name::/message.datasetDetails.contactPoints.organizationName, email,telephone,address,url::'URL'" },
|
|
17
17
|
catalogRecord: { type: "object", translate: "/message.tooltip.catalogRecord,catalogRecord", fields: "issued:date:addedToDataEuropaEU,modified:date:updatedOnDataEuropaEU,homepage" },
|
|
18
18
|
spatial: { type: "objects", fields: "coordinates,type" },
|
|
19
19
|
spatialResource: { type: "objects", translate: ",spatialResource", fields: "resource:link" },
|
|
@@ -49,7 +49,7 @@ const a = `releaseDate,modificationDate,creator,landingPages,sources,
|
|
|
49
49
|
},
|
|
50
50
|
type: { type: "object", fields: "label,resource:link" },
|
|
51
51
|
temporalResolution: { type: "string" }
|
|
52
|
-
}),
|
|
52
|
+
}), n = () => ({
|
|
53
53
|
politicalGeocodingLevelURI: { type: "objects", fields: "label,resource:link" },
|
|
54
54
|
politicalGeocodingURI: { type: "objects", fields: "label,resource:link" },
|
|
55
55
|
availability: { type: "object", translate: "availabilityDE,availability", fields: "label,resource:link" },
|
|
@@ -65,7 +65,7 @@ const a = `releaseDate,modificationDate,creator,landingPages,sources,
|
|
|
65
65
|
});
|
|
66
66
|
export {
|
|
67
67
|
i as dcatDeFields,
|
|
68
|
-
|
|
68
|
+
n as dcatDeSchema,
|
|
69
69
|
a as dcatFields,
|
|
70
70
|
s as dcatSchema
|
|
71
71
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"specification.mjs","sources":["../../../lib/datasetDetails/properties/specification.ts"],"sourcesContent":["export const dcatFields = `releaseDate,modificationDate,creator,landingPages,sources,\n languages,publisher,contactPoints,catalogRecord,spatial,\n spatialResource,conformsTo,provenances,identifiers,otherIdentifiers,resource,\n frequency,accessRights,accrualPeriodicity,hasVersion,isVersionOf,\n temporal,versionInfo,versionNotes,attributes,dimensions,numSeries,hasQualityAnnotations,\n statUnitMeasures,isReferencedBy,qualifiedAttributions,wasGeneratedBy,\n qualifiedRelations,sample,spatialResolutionInMeters,type,temporalResolution`;\n\nexport const dcatDeFields = `politicalGeocodingLevelURI,politicalGeocodingURI,availability,\n contributorID,geocodingDescriptionDe,legalBasis,qualityProcessURI,typeDe,\n references,contributor,originator,maintainer`;\n\n/*\n Below we have schemata describing how properties should be rendered in DatasetDatailsProperties.vue. A schema is\n an object where keys correspond to the above defined fields. For each key, the value is an object the format of which\n we will now describe:\n\n - type: is the the only required property. Will be evaluated in typeCheckers.ts. It reflects the format of the\n data item (CALLED \"response\" BELOW!) retrieved by from the search network response (number, string, url, array, object, array of objects).\n Supported values are:\n * \"number\": response is a single number\n * \"first:number\": render response[0] as a number\n * \"string\": response a simple string\n * \"uri\": response a simple string, rendered as a link\n * \"date\": response a simple string, formatted as a date conforming to the current locale\n * \"translation\": response an object containing locale keys (like \"en\", \"de\"). The value corresponding to the\n current locale is rendered\n * \"object\": response an object whose where each key-value pair is rendered on a separate line\n * \"array\": response an array whose elements are rendered vertically\n * \"links\": reponse either an array of uri-strings rendered as links, or an\n array of objects with a label field that is displayed as a link and another field\n holding the href; that other field is either resource, label or id\n\n - translate: for a property \"xxx\", we have a bold label and tooltip to the left which comes from\n an i18n translation; the default i18n keys are: message.tooltip.datasetDetails.xxx for the tooltip and\n message.metadata.xxx for the displayed label. if instead of xxx, you want to use another key (with the same prefixes),\n translate can provide it. If translate is two strings separated by commas, the left one applies to the tooltip, the right\n to the label. Instead of just a replacement for xxx, you can provide i18n keys without the prefixes by starting the string with\n a slash (example: translate:\"/message.tooltip.yyy,/message.mykey.mylabelkey\"). Instead of translation keys, you can also\n provide literal values as tooltip or label by enclosing the strings in single quotes.\n\n - fields: for objects and arrays of objects, this comma-separated value indicates, what keys of the objects should\n be used for display (filtering out any additional data in the object). If not present, all existent keys will be used.\n A key given in this comma separated list can be of the form \"x\": just a key, or of the form \"x:y\": key x of type y (where\n the type is any of \"link\", \"link_blank\", \"date\" or empty; accordingly, a link (possibly target=\"_blank\") or date will be displayed).\n Also the form \"x:y:z\" is possible, where z is an indication how to translate the key for rendering. If z does not exist,\n the i18n key message.metadata.x will be translated; if z exists, we use message.metadata.z instead. The additional properties for\n \"translate\" above can also be applied to z: leading slash or single quotes.\n\n - track: enable Matomo tracking for a link. track is a string value indicating the key of the data object for which\n tracking should be enabled.\n\n - itemstyles: a string of CSS properties that applies to key-value items of a rendered object\n\n - transform: a function that maps the data to be rendered. Applies after the data has been processed in the value-method of\n DatsetDetailsProperty.vue\n\n - preTransform: same as transform, only applied to the raw data value before processing in the value-method\n\n */\n\nexport const dcatSchema = (t) => ({\n releaseDate: {type: 'date', translate: 'created'},\n modificationDate: {type: 'date', translate: 'updated'},\n landingPages: {type: 'links', translate: 'landingPage'},\n sources: {type: 'links', translate:',sources'},\n languages: {type: 'links', translate: 'language,languages'},\n publisher: {type: 'object', fields: 'name,email,homepage'},\n contactPoints: {type: 'objects', translate:\"/message.tooltip.contactPoints,contactPoints\", fields: \"name::/message.datasetDetails.contactPoints.organizationName,email,telephone,address,url::'URL'\"},\n catalogRecord: {type: 'object', translate:\"/message.tooltip.catalogRecord,catalogRecord\", fields: \"issued:date:addedToDataEuropaEU,modified:date:updatedOnDataEuropaEU,homepage\"},\n spatial: {type: 'objects', fields: \"coordinates,type\"},\n spatialResource: {type: 'objects', translate:\",spatialResource\", fields: \"resource:link\"},\n conformsTo: {type: 'objects', fields: \"title::label,label,resource:link_blank\", track:\"resource\"},\n provenances: {type: 'objects', translate: 'provenance,provenances', fields: \"label,resource:link\"},\n // relatedResources: {type: 'links', translate: 'relatedResource,relatedResources'},\n identifiers: {type: 'links', translate: 'identifier,identifiers'},\n otherIdentifiers: {type: 'objects', translate: 'otherIdentifier,otherIdentifiers', fields:\"identifier:link,resource:link:identifier,scheme:link\"},\n resource: {type: 'uri', translate: \",'uriRef'\"},\n frequency: {type: 'object', fields:\"title,resource:link\"},\n accessRights: {type: 'object', translate:\"/message.tooltip.datasetDetails.distributions.rights,accessRights\", fields:\"label::\"},\n accrualPeriodicity: {type: 'object', translate:\"frequency,accrualPeriodicity\", fields:\"label::\"},\n creator: {type: 'object', fields:\"name,email,homepage\"},\n hasVersion: {type: 'links'},\n isVersionOf: {type: 'links', translate:\"versionOf,isVersionOf\"},\n temporal: {type: 'objects', translate:\"/message.tooltip.datasetDetails.distributions.temporalResolution,temporal\", fields: \"gte:date:,lte:date:' -'\", itemstyles:\"float:left\"},\n versionInfo: {type: 'string'},\n versionNotes: {type: 'translation'},\n attributes: {type: 'links', translate:\",attributes\"},\n dimensions: {type: 'links', translate:\",dimensions\"},\n numSeries: {type: 'number'},\n hasQualityAnnotations: {type: 'links', translate: \",qualityAnnotations\"},\n statUnitMeasures: {type: 'links', translate: \"unitsOfMeasurement\"},\n isReferencedBy: {type: 'links'},\n qualifiedAttributions: {type: 'links', translate: \"qualifiedAttribution\"},\n wasGeneratedBy: {type: 'links'},\n qualifiedRelations: {type: 'objects', translate: \"qualifiedRelation\", fields: \"relation:link,had_role:link:role\"},\n sample: {type: 'links'},\n spatialResolutionInMeters: {\n type: 'first:number', translate: \"spatialResolutionInMeters,spatialResolutionInMeters.label\",\n transform: value => t('message.metadata.spatialResolutionInMeters.value', {number: value[0]})\n },\n type: {type: 'object', fields: \"label,resource:link\"},\n temporalResolution: {type: 'string'}\n});\n\nexport const dcatDeSchema = () => ({\n politicalGeocodingLevelURI: {type: 'objects', fields:\"label,resource:link\"},\n politicalGeocodingURI: {type: 'objects', fields:\"label,resource:link\"},\n availability: {type: 'object', translate:\"availabilityDE,availability\", fields:\"label,resource:link\"},\n contributorID: {type: 'objects', fields:\"label,resource:link\"},\n geocodingDescriptionDe: {type: 'translation'},\n legalBasis: {type: 'translation'},\n qualityProcessURI: {type: 'uri'},\n typeDe: {type: 'string', translate:\"type,type\"},\n references: {type: 'uri'},\n contributor: {type: 'objects', fields:\"name,type,homepage,email,resource\"},\n originator: {type: 'objects', fields:\"name,type,homepage,email,resource\"},\n maintainer: {type: 'objects', fields:\"name,type,homepage,email,resource\"}\n});\n"],"names":["dcatFields","dcatDeFields","dcatSchema","t","value","dcatDeSchema"],"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AY,EAAC,MAAM,cAAa;AAAA,EAChC,mBAAmB,EAAC,MAAM,MAAK;AAAA,EAC/B,QAAQ,EAAC,MAAM,UAAU,WAAU,YAAW;AAAA,EAC9C,YAAY,EAAC,MAAM,MAAK;AAAA,EACxB,aAAa,EAAC,MAAM,WAAW,QAAO,oCAAmC;AAAA,EACzE,YAAY,EAAC,MAAM,WAAW,QAAO,oCAAmC;AAAA,EACxE,YAAY,EAAC,MAAM,WAAW,QAAO,oCAAmC;AAC5E;"}
|
|
1
|
+
{"version":3,"file":"specification.mjs","sources":["../../../lib/datasetDetails/properties/specification.ts"],"sourcesContent":["export const dcatFields = `releaseDate,modificationDate,creator,landingPages,sources,\n languages,publisher,contactPoints,catalogRecord,spatial,\n spatialResource,conformsTo,provenances,identifiers,otherIdentifiers,resource,\n frequency,accessRights,accrualPeriodicity,hasVersion,isVersionOf,\n temporal,versionInfo,versionNotes,attributes,dimensions,numSeries,hasQualityAnnotations,\n statUnitMeasures,isReferencedBy,qualifiedAttributions,wasGeneratedBy,\n qualifiedRelations,sample,spatialResolutionInMeters,type,temporalResolution`;\n\nexport const dcatDeFields = `politicalGeocodingLevelURI,politicalGeocodingURI,availability,\n contributorID,geocodingDescriptionDe,legalBasis,qualityProcessURI,typeDe,\n references,contributor,originator,maintainer`;\n\n/*\n Below we have schemata describing how properties should be rendered in DatasetDatailsProperties.vue. A schema is\n an object where keys correspond to the above defined fields. For each key, the value is an object the format of which\n we will now describe:\n\n - type: is the the only required property. Will be evaluated in typeCheckers.ts. It reflects the format of the\n data item (CALLED \"response\" BELOW!) retrieved by from the search network response (number, string, url, array, object, array of objects).\n Supported values are:\n * \"number\": response is a single number\n * \"first:number\": render response[0] as a number\n * \"string\": response a simple string\n * \"uri\": response a simple string, rendered as a link\n * \"date\": response a simple string, formatted as a date conforming to the current locale\n * \"translation\": response an object containing locale keys (like \"en\", \"de\"). The value corresponding to the\n current locale is rendered\n * \"object\": response an object whose where each key-value pair is rendered on a separate line\n * \"array\": response an array whose elements are rendered vertically\n * \"links\": reponse either an array of uri-strings rendered as links, or an\n array of objects with a label field that is displayed as a link and another field\n holding the href; that other field is either resource, label or id\n\n - translate: for a property \"xxx\", we have a bold label and tooltip to the left which comes from\n an i18n translation; the default i18n keys are: message.tooltip.datasetDetails.xxx for the tooltip and\n message.metadata.xxx for the displayed label. if instead of xxx, you want to use another key (with the same prefixes),\n translate can provide it. If translate is two strings separated by commas, the left one applies to the tooltip, the right\n to the label. Instead of just a replacement for xxx, you can provide i18n keys without the prefixes by starting the string with\n a slash (example: translate:\"/message.tooltip.yyy,/message.mykey.mylabelkey\"). Instead of translation keys, you can also\n provide literal values as tooltip or label by enclosing the strings in single quotes.\n\n - fields: for objects and arrays of objects, this comma-separated value indicates, what keys of the objects should\n be used for display (filtering out any additional data in the object). If not present, all existent keys will be used.\n A key given in this comma separated list can be of the form \"x\": just a key, or of the form \"x:y\": key x of type y (where\n the type is any of \"link\", \"link_blank\", \"date\" or empty; accordingly, a link (possibly target=\"_blank\") or date will be displayed).\n Also the form \"x:y:z\" is possible, where z is an indication how to translate the key for rendering. If z does not exist,\n the i18n key message.metadata.x will be translated; if z exists, we use message.metadata.z instead. The additional properties for\n \"translate\" above can also be applied to z: leading slash or single quotes.\n\n - track: enable Matomo tracking for a link. track is a string value indicating the key of the data object for which\n tracking should be enabled.\n\n - itemstyles: a string of CSS properties that applies to key-value items of a rendered object\n\n - transform: a function that maps the data to be rendered. Applies after the data has been processed in the value-method of\n DatsetDetailsProperty.vue\n\n - preTransform: same as transform, only applied to the raw data value before processing in the value-method\n\n */\n\nexport const dcatSchema = (t) => ({\n releaseDate: {type: 'date', translate: 'created'},\n modificationDate: {type: 'date', translate: 'updated'},\n landingPages: {type: 'links', translate: 'landingPage'},\n sources: {type: 'links', translate:',sources'},\n languages: {type: 'links', translate: 'language,languages'},\n publisher: {type: 'object', fields: 'name,email,homepage'},\n contactPoints: {type: 'objects', translate:\"/message.tooltip.contactPoints,contactPoints\", fields: \"name::/message.metadata.name,organisation_name::/message.datasetDetails.contactPoints.organizationName, email,telephone,address,url::'URL'\"},\n catalogRecord: {type: 'object', translate:\"/message.tooltip.catalogRecord,catalogRecord\", fields: \"issued:date:addedToDataEuropaEU,modified:date:updatedOnDataEuropaEU,homepage\"},\n spatial: {type: 'objects', fields: \"coordinates,type\"},\n spatialResource: {type: 'objects', translate:\",spatialResource\", fields: \"resource:link\"},\n conformsTo: {type: 'objects', fields: \"title::label,label,resource:link_blank\", track:\"resource\"},\n provenances: {type: 'objects', translate: 'provenance,provenances', fields: \"label,resource:link\"},\n // relatedResources: {type: 'links', translate: 'relatedResource,relatedResources'},\n identifiers: {type: 'links', translate: 'identifier,identifiers'},\n otherIdentifiers: {type: 'objects', translate: 'otherIdentifier,otherIdentifiers', fields:\"identifier:link,resource:link:identifier,scheme:link\"},\n resource: {type: 'uri', translate: \",'uriRef'\"},\n frequency: {type: 'object', fields:\"title,resource:link\"},\n accessRights: {type: 'object', translate:\"/message.tooltip.datasetDetails.distributions.rights,accessRights\", fields:\"label::\"},\n accrualPeriodicity: {type: 'object', translate:\"frequency,accrualPeriodicity\", fields:\"label::\"},\n creator: {type: 'object', fields:\"name,email,homepage\"},\n hasVersion: {type: 'links'},\n isVersionOf: {type: 'links', translate:\"versionOf,isVersionOf\"},\n temporal: {type: 'objects', translate:\"/message.tooltip.datasetDetails.distributions.temporalResolution,temporal\", fields: \"gte:date:,lte:date:' -'\", itemstyles:\"float:left\"},\n versionInfo: {type: 'string'},\n versionNotes: {type: 'translation'},\n attributes: {type: 'links', translate:\",attributes\"},\n dimensions: {type: 'links', translate:\",dimensions\"},\n numSeries: {type: 'number'},\n hasQualityAnnotations: {type: 'links', translate: \",qualityAnnotations\"},\n statUnitMeasures: {type: 'links', translate: \"unitsOfMeasurement\"},\n isReferencedBy: {type: 'links'},\n qualifiedAttributions: {type: 'links', translate: \"qualifiedAttribution\"},\n wasGeneratedBy: {type: 'links'},\n qualifiedRelations: {type: 'objects', translate: \"qualifiedRelation\", fields: \"relation:link,had_role:link:role\"},\n sample: {type: 'links'},\n spatialResolutionInMeters: {\n type: 'first:number', translate: \"spatialResolutionInMeters,spatialResolutionInMeters.label\",\n transform: value => t('message.metadata.spatialResolutionInMeters.value', {number: value[0]})\n },\n type: {type: 'object', fields: \"label,resource:link\"},\n temporalResolution: {type: 'string'}\n});\n\nexport const dcatDeSchema = () => ({\n politicalGeocodingLevelURI: {type: 'objects', fields:\"label,resource:link\"},\n politicalGeocodingURI: {type: 'objects', fields:\"label,resource:link\"},\n availability: {type: 'object', translate:\"availabilityDE,availability\", fields:\"label,resource:link\"},\n contributorID: {type: 'objects', fields:\"label,resource:link\"},\n geocodingDescriptionDe: {type: 'translation'},\n legalBasis: {type: 'translation'},\n qualityProcessURI: {type: 'uri'},\n typeDe: {type: 'string', translate:\"type,type\"},\n references: {type: 'uri'},\n contributor: {type: 'objects', fields:\"name,type,homepage,email,resource\"},\n originator: {type: 'objects', fields:\"name,type,homepage,email,resource\"},\n maintainer: {type: 'objects', fields:\"name,type,homepage,email,resource\"}\n});\n"],"names":["dcatFields","dcatDeFields","dcatSchema","t","value","dcatDeSchema"],"mappings":"AAAO,MAAMA,IAAa;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kFAQbC,IAAe;AAAA;AAAA,mDAqDfC,IAAa,CAACC,OAAO;AAAA,EAC9B,aAAa,EAAC,MAAM,QAAQ,WAAW,UAAS;AAAA,EAChD,kBAAkB,EAAC,MAAM,QAAQ,WAAW,UAAS;AAAA,EACrD,cAAc,EAAC,MAAM,SAAS,WAAW,cAAa;AAAA,EACtD,SAAS,EAAC,MAAM,SAAS,WAAU,WAAU;AAAA,EAC7C,WAAW,EAAC,MAAM,SAAS,WAAW,qBAAoB;AAAA,EAC1D,WAAW,EAAC,MAAM,UAAU,QAAQ,sBAAqB;AAAA,EACzD,eAAe,EAAC,MAAM,WAAW,WAAU,gDAAgD,QAAQ,6IAA4I;AAAA,EAC/O,eAAe,EAAC,MAAM,UAAU,W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