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">
8 :to="`/cgi-bin/koha/erm/eholdings/local/titles/edit/${title.title_id}`"
10 ><i class="fa fa-pencil"></i
14 :to="`/cgi-bin/koha/erm/eholdings/local/titles/delete/${title.title_id}`"
15 :title="$__('Delete')"
16 ><i class="fa fa-trash"></i
21 <fieldset class="rows">
23 <li v-if="title.title_id">
24 <label>{{ $__("Title identifier") }}:</label>
30 <label>{{ $__("Publication title") }}:</label>
32 {{ title.publication_title }}
34 v-if="title.biblio_id"
35 :href="`/cgi-bin/koha/catalogue/detail.pl?biblionumber=${title.biblio_id}`"
37 {{ $__("Local bibliographic record") }}
41 <li v-if="title.print_identifier">
42 <label>{{ $__("Print-format identifier") }}:</label>
44 {{ title.print_identifier }}
47 <li v-if="title.online_identifier">
48 <label>{{ $__("Online-format identifier") }}:</label>
50 {{ title.online_identifier }}
53 <li v-if="title.date_first_issue_online">
57 "Date of first serial issue available online"
62 {{ title.date_first_issue_online }}
65 <li v-if="title.num_first_vol_online">
68 $__("Number of first volume available online")
72 {{ title.num_first_vol_online }}
75 <li v-if="title.num_first_issue_online">
78 $__("Number of first issue available online")
82 {{ title.num_first_issue_online }}
85 <li v-if="title.date_last_issue_online">
88 $__("Date of last issue available online")
92 {{ title.date_last_issue_online }}
95 <li v-if="title.num_last_vol_online">
98 $__("Number of last volume available online")
102 {{ title.num_last_vol_online }}
105 <li v-if="title.num_last_issue_online">
108 $__("Number of last issue available online")
112 {{ title.num_last_issue_online }}
115 <li v-if="title.title_url">
116 <label>{{ $__("Title-level URL") }}:</label>
118 {{ title.title_url }}
121 <li v-if="title.first_author">
122 <label>{{ $__("First author") }}:</label>
124 {{ title.first_author }}
127 <li v-if="title.embargo_info">
128 <label>{{ $__("Embargo information") }}:</label>
130 {{ title.embargo_info }}
133 <li v-if="title.coverage_depth">
134 <label>{{ $__("Coverage depth") }}:</label>
136 {{ title.coverage_depth }}
139 <li v-if="title.notes">
140 <label>{{ $__("Notes") }}:</label>
145 <li v-if="title.publisher_name">
146 <label>{{ $__("Publisher name") }}:</label>
148 {{ title.publisher_name }}
151 <li v-if="title.publication_type">
152 <label>{{ $__("Publication type") }}:</label>
156 "av_title_publication_types",
157 title.publication_type
162 <li v-if="title.date_monograph_published_print">
166 "Date the monograph is first published in print"
171 {{ title.date_monograph_published_print }}
174 <li v-if="title.date_monograph_published_online">
178 "Date the monograph is first published online"
183 {{ title.date_monograph_published_online }}
186 <li v-if="title.monograph_volume">
188 >{{ $__("Number of volume for monograph") }}:</label
191 {{ title.monograph_volume }}
194 <li v-if="title.monograph_edition">
195 <label>{{ $__("Edition of the monograph") }}:</label>
197 {{ title.monograph_edition }}
200 <li v-if="title.first_editor">
201 <label>{{ $__("First editor") }}:</label>
203 {{ title.first_editor }}
206 <li v-if="title.parent_publication_title_id">
210 "Title identifier of the parent publication"
215 {{ title.parent_publication_title_id }}
218 <li v-if="title.preceeding_publication_title_id">
222 "Title identifier of any preceding publication title"
227 {{ title.preceeding_publication_title_id }}
230 <li v-if="title.access_type">
231 <label>{{ $__("Access type") }}:</label>
233 {{ title.access_type }}
237 <label>Packages ({{ title.resources.length }})</label>
238 <div v-if="title.resources.length">
239 <EHoldingsTitlePackagesList
240 :resources="title.resources"
246 <fieldset class="action">
248 to="/cgi-bin/koha/erm/eholdings/local/titles"
251 >{{ $__("Close") }}</router-link
259 import { inject } from "vue"
260 import EHoldingsTitlePackagesList from "./EHoldingsLocalTitlePackagesList.vue"
261 import { fetchLocalTitle } from "../../fetch"
264 const AVStore = inject("AVStore")
265 const { get_lib_from_av } = AVStore
275 publication_title: "",
277 print_identifier: "",
278 online_identifier: "",
279 date_first_issue_online: "",
280 num_first_vol_online: "",
281 num_first_issue_online: "",
282 date_last_issue_online: "",
283 num_last_vol_online: "",
284 num_last_issue_online: "",
291 publication_type: "",
292 date_monograph_published_print: "",
293 date_monograph_published_online: "",
294 monograph_volume: "",
295 monograph_edition: "",
297 parent_publication_title_id: "",
298 preceeding_publication_title_id: "",
305 beforeRouteEnter(to, from, next) {
307 vm.getTitle(to.params.title_id)
310 beforeRouteUpdate(to, from) {
311 this.title = this.getTitle(to.params.title_id)
314 async getTitle(title_id) {
315 const title = await fetchLocalTitle(title_id)
317 this.initialized = true
321 EHoldingsTitlePackagesList,
323 name: "EHoldingsLocalTitlesShow",
331 fieldset.rows label {