From 1d055930433a56d4e2ab56ecfc5c33941d217176 Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Fri, 31 May 2024 12:44:49 +0000 Subject: [PATCH] Bug 33195: Reindent the bibliographic details page This patch reindents the bibliographic details template so that it has consistent indentation. These changes should have no visible effect on the page. To test, apply the patch and view the detail page for a bibliographic record. Test as many variations as you can: - With and without cover images enabled - With FRBRizeEditions enabled (and multiple editions in your catalog) - With LocalCoverImages enabled - With AcquisitionDetails enabled - With a serial record - With a record with component parts - With EnableItemGroups enabled - Wtih CatalogConcerns enabled - With HTML5MediaEnabled and a record with media links Viewing the diff while ignoring whitespace changes should show only places where a line break was added. Signed-off-by: Lucas Gass Signed-off-by: Martin Renvoize Signed-off-by: Katrin Fischer --- .../prog/en/modules/catalogue/detail.tt | 2494 +++++++++-------- 1 file changed, 1299 insertions(+), 1195 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt index 65e395e508..ec603d8141 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt @@ -34,6 +34,7 @@ [% t("Catalog") | html %] › [% t("Koha") | html %] [% END %] + [% Asset.css("lib/Chocolat/css/chocolat.css") | $raw %] [% INCLUDE 'doc-head-close.inc' %] @@ -51,972 +52,1078 @@ -[% WRAPPER 'header.inc' %] - [% INCLUDE 'cat-search.inc' %] -[% END %] - -[% WRAPPER 'sub-header.inc' %] - [% WRAPPER breadcrumbs %] - [% WRAPPER breadcrumb_item %] - Catalog - [% END %] + [% WRAPPER 'header.inc' %] + [% INCLUDE 'cat-search.inc' %] + [% END %] - [% IF ( unknownbiblionumber ) %] - [% WRAPPER breadcrumb_item bc_active= 1 %] - Unknown record - [% END %] - [% ELSE %] + [% WRAPPER 'sub-header.inc' %] + [% WRAPPER breadcrumbs %] [% WRAPPER breadcrumb_item %] - [% INCLUDE 'biblio-title.inc' link = 1 %] + Catalog [% END %] - [% WRAPPER breadcrumb_item bc_active= 1 %] - Details - [% END %] - [% END %] - [% END #/ WRAPPER breadcrumbs %] -[% END #/ WRAPPER sub-header.inc %] - -
-
-
-
-
- [% INCLUDE 'messages.inc' %] - -[% IF ( unknownbiblionumber ) %] -
The record you requested does not exist ([% biblionumber | html %]).
-[% ELSE %] - -[% IntranetCoce = Koha.Preference('IntranetCoce') %] -[% CoceProviders = Koha.Preference('CoceProviders') %] -[% CoceHost = Koha.Preference('CoceHost') %] -[% SyndeticsCovers = Koha.Preference('SyndeticsEnabled') && Koha.Preference('SyndeticsCoverImages') %] - -[% INCLUDE 'cat-toolbar.inc' %] - [% IF ( ocoins ) %] - - - [% END %] - [% IF ( CoverImagePlugins || AmazonCoverImages || LocalCoverImages || IntranetCoce || ( SyndeticsCovers ) || (Koha.Preference('CustomCoverImages') && Koha.Preference('CustomCoverImagesURL')) ) %] -
- [% ELSE %] -
- [% END %] - [% IF decoding_error || analytics_error %] -
-

Errors found

- [% IF decoding_error %] -

Encoding errors

-

There is at least one encoding error with this bibliographic record, the view may be degraded.

-
[% decoding_error | html %]
- [% END %] - [% IF analytics_error %] -

Analytics errors

-

There was an error searching for analytic records, please see the logs for details.

- [% END %] -
- [% END %] - -
- - [% XSLTBloc | $raw %] - - [% IF shelves.count %] - Lists that include this title: - [% FOREACH s IN shelves %] - [% s.shelfname | html %] - [% IF ( loop.last ) %][% ELSE %]|[% END %] + [% IF ( unknownbiblionumber ) %] + [% WRAPPER breadcrumb_item bc_active= 1 %] + Unknown record + [% END %] + [% ELSE %] + [% WRAPPER breadcrumb_item %] + [% INCLUDE 'biblio-title.inc' link = 1 %] + [% END %] + [% WRAPPER breadcrumb_item bc_active= 1 %] + Details + [% END %] [% END %] - - [% END %] - [% IF ( TagsEnabled && TagsShowOnDetail && TagLoop ) %] - Tags: - [% FOREACH TagLoo IN TagLoop %] - [% IF ( CAN_user_tools_moderate_tags ) %] - [% TagLoo.term | html %] + [% END #/ WRAPPER breadcrumbs %] + [% END #/ WRAPPER sub-header.inc %] + +
+
+
+
+
+
+ [% INCLUDE 'messages.inc' %] + + [% IF ( unknownbiblionumber ) %] +
The record you requested does not exist ([% biblionumber | html %]).
+
+ [% ELSE %] + [% IntranetCoce = Koha.Preference('IntranetCoce') %] + [% CoceProviders = Koha.Preference('CoceProviders') %] + [% CoceHost = Koha.Preference('CoceHost') %] + [% SyndeticsCovers = Koha.Preference('SyndeticsEnabled') && Koha.Preference('SyndeticsCoverImages') %] + + [% INCLUDE 'cat-toolbar.inc' %] + [% IF ( ocoins ) %] + + + [% END %] +
+ + [% IF ( CoverImagePlugins || AmazonCoverImages || LocalCoverImages || IntranetCoce || ( SyndeticsCovers ) || (Koha.Preference('CustomCoverImages') && Koha.Preference('CustomCoverImagesURL')) ) %] +
[% ELSE %] - [% TagLoo.term | html %] +
[% END %] - ([% TagLoo.weight_total | html %])[% IF ( loop.last ) %][% ELSE %], [% END %] - [% END %] - - [% END %] - MARC preview: Show - - MARC framework: - [% Frameworks.GetName(biblio.frameworkcode) | html %] - - [% IF !item_level_itypes || Koha.Preference("BiblioItemtypeInfo") %] - Itemtype: - [% IF ( !noItemTypeImages && imageurl ) %] - - [% END %] - [% IF ( description ) %] - [% description | html %] - [% ELSE %] - [% itemtype | html %] - [% END %] - - [% END %] - [% IF ( Koha.Preference('SearchEngine') == 'Elasticsearch' ) %] - Elasticsearch record: Show - [% END %] + [% IF decoding_error || analytics_error %] +
+

Errors found

+ [% IF decoding_error %] +

Encoding errors

+

There is at least one encoding error with this bibliographic record, the view may be degraded.

+
[% decoding_error | html %]
+ [% END %] + [% IF analytics_error %] +

Analytics errors

+

There was an error searching for analytic records, please see the logs for details.

+ [% END %] +
+ [% END %] - [% SET record_source = biblio.metadata.record_source %] - [% IF ( record_source ) %] - - Record source: - [% IF record_source.can_be_edited %] - [% record_source.name | html %] - [% ELSE %] - [% record_source.name | html %] - [% END %] - - [% END %] +
- [% IF ( holdcount ) %] - - Holds: - - [% IF CAN_user_reserveforothers_place_holds %] - [% holdcount | html %] - [% ELSE %] - [% holdcount | html %] - [% END %] - - - [% END %] + [% XSLTBloc | $raw %] - [% IF illrequests.count %] - - ILL requests: - [% IF CAN_user_ill %] - [% FOREACH ill IN illrequests %] - Request [% ill.illrequest_id | html %][% IF ! loop.last %], [% END %] - [% END %] - [% ELSE %] - [% FOREACH ill IN illrequests %] - Request [% ill.illrequest_id | html %][% IF ! loop.last %], [% END %] - [% END %] - [% END %] - - [% END %] + [% IF shelves.count %] + Lists that include this title: + [% FOREACH s IN shelves %] + [% s.shelfname | html %] + [% IF ( loop.last ) %][% ELSE %]|[% END %] + [% END %] + + [% END %] - [% IF ( article_requests_count = biblio.article_requests.filter_by_current.count ) %] - - Article requests: - - [% article_requests_count | html %] - - - [% END %] + [% IF ( TagsEnabled && TagsShowOnDetail && TagLoop ) %] + Tags: + [% FOREACH TagLoo IN TagLoop %] + [% IF ( CAN_user_tools_moderate_tags ) %] + [% TagLoo.term | html %] + [% ELSE %] + [% TagLoo.term | html %] + [% END %] + ([% TagLoo.weight_total | html %])[% IF ( loop.last ) %][% ELSE %], [% END %] + [% END %] + + [% END %] - [% IF course_reserves %] - Courses that have reserved this title: - [% FOREACH c IN course_reserves %] - [% c.course.course_name | html %] - [% IF ( loop.last ) %][% ELSE %]|[% END %] - [% END %] - - [% END %] -
[%# .page-section %] + + MARC preview: + Show + + + MARC framework: + [% Frameworks.GetName(biblio.frameworkcode) | html %] + + [% IF !item_level_itypes || Koha.Preference("BiblioItemtypeInfo") %] + + Itemtype: + [% IF ( !noItemTypeImages && imageurl ) %] + + [% END %] + [% IF ( description ) %] + [% description | html %] + [% ELSE %] + [% itemtype | html %] + [% END %] + + [% END %] - [% IF ( CoverImagePlugins || AmazonCoverImages || LocalCoverImages || IntranetCoce || ( SyndeticsCovers ) || (Koha.Preference('CustomCoverImages') && Koha.Preference('CustomCoverImagesURL')) ) %] -
-
-
- [% IF ( LocalCoverImages ) %] - [% IF localimages.count %] - [% FOREACH image IN localimages %] -
- - Local cover image - -
Local cover image
-
+ [% IF ( Koha.Preference('SearchEngine') == 'Elasticsearch' ) %] + + Elasticsearch record: + Show + [% END %] - [% END %] - [% END %] - - [% IF ( AmazonCoverImages && normalized_isbn) %] -
- - Amazon cover image - -
Image from Amazon.com
-
- [% END %] - [% IF ( IntranetCoce && CoceProviders && normalized_isbn ) %] - [% coce_id = normalized_ean || normalized_isbn %] -
- [% IF ( coce_id ) %] - - [% ELSE %] - No cover image available + [% SET record_source = biblio.metadata.record_source %] + [% IF ( record_source ) %] + + Record source: + [% IF record_source.can_be_edited %] + [% record_source.name | html %] + [% ELSE %] + [% record_source.name | html %] + [% END %] + [% END %] -
Image from Coce
-
- [% END %] - - [% IF ( SyndeticsCovers ) %] - [% IF ( content_identifier_exists ) %] -
- - - -
Image from Syndetics
-
- [% ELSE %] - No cover image available + + [% IF ( holdcount ) %] + + Holds: + + [% IF CAN_user_reserveforothers_place_holds %] + [% holdcount | html %] + [% ELSE %] + [% holdcount | html %] + [% END %] + + [% END %] - [% END %] - - [% IF Koha.Preference('CustomCoverImages') && Koha.Preference('CustomCoverImagesURL') %] - [% SET custom_cover_image_url = biblio.custom_cover_image_url %] - [% IF custom_cover_image_url %] -
- - Custom cover image - -
Custom cover image
+ + [% IF illrequests.count %] + + ILL requests: + [% IF CAN_user_ill %] + [% FOREACH ill IN illrequests %] + Request [% ill.illrequest_id | html %][% IF ! loop.last %], [% END %] + [% END %] + [% ELSE %] + [% FOREACH ill IN illrequests %] + Request [% ill.illrequest_id | html %][% IF ! loop.last %], [% END %] + [% END %] + [% END %] + + [% END %] + + [% IF ( article_requests_count = biblio.article_requests.filter_by_current.count ) %] + + Article requests: + + [% article_requests_count | html %] + + + [% END %] + + [% IF course_reserves %] + Courses that have reserved this title: + [% FOREACH c IN course_reserves %] + [% c.course.course_name | html %] + [% IF ( loop.last ) %][% ELSE %]|[% END %] + [% END %] + + [% END %] +
[%# .page-section %] + + [% IF ( CoverImagePlugins || AmazonCoverImages || LocalCoverImages || IntranetCoce || ( SyndeticsCovers ) || (Koha.Preference('CustomCoverImages') && Koha.Preference('CustomCoverImagesURL')) ) %]
- [% END %] - [% END %] -
-
- [% ELSE %] -
- [% END # /IF ( AmazonCoverImages, etc ) %] -
- -
- - - -
-[% IF Koha.Preference('EnableItemGroups') %] -
- [% IF CAN_user_editcatalogue_manage_item_groups %] - - [% END %] - - - - - - - - -
Display orderDescription 
-
-[% END %] +
+
+ [% IF ( LocalCoverImages ) %] + [% IF localimages.count %] + [% FOREACH image IN localimages %] +
+ + Local cover image + +
Local cover image
+
+ [% END %] + [% END %] + [% END %] + + [% IF ( AmazonCoverImages && normalized_isbn) %] +
+ + Amazon cover image + +
Image from Amazon.com
+
+ [% END %] + + [% IF ( IntranetCoce && CoceProviders && normalized_isbn ) %] + [% coce_id = normalized_ean || normalized_isbn %] +
+ [% IF ( coce_id ) %] + + [% ELSE %] + No cover image available + [% END %] +
Image from Coce
+
+ [% END %] + + [% IF ( SyndeticsCovers ) %] + [% IF ( content_identifier_exists ) %] +
+ + + +
Image from Syndetics
+
+ [% ELSE %] + No cover image available + [% END %] + [% END %] + + [% IF Koha.Preference('CustomCoverImages') && Koha.Preference('CustomCoverImagesURL') %] + [% SET custom_cover_image_url = biblio.custom_cover_image_url %] + [% IF custom_cover_image_url %] +
+ + Custom cover image + +
Custom cover image
+
+ [% END %] + [% END %] +
+
+ [% ELSE %] +
+ [% END # /IF ( AmazonCoverImages, etc ) %] +
+
-
+
+ [% IF suggestions.count %] +
  • + Suggestion details +
  • + [% END %] -[% IF Koha.Preference('SeparateHoldings') %] -
    - [% PROCESS items_table tab="otherholdings" %] -
    -[% END %] + [% IF ( FRBRizeEditions ) %] + [% IF ( XISBNS ) %] +
  • + Editions +
  • + [% END %] + [% END %] -[% IF ( MARCNOTES ) %] + [% IF ( ( Koha.Preference('CatalogConcerns') || Koha.Preference('OpacCatalogConcerns') ) && CAN_user_editcatalogue_edit_catalogue ) %] +
  • + Concerns ([% biblio.tickets.count | html %]) +
  • + [% END %] -
    -
    + [% IF ( LocalCoverImages ) %] +
  • + Images ([% localimages.count || 0 | html %]) +
  • + [% END %] - [% FOREACH MARCNOTE IN MARCNOTES %] -

    - [% IF MARCNOTE.marcnote.match('^https?://\S+$') %] - [% MARCNOTE.marcnote | html %] - [% ELSE %] - [% MARCNOTE.marcnote | html | html_line_break %] - [% END %] -

    -[% END %] -
    -
    + [% IF HTML5MediaEnabled && HTML5MediaSets.size %] + + [% END %] -[% END %] + [% IF ( Koha.Preference('NovelistSelectStaffEnabled') && Koha.Preference('NovelistSelectStaffProfile') && Koha.Preference('NovelistSelectStaffView') == 'tab' ) %] + + [% END %] -[% IF ComponentParts && ComponentParts.size %] -
    -
    - - [% FOR PART IN ComponentParts %] - - - - [% END %] -
    - [% PART | $raw %] -
    - [% IF ComponentParts.size == Koha.Preference('MaxComponentRecords')%] -

    Only [% ComponentParts.size | html %] results are shown: show all component parts

    - [% END %] -
    -
    + [% FOREACH plugins_intranet_catalog_biblio_tab IN plugins_intranet_catalog_biblio_tabs %] +
  • + [% plugins_intranet_catalog_biblio_tab.title | html %] +
  • + [% END %] + + +
    + [% IF Koha.Preference('EnableItemGroups') %] +
    + [% IF CAN_user_editcatalogue_manage_item_groups %] + + [% END %] + + + + + + + + +
    Display orderDescription 
    +
    + [% END %] -[% END %] +
    + [% IF ( Koha.Preference('NovelistSelectStaffEnabled') && Koha.Preference('NovelistSelectStaffProfile') && Koha.Preference('NovelistSelectStaffView') == 'above' ) %] + + [% END %] -[% IF ( subscriptionsnumber ) %] -
    -
    -

    This is a serial subscription

    -

    (There are [% subscriptionsnumber | html %] subscriptions associated with this title).

    - [% FOREACH subscription IN subscriptions %] - [% IF subscription.branchcode %] -

    At library: [% Branches.GetName(subscription.branchcode) || subscription.branchcode | html %]

    - [% END %] - [% IF ( subscription.closed ) %]

    This subscription is closed.

    [% END %] - [% IF ( subscription.location ) %]

    Location: [% AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.location', authorised_value => subscription.location ) | html %]

    [% END %] - [% IF ( subscription.callnumber ) %]

    Callnumber: [% subscription.callnumber | html %]

    [% END %] - [% IF ( subscription.subscriptionnotes ) %]

    [% subscription.subscriptionnotes | html | html_line_break %]

    [% END %] - [% IF ( subscription.missinglist ) %]

    Missing issues: [% subscription.missinglist | html %]

    [% END %] - [% IF ( subscription.librariannote ) %]

    ([% subscription.librariannote | html %])

    [% END %] - [% IF ( subscription.latestserials ) %] -

    The [% subscription.staffdisplaycount | html %] latest issues related to this subscription:

    - - - - - - - - - - [% FOREACH latestserial IN subscription.latestserials %] - - - - - - - - - [% END %] -
    Issue #Date arrivedDate publishedDate published (text)StatusNote
    [% latestserial.serialseq | html %][% latestserial.planneddate | $KohaDates %][% latestserial.publisheddate | $KohaDates %][% latestserial.publisheddatetext | html %] - [% INCLUDE 'serial-status.inc' serial = latestserial %] - [% latestserial.notes | html %]
    - [% END %] - [% IF ( CAN_user_serials ) %] -

    - Subscription details -

    - [% END %] - [% END %] -
    -
    -[% END %] + [% SET hidden_count = all_items_count - items_to_display_count %] + [% IF all_items_count %] + [% PROCESS items_table tab="holdings" %] + + [% IF hidden_count %] + [%# FIXME We could deal with that in JS and prevent a full refresh %] +

    Show all items ([% hidden_count | html %] hidden)

    + [% END %] + [% ELSE %] + [% IF ( ALTERNATEHOLDINGS ) %] + [% FOREACH ALTERNATEHOLDING IN ALTERNATEHOLDINGS %] +
    Holdings: [% ALTERNATEHOLDING.holding | html %]
    + [% END %] + [% ELSE %] +
    No physical items for this record
    + [% END %] + [% END %] -[% IF Koha.Preference('AcquisitionDetails') %] -
    -

    This bibliographic record has acquisition status: [% PROCESS acq_status myvar=acq_status %] -

    - [% IF orders.count %] - - - - - - - - - - - - - - - - - - - - [% FOR order IN orders %] - [% SET basket = order.basket %] - [% SET vendor = basket.bookseller %] - - - - - - - - - - - - - - - [% END %] - -
    VendorInvoiceBasket groupBasketOrder numberCreation dateReceive dateStatusQuantityPriceInternal noteSubscriptionSubscription call number
    - [% vendor.name | html %] - - [% IF order.invoiceid %] - [% IF CAN_user_acquisition %] - - [% ELSE %] -
    [% order.invoice.invoicenumber | html %]
    - [% END %] + [% IF ( Koha.Preference('NovelistSelectStaffEnabled') && Koha.Preference('NovelistSelectStaffProfile') && Koha.Preference('NovelistSelectStaffView') == 'below' ) %] + + [% END %] + - [% IF ( Koha.Preference('EDIFACT') && CAN_user_acquisition_edi_manage && order.invoice.message_id ) %] - - [% END %] - [% END %] -
    - [% IF basket.basketgroupid %] - [% SET basket_group = basket.basket_group %] - [% IF CAN_user_acquisition_group_manage %] - [% basket_group.name | html%] ([% basket_group.id | html %]) - [% ELSE %] - [% basket_group.name | html %] ([% basket_group.id | html %]) - [% END %] - [% END %] - [% IF CAN_user_acquisition_order_manage %] - [% basket.basketname | html %] ([% basket.basketno | html %]) - [% ELSE %] - [% basket.basketname | html %] ([% basket.basketno | html %]) - [% END %][% order.ordernumber | html %][% basket.creationdate | $KohaDates%][% order.datereceived | $KohaDates%] - [% SWITCH order.orderstatus %] - [% CASE 'new' %]New - [% CASE 'ordered' %]Ordered - [% CASE 'partial' %]Partial - [% CASE 'complete' %]Complete - [% CASE 'cancelled' %]Cancelled - [% END %] - [% order.quantity | html %][% IF ( order.orderstatus == "complete" ) %][% order.unitprice_tax_included | $Price %][% ELSE %][% order.ecost_tax_included | $Price %][% END %] - [% order.order_internalnote | html %] - [% IF order.subscriptionid %] - [% order.subscriptionid | html %] - [% END %] - - [% IF order.subscriptionid %] - [% order.subscription.callnumber | html %] - [% END %] -
    - [% ELSE %] - There is no order for this bibliographic record. - [% END %] -
    -[% END %] + [% IF Koha.Preference('SeparateHoldings') %] +
    + [% PROCESS items_table tab="otherholdings" %] +
    + [% END %] -[% IF suggestions.count %] -
    - [% IF nb_archived_suggestions > 0 %] -

    [% tnpx('pluralization', 'There is one archived suggestion.', 'There are {count} archived suggestions.', nb_archived_suggestions, { count = nb_archived_suggestions }) | $raw %] - [% END %] - - - - - - - - - - - - - - - [% FOREACH suggestion IN suggestions %] - - - - - - - - - - - [% END %] - -
     SuggestionSuggested by - onManaged by - onLast modification by - onLibraryFundStatus
    [% suggestion.suggestionid | html %] - - [% suggestion.title | html %][% IF ( suggestion.author ) %], by [% suggestion.author | html %][% END %] -
    - [% IF ( suggestion.copyrightdate ) %]© [% suggestion.copyrightdate | html %] [% END %] - [% IF ( suggestion.volumedesc ) %]; Volume:[% suggestion.volumedesc | html %] [% END %] - [% IF ( suggestion.isbn ) %]; ISBN:[% suggestion.isbn | html %] [% END %][% IF ( suggestion.publishercode ) %]; Published by [% suggestion.publishercode | html %] [% END %][% IF ( suggestion.publicationyear ) %] in [% suggestion.publicationyear | html %] [% END %][% IF ( suggestion.place ) %] in [% suggestion.place | html %] [% END %][% IF ( suggestion.collectiontitle ) %]; [% suggestion.collectiontitle | html %] [% END %][% IF ( suggestion.itemtype ) %]; [% AuthorisedValues.GetByCode( 'SUGGEST_FORMAT', suggestion.itemtype, 0 ) | html %] [% END %]
    [% IF ( suggestion.note ) %]
    [% suggestion.note | html %]
    [% END %] -
    - [% INCLUDE 'patron-title.inc' patron => suggestion.suggester %] - [% IF suggestion.suggesteddate %] - [% suggestion.suggesteddate | $KohaDates %][% END %] - - [% INCLUDE 'patron-title.inc' patron => suggestion.manager %] - [% IF suggestion.manageddate %] - [% suggestion.manageddate | $KohaDates %][% END %] - - [% INCLUDE 'patron-title.inc' patron => suggestion.last_modifier %] - [% IF suggestion.lastmodificationdate %] - [% suggestion.lastmodificationdate | $KohaDates %][% END %] - - [% Branches.GetName( suggestion.branchcode ) | html %] - - [% suggestion.fund.budget_name | html %] - - [% IF suggestion.STATUS == 'ASKED' %]Pending - [% ELSIF suggestion.STATUS == 'ACCEPTED' %]Accepted - [% ELSIF suggestion.STATUS == 'ORDERED' %]Ordered - [% ELSIF suggestion.STATUS == 'REJECTED' %]Rejected - [% ELSIF suggestion.STATUS == 'CHECKED' %]Checked - [% ELSIF suggestion.STATUS == 'AVAILABLE' %]Available - [% ELSIF AuthorisedValues.GetByCode( 'SUGGEST_STATUS', suggestion.STATUS ) %] - [% AuthorisedValues.GetByCode( 'SUGGEST_STATUS', suggestion.STATUS ) | html %] - [% ELSE %]Status unknown - [% END %] - [% IF suggestion.reason %] -
    ([% suggestion.reason | html %]) - [% END %] -
    -

    -[% END %] + [% IF ( MARCNOTES ) %] +
    +
    + [% FOREACH MARCNOTE IN MARCNOTES %] +

    + [% IF MARCNOTE.marcnote.match('^https?://\S+$') %] + [% MARCNOTE.marcnote | html %] + [% ELSE %] + [% MARCNOTE.marcnote | html | html_line_break %] + [% END %] +

    + [% END %] +
    +
    + [% END %] -[% IF ( FRBRizeEditions ) %][% IF ( XISBNS ) %] -

    Editions

    - -[% FOREACH XISBN IN XISBNS %][% IF ( AmazonCoverImages ) %][% END %] -[% IF ( !item_level_itypes || Koha.Preference('BiblioItemtypeInfo') ) %][% END %] - + [% IF ComponentParts && ComponentParts.size %] +
    +
    +
    [% IF ( noItemTypeImages ) %][% XISBN.description | html %][% ELSE %][% XISBN.description | html %][% END %][% XISBN.title | html %] by [% XISBN.author | html %] ©[% XISBN.copyrightdate | html %] - [% IF ( XISBN.publishercode ) %] -[% XISBN.publishercode | html %] [% IF ( XISBN.place ) %]([% XISBN.place | html %])[% END %] [% IF ( XISBN.publicationyear ) %], [% XISBN.publicationyear | html %][% END %] [% IF ( XISBN.editionstatement ) %][% XISBN.editionstatement | html %][% END %] [% IF ( XISBN.editionresponsibility ) %][% XISBN.editionresponsibility | html %][% END %] - [% END %] - [% IF ( XISBN.pages ) %] [% END %][% XISBN.pages | html %] [% IF ( XISBN.illus ) %][% XISBN.illus | html %][% END %] - [% IF ( XISBN.size ) %], [% END %][% XISBN.size | html %] -
    + [% FOR PART IN ComponentParts %] + + + + [% END %] +
    + [% PART | $raw %] +
    + [% IF ComponentParts.size == Koha.Preference('MaxComponentRecords')%] +

    Only [% ComponentParts.size | html %] results are shown: show all component parts

    + [% END %] +
    +
    + [% END %] -[% END %] -
    [% END %] -[% END %] + [% IF ( subscriptionsnumber ) %] +
    +
    +

    This is a serial subscription

    +

    (There are [% subscriptionsnumber | html %] subscriptions associated with this title).

    + [% FOREACH subscription IN subscriptions %] + [% IF subscription.branchcode %] +

    At library: [% Branches.GetName(subscription.branchcode) || subscription.branchcode | html %]

    + [% END %] + [% IF ( subscription.closed ) %] +

    This subscription is closed.

    + [% END %] + [% IF ( subscription.location ) %] +

    Location: [% AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.location', authorised_value => subscription.location ) | html %]

    + [% END %] + [% IF ( subscription.callnumber ) %] +

    Callnumber: [% subscription.callnumber | html %]

    + [% END %] + [% IF ( subscription.subscriptionnotes ) %] +

    [% subscription.subscriptionnotes | html | html_line_break %]

    + [% END %] + [% IF ( subscription.missinglist ) %] +

    Missing issues: [% subscription.missinglist | html %]

    + [% END %] + [% IF ( subscription.librariannote ) %] +

    ([% subscription.librariannote | html %])

    + [% END %] + [% IF ( subscription.latestserials ) %] +

    The [% subscription.staffdisplaycount | html %] latest issues related to this subscription:

    + + + + + + + + + + [% FOREACH latestserial IN subscription.latestserials %] + + + + + + + + + [% END %] +
    Issue #Date arrivedDate publishedDate published (text)StatusNote
    [% latestserial.serialseq | html %][% latestserial.planneddate | $KohaDates %][% latestserial.publisheddate | $KohaDates %][% latestserial.publisheddatetext | html %] + [% INCLUDE 'serial-status.inc' serial = latestserial %] + [% latestserial.notes | html %]
    + [% END %] + [% IF ( CAN_user_serials ) %] +

    + Subscription details +

    + [% END %] + [% END %] +
    +
    + [% END %] -[% IF ( ( Koha.Preference('CatalogConcerns') || Koha.Preference('OpacCatalogConcerns') ) && CAN_user_editcatalogue_edit_catalogue ) %] -
    -
    - Hide resolved - | Show all -
    - - - - - - - - - - - -
    ReportedDetailsTitleStatusActions
    -
    -[% END %] + [% IF Koha.Preference('AcquisitionDetails') %] +
    +

    This bibliographic record has acquisition status: [% PROCESS acq_status myvar=acq_status %] +

    + [% IF orders.count %] + + + + + + + + + + + + + + + + + + + + [% FOR order IN orders %] + [% SET basket = order.basket %] + [% SET vendor = basket.bookseller %] + + + + + + + + + + + + + + + [% END %] + +
    VendorInvoiceBasket groupBasketOrder numberCreation dateReceive dateStatusQuantityPriceInternal noteSubscriptionSubscription call number
    + [% vendor.name | html %] + + [% IF order.invoiceid %] + [% IF CAN_user_acquisition %] + + [% ELSE %] +
    [% order.invoice.invoicenumber | html %]
    + [% END %] + + [% IF ( Koha.Preference('EDIFACT') && CAN_user_acquisition_edi_manage && order.invoice.message_id ) %] + + [% END %] + [% END %] +
    + [% IF basket.basketgroupid %] + [% SET basket_group = basket.basket_group %] + [% IF CAN_user_acquisition_group_manage %] + [% basket_group.name | html%] ([% basket_group.id | html %]) + [% ELSE %] + [% basket_group.name | html %] ([% basket_group.id | html %]) + [% END %] + [% END %] + + [% IF CAN_user_acquisition_order_manage %] + [% basket.basketname | html %] ([% basket.basketno | html %]) + [% ELSE %] + [% basket.basketname | html %] ([% basket.basketno | html %]) + [% END %] + [% order.ordernumber | html %][% basket.creationdate | $KohaDates%][% order.datereceived | $KohaDates%] + [% SWITCH order.orderstatus %] + [% CASE 'new' %]New + [% CASE 'ordered' %]Ordered + [% CASE 'partial' %]Partial + [% CASE 'complete' %]Complete + [% CASE 'cancelled' %]Cancelled + [% END %] + [% order.quantity | html %] + [% IF ( order.orderstatus == "complete" ) %] + [% order.unitprice_tax_included | $Price %] + [% ELSE %] + [% order.ecost_tax_included | $Price %] + [% END %] + [% order.order_internalnote | html %] + [% IF order.subscriptionid %] + [% order.subscriptionid | html %] + [% END %] + + [% IF order.subscriptionid %] + [% order.subscription.callnumber | html %] + [% END %] +
    + [% ELSE %] + There is no order for this bibliographic record. + [% END %] +
    + [% END %] -[% IF ( LocalCoverImages ) %] -
    - [% IF localimages.count %] -

    Click on an image to view it in the image viewer

    -
      - [% FOREACH image IN localimages %] - [% IF image %] -
    • - - - - [% IF CAN_user_tools_upload_local_cover_images %] - Delete image + [% IF suggestions.count %] +
      + [% IF nb_archived_suggestions > 0 %] +

      [% tnpx('pluralization', 'There is one archived suggestion.', 'There are {count} archived suggestions.', nb_archived_suggestions, { count = nb_archived_suggestions }) | $raw %] + [% END %] + + + + + + + + + + + + + + + [% FOREACH suggestion IN suggestions %] + + + + + + + + + + + [% END %] + +
       SuggestionSuggested by - onManaged by - onLast modification by - onLibraryFundStatus
      [% suggestion.suggestionid | html %] + + [% suggestion.title | html %][% IF ( suggestion.author ) %], by [% suggestion.author | html %][% END %] +
      + [% IF ( suggestion.copyrightdate ) %]© [% suggestion.copyrightdate | html %] [% END %] + [% IF ( suggestion.volumedesc ) %]; Volume:[% suggestion.volumedesc | html %] [% END %] + [% IF ( suggestion.isbn ) %]; ISBN:[% suggestion.isbn | html %] [% END %] + [% IF ( suggestion.publishercode ) %]; Published by [% suggestion.publishercode | html %] [% END %] + [% IF ( suggestion.publicationyear ) %] in [% suggestion.publicationyear | html %] [% END %] + [% IF ( suggestion.place ) %] in [% suggestion.place | html %] [% END %] + [% IF ( suggestion.collectiontitle ) %]; [% suggestion.collectiontitle | html %] [% END %] + [% IF ( suggestion.itemtype ) %]; [% AuthorisedValues.GetByCode( 'SUGGEST_FORMAT', suggestion.itemtype, 0 ) | html %] [% END %]
      + [% IF ( suggestion.note ) %]
      [% suggestion.note | html %]
      [% END %] +
      + [% INCLUDE 'patron-title.inc' patron => suggestion.suggester %] + [% IF suggestion.suggesteddate %] - [% suggestion.suggesteddate | $KohaDates %][% END %] + + [% INCLUDE 'patron-title.inc' patron => suggestion.manager %] + [% IF suggestion.manageddate %] - [% suggestion.manageddate | $KohaDates %][% END %] + + [% INCLUDE 'patron-title.inc' patron => suggestion.last_modifier %] + [% IF suggestion.lastmodificationdate %] - [% suggestion.lastmodificationdate | $KohaDates %][% END %] + + [% Branches.GetName( suggestion.branchcode ) | html %] + + [% suggestion.fund.budget_name | html %] + + [% IF suggestion.STATUS == 'ASKED' %]Pending + [% ELSIF suggestion.STATUS == 'ACCEPTED' %]Accepted + [% ELSIF suggestion.STATUS == 'ORDERED' %]Ordered + [% ELSIF suggestion.STATUS == 'REJECTED' %]Rejected + [% ELSIF suggestion.STATUS == 'CHECKED' %]Checked + [% ELSIF suggestion.STATUS == 'AVAILABLE' %]Available + [% ELSIF AuthorisedValues.GetByCode( 'SUGGEST_STATUS', suggestion.STATUS ) %] + [% AuthorisedValues.GetByCode( 'SUGGEST_STATUS', suggestion.STATUS ) | html %] + [% ELSE %]Status unknown + [% END %] + [% IF suggestion.reason %] +
      ([% suggestion.reason | html %]) + [% END %] +
      +

      [% END %] -
    • - [% END %] - [% END %] -
    - [% ELSE # - No image passed JavaScript takes care %] - No images have been uploaded for this bibliographic record yet. - [% END %] - [% IF ( CAN_user_tools_upload_local_cover_images ) %] -

    Upload an image file: Upload -

    - [% END %] -
    -[% END %] -[% IF ( HTML5MediaEnabled ) %] -
    - [% FOREACH HTML5MediaSet IN HTML5MediaSets %] -

    - [% IF HTML5MediaSet.is_youtube %] - - [% ELSE %] - <[% HTML5MediaParent | html %] controls preload=none> - <[% HTML5MediaSet.child | html %] src="[% HTML5MediaSet.srcblock | url %]"[% HTML5MediaSet.typeblock | html %] /> - [[% HTML5MediaParent | html %] tag not supported by your browser.] - - [% END %] -

    - [% END %] -
    -[% END %] + [% IF ( FRBRizeEditions ) %] + [% IF ( XISBNS ) %] +
    +

    Editions

    + + [% FOREACH XISBN IN XISBNS %] + + [% IF ( AmazonCoverImages ) %] + + [% END %] + [% IF ( !item_level_itypes || Koha.Preference('BiblioItemtypeInfo') ) %] + + [% END %] + + + [% END %] +
    + + + [% IF ( noItemTypeImages ) %] + [% XISBN.description | html %] + [% ELSE %] + [% XISBN.description | html %] + [% END %] + + [% XISBN.title | html %] by [% XISBN.author | html %] ©[% XISBN.copyrightdate | html %] + [% IF ( XISBN.publishercode ) %] + [% XISBN.publishercode | html %] + [% IF ( XISBN.place ) %]([% XISBN.place | html %])[% END %] + [% IF ( XISBN.publicationyear ) %], [% XISBN.publicationyear | html %][% END %] + [% IF ( XISBN.editionstatement ) %][% XISBN.editionstatement | html %][% END %] + [% IF ( XISBN.editionresponsibility ) %][% XISBN.editionresponsibility | html %][% END %] + [% END %] + [% IF ( XISBN.pages ) %] [% END %][% XISBN.pages | html %] + [% IF ( XISBN.illus ) %][% XISBN.illus | html %][% END %] + [% IF ( XISBN.size ) %], [% END %][% XISBN.size | html %] +
    +
    + [% END %] + [% END %] + [% IF ( ( Koha.Preference('CatalogConcerns') || Koha.Preference('OpacCatalogConcerns') ) && CAN_user_editcatalogue_edit_catalogue ) %] +
    +
    + Hide resolved + | Show all +
    + + + + + + + + + + + +
    ReportedDetailsTitleStatusActions
    +
    + [% END %] -[% IF ( Koha.Preference('NovelistSelectStaffEnabled') && Koha.Preference('NovelistSelectStaffProfile') && Koha.Preference('NovelistSelectStaffView') == 'tab' ) %] -
    -
    -
    -[% END %] + [% IF ( LocalCoverImages ) %] +
    + [% IF localimages.count %] +

    Click on an image to view it in the image viewer

    +
      + [% FOREACH image IN localimages %] + [% IF image %] +
    • + + + + [% IF CAN_user_tools_upload_local_cover_images %] + Delete image + [% END %] +
    • + [% END %] + [% END %] +
    + [% ELSE # - No image passed JavaScript takes care %] + No images have been uploaded for this bibliographic record yet. + [% END %] + [% IF ( CAN_user_tools_upload_local_cover_images ) %] +

    Upload an image file: Upload +

    + [% END %] +
    + [% END %] -[% FOREACH plugins_intranet_catalog_biblio_tab IN plugins_intranet_catalog_biblio_tabs %] -
    - [% plugins_intranet_catalog_biblio_tab.content | $raw %] -
    -[% END %] + [% IF ( HTML5MediaEnabled ) %] +
    + [% FOREACH HTML5MediaSet IN HTML5MediaSets %] +

    + [% IF HTML5MediaSet.is_youtube %] + + [% ELSE %] + <[% HTML5MediaParent | html %] controls preload=none> + <[% HTML5MediaSet.child | html %] src="[% HTML5MediaSet.srcblock | url %]"[% HTML5MediaSet.typeblock | html %] /> + [[% HTML5MediaParent | html %] tag not supported by your browser.] + + [% END %] +

    + [% END %] +
    + [% END %] -
    -
    - -
    -
    - - - - - -
    Save record
    Select download format: -
    - -
    -
    -
    - - - - + [% IF ( Koha.Preference('NovelistSelectStaffEnabled') && Koha.Preference('NovelistSelectStaffProfile') && Koha.Preference('NovelistSelectStaffView') == 'tab' ) %] +
    +
    +
    + [% END %] -
    -
    + [% FOREACH plugins_intranet_catalog_biblio_tab IN plugins_intranet_catalog_biblio_tabs %] +
    + [% plugins_intranet_catalog_biblio_tab.content | $raw %] +
    + [% END %] +
    +
    + +
    +
    + + + + + + + + + + +
    Save record
    + Select download format: + + +
    + +
    +
    +
    -
    - -
    - + -[% END %] + + + + +
    + +
    + + [% END %] -