Bug 32030: vue - display packages for title

Signed-off-by: Jonathan Field <jonathan.field@ptfs-europe.com>

Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
This commit is contained in:
Jonathan Druart 2022-05-25 16:50:41 +02:00 committed by Tomas Cohen Arazi
parent 0c763b7dc4
commit fcfc5e768b
Signed by: tomascohen
GPG key ID: 0A272EA1B2F3C15F

View file

@ -231,6 +231,34 @@
{{ eholding.access_type }}
</span>
</li>
<li v-if="eholding.eholding_packages.length">
<label>{{ $t("Packages") }}</label>
<table>
<thead>
<tr>
<th>Name</th>
</tr>
</thead>
<tbody>
<tr
v-for="(
p, counter
) in eholding.eholding_packages"
v-bind:key="counter"
>
<td>
<router-link
:to="`/cgi-bin/koha/erm/packages/${p.package_id}`"
:title="$t('Show package')"
>
{{ p.package.name }}
</router-link>
</td>
</tr>
</tbody>
</table>
</li>
</ol>
</fieldset>
<fieldset class="action">
@ -288,6 +316,7 @@ export default {
parent_publication_title_id: '',
preceeding_publication_title_id: '',
access_type: '',
eholding_packages: [],
},
initialized: false,
}