Browse Source

#2091 index œuvres

bach 10 months ago
parent
commit
7192d2f12d
5 changed files with 49 additions and 16 deletions
  1. 8 1
      assets/css/app.scss
  2. 1 1
      src/pages/Bibliographie.vue
  3. 11 0
      src/pages/Locorum.vue
  4. 11 1
      src/pages/Nominum.vue
  5. 18 13
      src/pages/Operum.vue

+ 8 - 1
assets/css/app.scss

@@ -618,6 +618,13 @@ section[role="main-content"]{
         color: $bleuroi;
       }
     }
+    >nav{
+      aside.links{
+        position: absolute;
+        bottom: 0;
+      }
+    }
+
   }
 
   #edition{
@@ -1268,7 +1275,7 @@ section[role="main-content"]{
       }
     }
     >nav{
-      aside.expression-links{
+      aside.links{
         position: absolute;
         bottom: 0;
       }

+ 1 - 1
src/pages/Bibliographie.vue

@@ -145,7 +145,7 @@
       </ul>
     </template>
     <template v-else #nav>
-      <aside class="expression-links">
+      <aside class="links">
         <p>
           Permalien:<br><a :href="`${item.url}`">{{ item.url }}</a>
         </p>

+ 11 - 0
src/pages/Locorum.vue

@@ -31,6 +31,17 @@
     <!-- default slot -->
     <IndexItemOcurrences v-if="content" :content="content" />
 
+    <template #nav>
+      <aside class="links">
+        <p>
+          Permalien:<br><a :href="`${content.url}`">{{ content.url }}</a>
+        </p>
+        <p>
+          JSON:<br><a :href="`${apipath}${content.path}${content.uuid}`">{{ apipath }}{{ content.path }}{{ content.uuid }}</a>
+        </p>
+      </aside>
+    </template>
+
   </MainContentLayout>
 </template>
 

+ 11 - 1
src/pages/Nominum.vue

@@ -38,7 +38,17 @@
     <!-- default slot -->
     <IndexItemOcurrences v-if="content" :content="content" />
 
-    <template v-if="content" v-slot:nav />
+    <template #nav>
+      <aside class="links">
+        <p>
+          Permalien:<br><a :href="`${content.url}`">{{ content.url }}</a>
+        </p>
+        <p>
+          JSON:<br><a :href="`${apipath}${content.path}${content.uuid}`">{{ apipath }}{{ content.path }}{{ content.uuid }}</a>
+        </p>
+      </aside>
+    </template>
+
   </MainContentLayout>
 </template>
 

+ 18 - 13
src/pages/Operum.vue

@@ -6,22 +6,16 @@
 
     <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>
+      <h2 v-html="content.rubrique" />
+      <p><em>{{ content.type }}</em></p>
+      <p v-if="content.location"><span class="label">Adresse :</span> {{ content.location }}</p>
+      <p v-if="content.description">{{ content.description }}</p>
 
-          </li>
-        </ul>
-      </section>
-      <section class="notes">
+      <section v-if="content.notes && content.notes.length" class="notes">
+        <h3>Notes</h3>
         <div v-for="(note, i) in content.note" :key="i" class="note" v-html="note" />
       </section>
-      <section v-if="content.autorities.length" class="autorities">
+      <section v-if="content.autorities && content.autorities.length" class="autorities">
         <h3>Autorities</h3>
         <ul>
           <li v-for="(aut, i) in content.autorities" :key="i">
@@ -32,11 +26,22 @@
           </li>
         </ul>
       </section>
+
     </template>
 
     <!-- default slot -->
     <IndexItemOcurrences v-if="content" :content="content" />
 
+    <template #nav>
+      <aside class="links">
+        <p>
+          Permalien:<br><a :href="`${content.url}`">{{ content.url }}</a>
+        </p>
+        <p>
+          JSON:<br><a :href="`${apipath}${content.path}${content.uuid}`">{{ apipath }}{{ content.path }}{{ content.uuid }}</a>
+        </p>
+      </aside>
+    </template>
   </MainContentLayout>
 </template>