1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859 |
- <template>
- <section class="occurences">
- <ul>
- <li
- v-for="ed in content.occurences"
- :key="ed.item"
- >
- <h3>
- <a
- :href="'/edition/'+ed.item"
- :uuid="ed.item"
- @click.prevent="onclick"
- @keyup.enter="onclick"
- v-html="ed.biblio"
- />
- </h3>
- <ul>
- <li
- v-for="oc in ocAsArray(ed.occurences)"
- :key="oc.id"
- >
- <!-- <li
- v-for="oc in ed.occurences"
- :key="oc.uuid"
- > -->
- <occurence :ed="ed" :oc="oc" />
- </li>
- </ul>
- </li>
- </ul>
- </section>
- </template>
- <script>
- import Occurence from './Occurence'
- export default {
- name: 'IndexItemOcurrences',
- components: {
- Occurence
- },
- props: {
- content: Object
- },
- data: () => ({
- }),
- methods: {
- ocAsArray (oc) {
- // not necesseary anymore (KB #758)
- console.log('Array.isArray(oc)', Array.isArray(oc))
- return Array.isArray(oc) ? oc : [oc]
- }
- }
- }
- </script>
- <style lang="scss" scoped>
- </style>
|