2 <div v-if="!initialized">{{ $t("Loading") }}</div>
3 <div v-else id="eholdings_title_show">
5 {{ $t("Title .id", { id: title.title_id }) }}
6 <span class="action_links">
8 :to="`/cgi-bin/koha/erm/eholdings/titles/edit/${title.title_id}`"
10 ><i class="fa fa-pencil"></i
14 :to="`/cgi-bin/koha/erm/eholdings/titles/delete/${title.title_id}`"
16 ><i class="fa fa-trash"></i
21 <fieldset class="rows">
23 <li v-if="title.title_id">
25 >{{ $t("Title identifier") }}:</label
32 <label>{{ $t("Publication title") }}:</label>
34 {{ title.publication_title }}
37 <li v-if="title.external_id">
38 <label>{{ $t("External ID") }}:</label>
40 {{ title.external_id }}
44 <label>{{ $t("Vendor") }}:</label>
45 <span v-if="title.vendor_id">
47 vendors.find((e) => e.id == title.vendor_id)
53 <label>{{ $t("Print-format identifier") }}:</label>
55 {{ title.print_identifier }}
59 <label>{{ $t("Online-format identifier") }}:</label>
61 {{ title.online_identifier }}
68 "Date of first serial issue available online"
73 {{ title.date_first_issue_online }}
79 $t("Number of first volume available online")
83 {{ title.num_first_vol_online }}
89 $t("Number of first issue available online")
93 {{ title.num_first_issue_online }}
99 $t("Date of last issue available online")
103 {{ title.date_last_issue_online }}
109 $t("Number of last volume available online")
113 {{ title.num_last_vol_online }}
119 $t("Number of last issue available online")
123 {{ title.num_last_issue_online }}
127 <label>{{ $t("Title-level URL") }}:</label>
129 {{ title.title_url }}
133 <label>{{ $t("First author") }}:</label>
135 {{ title.first_author }}
139 <label>{{ $t("Embargo information") }}:</label>
141 {{ title.embargo_info }}
145 <label>{{ $t("Coverage depth") }}:</label>
147 {{ title.coverage_depth }}
151 <label>{{ $t("Notes") }}:</label>
157 <label>{{ $t("Publisher name") }}:</label>
159 {{ title.publisher_name }}
163 <label>{{ $t("Publication type") }}:</label>
165 {{ title.publication_type }}
172 "Date the monograph is first published in print"
177 {{ title.date_monograph_published_print }}
184 "Date the monograph is first published online"
189 {{ title.date_monograph_published_online }}
194 >{{ $t("Number of volume for monograph") }}:</label
197 {{ title.monograph_volume }}
201 <label>{{ $t("Edition of the monograph") }}:</label>
203 {{ title.monograph_edition }}
207 <label>{{ $t("First editor") }}:</label>
209 {{ title.first_editor }}
216 "Title identifier of the parent publication"
221 {{ title.parent_publication_title_id }}
228 "Title identifier of any preceding publication title"
233 {{ title.preceeding_publication_title_id }}
237 <label>{{ $t("Acces type") }}:</label>
239 {{ title.access_type }}
243 <li v-if="title.resources.length">
244 <label>{{ $t("Packages") }}</label>
255 ) in title.resources"
260 :to="`/cgi-bin/koha/erm/eholdings/resources/${r.resource_id}`"
261 :title="$t('Show resource')"
272 <fieldset class="action">
274 to="/cgi-bin/koha/erm/eholdings/titles"
277 >{{ $t("Close") }}</router-link
285 import { fetchTitle } from "../../fetch"
286 import { useVendorStore } from "../../stores/vendors"
287 import { storeToRefs } from "pinia"
290 const vendorStore = useVendorStore()
291 const { vendors } = storeToRefs(vendorStore)
302 publication_title: '',
304 print_identifier: '',
305 online_identifier: '',
306 date_first_issue_online: '',
307 num_first_vol_online: '',
308 num_first_issue_online: '',
309 date_last_issue_online: '',
310 num_last_vol_online: '',
311 num_last_issue_online: '',
318 publication_type: '',
319 date_monograph_published_print: '',
320 date_monograph_published_online: '',
321 monograph_volume: '',
322 monograph_edition: '',
324 parent_publication_title_id: '',
325 preceeding_publication_title_id: '',
333 beforeRouteEnter(to, from, next) {
335 vm.getTitle(to.params.title_id)
338 beforeRouteUpdate(to, from) {
339 this.title = this.getTitle(to.params.title_id)
342 async getTitle(title_id) {
343 const title= await fetchTitle(title_id)
345 this.initialized = true
348 name: "EHoldingsTitlesShow",
356 fieldset.rows label {