index items infos displayed #798

This commit is contained in:
2020-07-30 11:09:07 +02:00
parent c202beb419
commit 2b246ae2e5
6 changed files with 140 additions and 24 deletions
@@ -11,9 +11,8 @@
:uuid="ed.item"
@click.prevent="onclick"
@keyup.enter="onclick"
>
{{ ed.item }}
</a>
v-html="ed.biblio"
/>
</h3>
<ul>
<li
+18 -3
View File
@@ -6,9 +6,24 @@
<template v-if="content" v-slot:header>
<h1 v-html="content.title" />
<p>
{{ content.type }}
</p>
<p>{{ content.country }}</p>
<p>{{ content.ville }}</p>
<p>{{ content.type }}</p>
<section class="notes">
<div v-for="(note, i) in content.note" :key="i" class="note" v-html="note" />
</section>
<section v-if="content.autorities.length" class="autorities">
<h3>Autorities</h3>
<ul>
<li v-for="(aut, i) in content.autorities" :key="i">
<a :href="aut.identifier" target="_blanck">
{{ aut.autority }}
<span class="mdi mdi-open-in-new" />
</a>
</li>
</ul>
</section>
</template>
<!-- default slot -->
+28 -4
View File
@@ -10,16 +10,40 @@
{{ content.birthDate }}, {{ content.birthPlace }}<br>
{{ content.deathDate }}, {{ content.deathPlace }}
</p>
<!-- <ul v-if="content.attestedForms.lenght" class="attestedForms">
<li v-for="(item, index) in content.attestedForms" :key="index">
<p v-if="content.occupation">{{ content.occupation }}</p>
</li>
</ul> -->
<section class="notes">
<div v-for="(note, i) in content.note" :key="i" class="note" v-html="note" />
</section>
<section v-if="content.autorities.length" class="autorities">
<h3>Autorities</h3>
<ul>
<li v-for="(aut, i) in content.autorities" :key="i">
<a :href="aut.identifier" target="_blanck">{{ aut.autority }}</a>
</li>
</ul>
</section>
</template>
<!-- default slot -->
<IndexItemOcurrences v-if="content" :content="content" />
<template v-slot:nav>
<section v-if="content.attestedForms" class="attested-forms">
<h3>Attested forms</h3>
<ul>
<li v-for="(af, i) in content.attestedForms" :key="i">
<h4>{{ af.title }}</h4>
<ul>
<li v-for="(uuid, j) in af.uuid" :key="j">
<a href="#">{{ uuid }}</a>
</li>
</ul>
</li>
</ul>
</section>
</template>
</MainContentLayout>
</template>
+26
View File
@@ -6,6 +6,32 @@
<template v-if="content" v-slot:header>
<h1 v-html="content.title" />
<section v-if="content.author.length" class="authors">
<ul>
<li v-for="author in content.author" :key="author.uuid">
<router-link
:to="{ name:'nominum', params: { id: author.uuid }}"
>
{{ author.name }}
</router-link>
</li>
</ul>
</section>
<section class="notes">
<div v-for="(note, i) in content.note" :key="i" class="note" v-html="note" />
</section>
<section v-if="content.autorities.length" class="autorities">
<h3>Autorities</h3>
<ul>
<li v-for="(aut, i) in content.autorities" :key="i">
<a :href="aut.identifier" target="_blanck">
{{ aut.autority }}
<span class="mdi mdi-open-in-new" />
</a>
</li>
</ul>
</section>
</template>
<!-- default slot -->