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:
parent
0c763b7dc4
commit
fcfc5e768b
1 changed files with 29 additions and 0 deletions
|
@ -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,
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue