2 <div v-if="!initialized">{{ $__("Loading") }}</div>
3 <div v-else-if="title" id="eholdings_title_show">
5 {{ $__("Title #%s").format(title.title_id) }}
6 <span class="action_links">
9 name: 'EHoldingsLocalTitlesFormAddEdit',
10 params: { title_id: title.title_id },
13 ><i class="fa fa-pencil"></i
18 delete_title(title.title_id, title.publication_title)
20 ><i class="fa fa-trash"></i
25 <fieldset class="rows">
27 <li v-if="title.title_id">
28 <label>{{ $__("Title identifier") }}:</label>
34 <label>{{ $__("Publication title") }}:</label>
36 {{ title.publication_title }}
38 v-if="title.biblio_id"
39 :href="`/cgi-bin/koha/catalogue/detail.pl?biblionumber=${title.biblio_id}`"
41 {{ $__("Local bibliographic record") }}
45 <li v-if="title.print_identifier">
46 <label>{{ $__("Print-format identifier") }}:</label>
48 {{ title.print_identifier }}
51 <li v-if="title.online_identifier">
52 <label>{{ $__("Online-format identifier") }}:</label>
54 {{ title.online_identifier }}
57 <li v-if="title.date_first_issue_online">
61 "Date of first serial issue available online"
66 {{ title.date_first_issue_online }}
69 <li v-if="title.num_first_vol_online">
72 $__("Number of first volume available online")
76 {{ title.num_first_vol_online }}
79 <li v-if="title.num_first_issue_online">
82 $__("Number of first issue available online")
86 {{ title.num_first_issue_online }}
89 <li v-if="title.date_last_issue_online">
92 $__("Date of last issue available online")
96 {{ title.date_last_issue_online }}
99 <li v-if="title.num_last_vol_online">
102 $__("Number of last volume available online")
106 {{ title.num_last_vol_online }}
109 <li v-if="title.num_last_issue_online">
112 $__("Number of last issue available online")
116 {{ title.num_last_issue_online }}
119 <li v-if="title.title_url">
120 <label>{{ $__("Title-level URL") }}:</label>
122 {{ title.title_url }}
125 <li v-if="title.first_author">
126 <label>{{ $__("First author") }}:</label>
128 {{ title.first_author }}
131 <li v-if="title.embargo_info">
132 <label>{{ $__("Embargo information") }}:</label>
134 {{ title.embargo_info }}
137 <li v-if="title.coverage_depth">
138 <label>{{ $__("Coverage depth") }}:</label>
140 {{ title.coverage_depth }}
143 <li v-if="title.notes">
144 <label>{{ $__("Notes") }}:</label>
149 <li v-if="title.publisher_name">
150 <label>{{ $__("Publisher name") }}:</label>
152 {{ title.publisher_name }}
155 <li v-if="title.publication_type">
156 <label>{{ $__("Publication type") }}:</label>
160 "av_title_publication_types",
161 title.publication_type
166 <li v-if="title.date_monograph_published_print">
170 "Date the monograph is first published in print"
175 {{ title.date_monograph_published_print }}
178 <li v-if="title.date_monograph_published_online">
182 "Date the monograph is first published online"
187 {{ title.date_monograph_published_online }}
190 <li v-if="title.monograph_volume">
192 >{{ $__("Number of volume for monograph") }}:</label
195 {{ title.monograph_volume }}
198 <li v-if="title.monograph_edition">
199 <label>{{ $__("Edition of the monograph") }}:</label>
201 {{ title.monograph_edition }}
204 <li v-if="title.first_editor">
205 <label>{{ $__("First editor") }}:</label>
207 {{ title.first_editor }}
210 <li v-if="title.parent_publication_title_id">
214 "Title identifier of the parent publication"
219 {{ title.parent_publication_title_id }}
222 <li v-if="title.preceding_publication_title_id">
226 "Title identifier of any preceding publication title"
231 {{ title.preceding_publication_title_id }}
234 <li v-if="title.access_type">
235 <label>{{ $__("Access type") }}:</label>
237 {{ title.access_type }}
241 <label>Packages ({{ title.resources.length }})</label>
242 <div v-if="title.resources.length">
243 <EHoldingsTitlePackagesList
244 :resources="title.resources"
250 <fieldset class="action">
252 :to="{ name: 'EHoldingsLocalTitlesList' }"
255 >{{ $__("Close") }}</router-link
263 import { inject } from "vue"
264 import EHoldingsTitlePackagesList from "./EHoldingsLocalTitlePackagesList.vue"
265 import { APIClient } from "../../fetch/api-client.js"
269 const AVStore = inject("AVStore")
270 const { get_lib_from_av } = AVStore
271 const { setConfirmationDialog, setMessage } = inject("mainStore")
275 setConfirmationDialog,
283 publication_title: "",
285 print_identifier: "",
286 online_identifier: "",
287 date_first_issue_online: "",
288 num_first_vol_online: "",
289 num_first_issue_online: "",
290 date_last_issue_online: "",
291 num_last_vol_online: "",
292 num_last_issue_online: "",
299 publication_type: "",
300 date_monograph_published_print: "",
301 date_monograph_published_online: "",
302 monograph_volume: "",
303 monograph_edition: "",
305 parent_publication_title_id: "",
306 preceding_publication_title_id: "",
313 beforeRouteEnter(to, from, next) {
315 vm.getTitle(to.params.title_id)
318 beforeRouteUpdate(to, from) {
319 this.title = this.getTitle(to.params.title_id)
323 const client = APIClient.erm
324 client.localTitles.get(title_id).then(
327 this.initialized = true
332 delete_title: function (title_id, title_publication_title) {
333 this.setConfirmationDialog(
336 "Are you sure you want to remove this title?"
338 message: title_publication_title,
339 accept_label: this.$__("Yes, delete"),
340 cancel_label: this.$__("No, do not delete"),
343 const client = APIClient.erm
344 client.localTitles.delete(title_id).then(
347 this.$__("Local title %s deleted").format(
348 title_publication_title
353 name: "EHoldingsLocalTitlesList",
363 EHoldingsTitlePackagesList,
365 name: "EHoldingsLocalTitlesShow",
374 fieldset.rows label {