Commit 375aa9c7 authored by schneider210's avatar schneider210
Browse files

fix: license for the text part; remove comment from the metadata and rename...

fix: license for the text part; remove comment from the metadata and rename TiDO to TIDO according to review
parent d7c05eed
Pipeline #175517 passed with stages
in 2 minutes and 25 seconds
......@@ -44,7 +44,7 @@ import Header from '@/components/header.vue';
import Panels from '@/mixins/panels';
export default {
name: 'TiDO',
name: 'TIDO',
components: {
Header,
Footer,
......
......@@ -59,9 +59,6 @@
</q-item-section>
</q-item>
<!-- this part renders the metadata object provided by the manifest object according to the generic API specs given:
pls refer to https://subugoe.pages.gwdg.de/emo/text-api/page/specs/#manifest-object
-->
<div v-if="manifests[sequenceindex].metadata">
<q-item
v-for="(meta, idx) in manifests[sequenceindex].metadata"
......@@ -79,9 +76,6 @@
</q-item-section>
</q-item>
</div>
<!--
End of metadata object
-->
</q-list>
<q-separator
......@@ -197,9 +191,14 @@ export default {
metadata.push(
{ id: 'Label', data: this.manifests[this.sequenceindex].label },
{ id: 'License', data: this.manifests[this.sequenceindex].license },
);
if (Array.isArray(this.manifests[this.sequenceindex].license)) {
metadata.push(
{ id: 'License', data: this.manifests[this.sequenceindex].license[0].id },
);
}
return metadata;
},
},
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment