2 <div v-if="!initialized">{{ $t("Loading") }}</div>
3 <div v-else id="eholdings_show">
5 {{ $t("EHolding.id", { id: eholding.eholding_id }) }}
6 <span class="action_links">
8 :to="`/cgi-bin/koha/erm/eholdings/edit/${eholding.eholding_id}`"
10 ><i class="fa fa-pencil"></i
14 :to="`/cgi-bin/koha/erm/eholdings/delete/${eholding.eholding_id}`"
16 ><i class="fa fa-trash"></i
21 <fieldset class="rows">
24 <label>{{ $t("Publication title") }}:</label>
26 {{ eholding.publication_title }}
30 <label>{{ $t("Vendor") }}:</label>
31 <span v-if="eholding.vendor_id">
33 vendors.find((e) => e.id == eholding.vendor_id)
39 <label>{{ $t("Print-format identifier") }}:</label>
41 {{ eholding.print_identifier }}
45 <label>{{ $t("Online-format identifier") }}:</label>
47 {{ eholding.online_identifier }}
54 "Date of first serial issue available online"
59 {{ eholding.date_first_issue_online }}
65 $t("Number of first volume available online")
69 {{ eholding.num_first_vol_online }}
75 $t("Number of first issue available online")
79 {{ eholding.num_first_issue_online }}
85 $t("Date of last issue available online")
89 {{ eholding.date_last_issue_online }}
95 $t("Number of last volume available online")
99 {{ eholding.num_last_vol_online }}
105 $t("Number of last issue available online")
109 {{ eholding.num_last_issue_online }}
113 <label>{{ $t("Title-level URL") }}:</label>
115 {{ eholding.title_url }}
119 <label>{{ $t("First author") }}:</label>
121 {{ eholding.first_author }}
125 <label>{{ $t("Title identifier") }}:</label>
127 {{ eholding.title_id }}
131 <label>{{ $t("Embargo information") }}:</label>
133 {{ eholding.embargo_info }}
137 <label>{{ $t("Coverage depth") }}:</label>
139 {{ eholding.coverage_depth }}
143 <label>{{ $t("Notes") }}:</label>
149 <label>{{ $t("Publisher name") }}:</label>
151 {{ eholding.publisher_name }}
155 <label>{{ $t("Publication type") }}:</label>
157 {{ eholding.publication_type }}
164 "Date the monograph is first published in print"
169 {{ eholding.date_monograph_published_print }}
176 "Date the monograph is first published online"
181 {{ eholding.date_monograph_published_online }}
186 >{{ $t("Number of volume for monograph") }}:</label
189 {{ eholding.monograph_volume }}
193 <label>{{ $t("Edition of the monograph") }}:</label>
195 {{ eholding.monograph_edition }}
199 <label>{{ $t("First editor") }}:</label>
201 {{ eholding.first_editor }}
208 "Title identifier of the parent publication"
213 {{ eholding.parent_publication_title_id }}
220 "Title identifier of any preceding publication title"
225 {{ eholding.preceeding_publication_title_id }}
229 <label>{{ $t("Acces type") }}:</label>
231 {{ eholding.access_type }}
235 <li v-if="eholding.eholding_packages.length">
236 <label>{{ $t("Packages") }}</label>
247 ) in eholding.eholding_packages"
252 :to="`/cgi-bin/koha/erm/packages/${p.package_id}`"
253 :title="$t('Show package')"
264 <fieldset class="action">
266 to="/cgi-bin/koha/erm/eholdings"
269 >{{ $t("Close") }}</router-link
277 import { fetchEHolding } from "../../fetch"
278 import { useVendorStore } from "../../stores/vendors"
279 import { storeToRefs } from "pinia"
282 const vendorStore = useVendorStore()
283 const { vendors } = storeToRefs(vendorStore)
294 publication_title: '',
295 print_identifier: '',
296 online_identifier: '',
297 date_first_issue_online: '',
298 num_first_vol_online: '',
299 num_first_issue_online: '',
300 date_last_issue_online: '',
301 num_last_vol_online: '',
302 num_last_issue_online: '',
310 publication_type: '',
311 date_monograph_published_print: '',
312 date_monograph_published_online: '',
313 monograph_volume: '',
314 monograph_edition: '',
316 parent_publication_title_id: '',
317 preceeding_publication_title_id: '',
319 eholding_packages: [],
325 beforeRouteEnter(to, from, next) {
327 vm.getEHolding(to.params.eholding_id)
328 vm.initialized = true
331 beforeRouteUpdate(to, from) {
332 this.eholding = this.getEHolding(to.params.eholding_id)
335 async getEHolding(eholding_id) {
336 const eholding = await fetchEHolding(eholding_id)
337 this.eholding = eholding
340 name: "EHoldingsShow",
348 fieldset.rows label {