@@ -, +, @@ detail page - With and without SeparateHoldings enabled - With and without cover images enabled - With FRBRizeEditions enabled (and multiple editions in your catalog) - See Bug 33195 for a MARC file to use when testing FRBRizeEditions with ThingISBN - With LocalCoverImages enabled - With AcquisitionDetails enabled - With a serial record - With a record added from a suggestion - With a record with component parts - See Bug 11175 for a MARCXML file to use to test this feature - With EnableItemGroups enabled - Wtih CatalogConcerns enabled - With HTML5MediaEnabled and a record with media links - See Bug 8377 for a MARC file to use to test this feature - With and without NovelistSelect enabled (requires Novelist credentials) - With NovelistSelectStaffView set to "above the holdings table," "below the holdings table," and "in a tab" - With a plugin enabled which adds a tab to this view - See Bug 27120 for a sample plugin for testing plugin-generated tabs --- .../prog/en/includes/html_helpers.inc | 4 +- .../prog/en/modules/catalogue/detail.tt | 887 +++++++++--------- 2 files changed, 451 insertions(+), 440 deletions(-) --- a/koha-tmpl/intranet-tmpl/prog/en/includes/html_helpers.inc +++ a/koha-tmpl/intranet-tmpl/prog/en/includes/html_helpers.inc @@ -389,9 +389,9 @@ [% BLOCK tab_item %] [% IF ( bt_active ) %] -
+ [% END %] + [% IF Koha.Preference('LocalCoverImages') && ( tab == 'holdings' && itemloop_has_images || tab == 'otherholdings' && otheritemloop_has_images ) %] + | Cover image | + [% END %] + [% IF ( item_level_itypes ) %] +Item type | + [% END %] +Current library | +Home library | + [% IF ( itemdata_ccode ) %] +Collection | + [% END %] + [% IF Koha.Preference('EnableItemGroups') %] +Item group | + [% END %] +Call number | + [% IF volinfo %] +Serial enumeration / chronology | + [% END %] +Status | +Last seen | +Checkouts | +Renewals | +Date accessioned | +Date last borrowed | +Barcode | + [% IF ( itemdata_uri ) %] +URL | + [% END %] + [% IF ( itemdata_copynumber ) %] +Copy number | + [% END %] + [% IF ( itemdata_stocknumber ) %] +Inventory number | + [% END %] + [% IF materials %] +Materials specified | + [% END %] + [% IF ( itemdata_itemnotes ) %] +Public notes | + [% END %] + [% IF ( itemdata_nonpublicnotes ) %] +Non-public notes | + [% END %] + [% IF ( hostrecords ) %] +Host records | + [% END %] + [% IF ( analyze ) %] +Used in | + [% END %] + [% IF ( ShowCourseReserves ) %] + | Course reserves | + [% END %] + [% IF ( SpineLabelShowPrintOnBibDetails ) %] +Spine label | + [% END %] + [% IF ( CAN_user_editcatalogue_edit_items ) %] ++ [% END %] + | ||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
+ | + [% IF item.can_be_edited %] + + [% END %] + | [% END %] [% IF Koha.Preference('LocalCoverImages') && ( tab == 'holdings' && itemloop_has_images || tab == 'otherholdings' && otheritemloop_has_images ) %] -Cover image | +
+
+
+
+ |
[% END %]
+
[% IF ( item_level_itypes ) %]
- Item type | - [% END %] -Current library | -Home library | - [% IF ( itemdata_ccode ) %] -Collection | - [% END %] - [% IF Koha.Preference('EnableItemGroups') %] -Item group | - [% END %] -Call number | - [% IF volinfo %] -Serial enumeration / chronology | - [% END %] -Status | -Last seen | -Checkouts | -Renewals | -Date accessioned | -Date last borrowed | -Barcode | - [% IF ( itemdata_uri ) %] -URL | - [% END %] - [% IF ( itemdata_copynumber ) %] -Copy number | - [% END %] - [% IF ( itemdata_stocknumber ) %] -Inventory number | - [% END %] - [% IF materials %] -Materials specified | - [% END %] - [% IF ( itemdata_itemnotes ) %] -Public notes | - [% END %] - [% IF ( itemdata_nonpublicnotes ) %] -Non-public notes | - [% END %] - [% IF ( hostrecords ) %] -Host records | - [% END %] - [% IF ( analyze ) %] -Used in | - [% END %] - [% IF ( ShowCourseReserves ) %] - | Course reserves | - [% END %] - [% IF ( SpineLabelShowPrintOnBibDetails ) %] -Spine label | - [% END %] - [% IF ( CAN_user_editcatalogue_edit_items ) %] -+ |
+ [% SET itemtype = item.itemtype %]
+ [% IF !noItemTypeImages && itemtype.image_location('intranet') %]
+ |
[% END %]
- |||||||||||||||||||||||||
- [% IF item.can_be_edited %] - - [% END %] - | - [% END %] - [% IF Koha.Preference('LocalCoverImages') && ( tab == 'holdings' && itemloop_has_images || tab == 'otherholdings' && otheritemloop_has_images ) %] -
-
-
-
- |
+ + [% UNLESS ( singlebranchmode ) %] + [% Branches.GetName( item.holdingbranch ) | html %] [% END %] - - [% IF ( item_level_itypes ) %] - |
- [% SET itemtype = item.itemtype %]
- [% IF !noItemTypeImages && itemtype.image_location('intranet') %]
- |
+ + [% Branches.GetName(item.homebranch) | html %] + + [%# If permanent location is defined, show description or code and %] + [%# display current location in parentheses. If not, display current location. %] + [%# Note that permanent location is a code, and location may be an authval. %] + [% IF item.permanent_location %] + [% SET permloc_authval = AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.location', authorised_value => item.permanent_location ) %] + [% permloc_authval | html %] + [% SET item_location = AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.location', authorised_value => item.location ) %] + [% IF item_location AND item_location != permloc_authval AND item.location != item.permanent_location %] + ([% item_location | html %]) [% END %] - [% itemtype.translated_description | html %] - | - [% END %] -- [% UNLESS ( singlebranchmode ) %] - [% Branches.GetName( item.holdingbranch ) | html %] + [% ELSE %] + [% item_location | html %] [% END %] + + | + [% IF ( itemdata_ccode ) %] ++ [% AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.ccode', authorised_value => item.ccode ) | html %] | -- [% Branches.GetName(item.homebranch) | html %] - - [%# If permanent location is defined, show description or code and %] - [%# display current location in parentheses. If not, display current location. %] - [%# Note that permanent location is a code, and location may be an authval. %] - [% IF item.permanent_location %] - [% SET permloc_authval = AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.location', authorised_value => item.permanent_location ) %] - [% permloc_authval | html %] - [% SET item_location = AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.location', authorised_value => item.location ) %] - [% IF item_location AND item_location != permloc_authval AND item.location != item.permanent_location %] - ([% item_location | html %]) - [% END %] - [% ELSE %] - [% item_location | html %] - [% END %] - + [% END %] + [% IF Koha.Preference('EnableItemGroups') %] + | + [% item.object.item_group.description | html %] | - [% IF ( itemdata_ccode ) %] -- [% AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.ccode', authorised_value => item.ccode ) | html %] - | + [% END %] ++ [% IF ( item.itemcallnumber ) %] + [% item.itemcallnumber | html %] [% END %] - [% IF Koha.Preference('EnableItemGroups') %] - | - [% item.object.item_group.description | html %] - | + + [% IF ( volinfo ) %] + [% SET serial = item.serial %] + [% IF itemdata_publisheddate #If there is at least one published date, use it for sorting %] ++ [% ELSE %] + | [% END %] - | - [% IF ( item.itemcallnumber ) %] - [% item.itemcallnumber | html %] - [% END %] - | - [% IF ( volinfo ) %] - [% SET serial = item.serial %] - [% IF itemdata_publisheddate #If there is at least one published date, use it for sorting %] -- [% ELSE %] - | - [% END %] - [% IF ( itemdata_enumchron ) %] - [% IF item.enumchron && serial.serialseq %] - [% item.enumchron | html %] - [% IF ( serial.serialseq && item.enumchron != serial.serialseq ) %] - -- - [% serial.serialseq | html %] - [% END %] - [% ELSIF item.enumchron %] - [% item.enumchron | html %] - [% ELSIF item.serialseq %] + [% IF ( itemdata_enumchron ) %] + [% IF item.enumchron && serial.serialseq %] + [% item.enumchron | html %] + [% IF ( serial.serialseq && item.enumchron != serial.serialseq ) %] + -- [% serial.serialseq | html %] [% END %] - [% IF serial.publisheddate %] - ([% serial.publisheddate | $KohaDates %]) - [% END %] - [% END %] - | - [% END %] - -- [% IF item.object.checkout %] - [% IF item.object.checkout.onsite_checkout %] - Currently in local use - [% ELSE %] - Checked out - [% END %] - - [% IF item.can_be_edited %] - [% IF item.object.checkout.onsite_checkout %] - by - [% ELSE %] - to - [% END %] - [% INCLUDE 'patron-title.inc' patron=item.object.checkout.patron hide_patron_infos_if_needed=1 %] - [% END %] - : due [% item.object.checkout.date_due | $KohaDates as_due_date => 1 %] - - [% ELSIF ( transfer = item.object.get_transfer ) %] - [% IF (transfer.datesent) %] - In transit from [% Branches.GetName( transfer.frombranch ) | html %] to [% Branches.GetName( transfer.tobranch ) | html %] since [% transfer.datesent | $KohaDates %] - [% ELSE %] - Transit pending from [% Branches.GetName( transfer.frombranch ) | html %] to [% Branches.GetName( transfer.tobranch ) | html %] since [% item.transfer.daterequested | $KohaDates %] - + [% ELSIF item.enumchron %] + [% item.enumchron | html %] + [% ELSIF item.serialseq %] + [% serial.serialseq | html %] [% END %] - [% END %] - - [% IF ( item.itemlost ) %] - [% SET itemlost_description = AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.itemlost', authorised_value => item.itemlost ) %] - [% IF itemlostloop %] - [% itemlost_description | html %] - [% ELSE %] - Unavailable (lost or missing) + [% IF serial.publisheddate %] + ([% serial.publisheddate | $KohaDates %]) [% END %] [% END %] + | + [% END %] - [% IF ( item.withdrawn ) %] - [% SET withdrawn_description = AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.withdrawn', authorised_value => item.withdrawn ) %] - [% IF withdrawn_description %] - [% withdrawn_description | html %] - [% ELSE %] - Withdrawn - [% END %] ++ [% IF item.object.checkout %] + [% IF item.object.checkout.onsite_checkout %] + Currently in local use + [% ELSE %] + Checked out [% END %] - [% IF ( item.damaged ) %] - [% SET damaged_description = AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.damaged', authorised_value => item.damaged ) %] - [% IF damaged_description %] - [% damaged_description | html %] + [% IF item.can_be_edited %] + [% IF item.object.checkout.onsite_checkout %] + by [% ELSE %] - Damaged - [% END %] - [% END %] - - [% IF ( item.notforloan || item.itemtype.notforloan ) %] - Not for loan - [% SET not_for_loan_description = AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.notforloan', authorised_value => item.notforloan ) %] - [% IF not_for_loan_description %] - ([% not_for_loan_description | html %]) + to [% END %] - + [% INCLUDE 'patron-title.inc' patron=item.object.checkout.patron hide_patron_infos_if_needed=1 %] [% END %] + : due [% item.object.checkout.date_due | $KohaDates as_due_date => 1 %] + + [% ELSIF ( transfer = item.object.get_transfer ) %] + [% IF (transfer.datesent) %] + In transit from [% Branches.GetName( transfer.frombranch ) | html %] to [% Branches.GetName( transfer.tobranch ) | html %] since [% transfer.datesent | $KohaDates %] + [% ELSE %] + Transit pending from [% Branches.GetName( transfer.frombranch ) | html %] to [% Branches.GetName( transfer.tobranch ) | html %] since [% item.transfer.daterequested | $KohaDates %] - [% SET hold = item.first_hold %] - [% IF hold %] - [% IF hold.waitingdate %] - Waiting at [% Branches.GetName( hold.branchcode ) | html %][% IF ( hold.desk_id ) %], [% hold.desk.desk_name | html %][% END %] since [% hold.waitingdate | $KohaDates %]. - [% IF canreservefromotherbranches AND ( hold.waitingdate OR hold.priority == 1 ) %] - Hold for: - [% INCLUDE 'patron-title.inc' patron=hold.borrower hide_patron_infos_if_needed=1 %] - [% END %] - [% ELSE %] - There is an item level hold on this item (priority = [% hold.priority | html %]). - [% END %] [% END %] + [% END %] - [% IF Koha.Preference('UseRecalls') %] - [% SET recall = item.object.recall %] - [% IF recall %] - [% IF recall.waiting_date %] - Waiting at [% Branches.GetName( recall.pickup_library_id ) | html %] since [% recall.waiting_date | $KohaDates %] - [% ELSE %] - [% patron_link = BLOCK %][% recall.patron.firstname | html %] [% recall.patron.surname | html %] ([% recall.patron.cardnumber | html %])[% END %] - recalled by [% patron_link| $raw %] on [% recall.created_date | $KohaDates %] - [% END %] - [% END %] + [% IF ( item.itemlost ) %] + [% SET itemlost_description = AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.itemlost', authorised_value => item.itemlost ) %] + [% IF itemlostloop %] + [% itemlost_description | html %] + [% ELSE %] + Unavailable (lost or missing) [% END %] + [% END %] - [% UNLESS ( item.notforloan || item.itemtype.notforloan || item.onloan || item.itemlost || item.withdrawn || item.damaged || item.transfer || hold || ( Koha.Preference('UseRecalls') && recall ) ) %] - Available + [% IF ( item.withdrawn ) %] + [% SET withdrawn_description = AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.withdrawn', authorised_value => item.withdrawn ) %] + [% IF withdrawn_description %] + [% withdrawn_description | html %] + [% ELSE %] + Withdrawn [% END %] + [% END %] - [% IF ( item.restricted ) %] - ([% AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.restricted', authorised_value => item.restricted ) | html %]) + [% IF ( item.damaged ) %] + [% SET damaged_description = AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.damaged', authorised_value => item.damaged ) %] + [% IF damaged_description %] + [% damaged_description | html %] + [% ELSE %] + Damaged [% END %] + [% END %] - [% IF ( item.bundle_host ) %] - In bundle: [% INCLUDE 'biblio-title.inc' biblio = item.bundle_host.biblio link = 1 %] + [% IF ( item.notforloan || item.itemtype.notforloan ) %] + Not for loan + [% SET not_for_loan_description = AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.notforloan', authorised_value => item.notforloan ) %] + [% IF not_for_loan_description %] + ([% not_for_loan_description | html %]) [% END %] - | + + [% END %] -- [% item.datelastseen | $KohaDates with_hours => 1 %] - | -- [% item.issues || 0 | html %] - | -- [% item.renewals || 0 | html %] - | -- [% item.dateaccessioned | $KohaDates %] - | -- [% item.datelastborrowed | $KohaDates %] - | -- [% item.barcode | html %] - | - [% IF ( itemdata_uri ) %] - [% IF item.uri.split(' \| ').size > 1 %] -
- [% FOREACH uri IN item.uri.split(' \| ') %][% uri | html %] [% END %] - |
+ [% SET hold = item.first_hold %]
+ [% IF hold %]
+ [% IF hold.waitingdate %]
+ Waiting at [% Branches.GetName( hold.branchcode ) | html %][% IF ( hold.desk_id ) %], [% hold.desk.desk_name | html %][% END %] since [% hold.waitingdate | $KohaDates %].
+ [% IF canreservefromotherbranches AND ( hold.waitingdate OR hold.priority == 1 ) %]
+ Hold for:
+ [% INCLUDE 'patron-title.inc' patron=hold.borrower hide_patron_infos_if_needed=1 %]
+ [% END %]
[% ELSE %]
- - [% IF item.uri %] - [% IF Koha.Preference('URLLinkText') %][% Koha.Preference('URLLinkText') | html %][% ELSE %]Link to resource[% END %] - [% END %] - | + There is an item level hold on this item (priority = [% hold.priority | html %]). [% END %] [% END %] - [% IF ( itemdata_copynumber ) %] -- [% AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.copynumber', authorised_value => item.copynumber ) | html %] - | - [% END %] - [% IF ( itemdata_stocknumber ) %] -[% item.stocknumber | html %] | + + [% IF Koha.Preference('UseRecalls') %] + [% SET recall = item.object.recall %] + [% IF recall %] + [% IF recall.waiting_date %] + Waiting at [% Branches.GetName( recall.pickup_library_id ) | html %] since [% recall.waiting_date | $KohaDates %] + [% ELSE %] + [% patron_link = BLOCK %][% recall.patron.firstname | html %] [% recall.patron.surname | html %] ([% recall.patron.cardnumber | html %])[% END %] + recalled by [% patron_link| $raw %] on [% recall.created_date | $KohaDates %] + [% END %] + [% END %] [% END %] - [% IF materials %] -[% item.materials | html %] | + + [% UNLESS ( item.notforloan || item.itemtype.notforloan || item.onloan || item.itemlost || item.withdrawn || item.damaged || item.transfer || hold || ( Koha.Preference('UseRecalls') && recall ) ) %] + Available [% END %] - [% IF ( itemdata_itemnotes ) %] -
- [% item.object.itemnotes.replace('\n','
- ') | $raw %] |
+
+ [% IF ( item.restricted ) %]
+ ([% AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.restricted', authorised_value => item.restricted ) | html %])
[% END %]
- [% IF itemdata_nonpublicnotes %]
- [% item.itemnotes_nonpublic | html %] | + + [% IF ( item.bundle_host ) %] + In bundle: [% INCLUDE 'biblio-title.inc' biblio = item.bundle_host.biblio link = 1 %] [% END %] - [% IF ( hostrecords ) %] -- [% IF ( item.hostbiblionumber) %] - [% item.hosttitle | html %] - [% END %] + | + ++ [% item.datelastseen | $KohaDates with_hours => 1 %] + | ++ [% item.issues || 0 | html %] + | ++ [% item.renewals || 0 | html %] + | ++ [% item.dateaccessioned | $KohaDates %] + | ++ [% item.datelastborrowed | $KohaDates %] + | ++ [% item.barcode | html %] + | + [% IF ( itemdata_uri ) %] + [% IF item.uri.split(' \| ').size > 1 %] +
+ [% FOREACH uri IN item.uri.split(' \| ') %][% uri | html %] [% END %] |
- [% END %]
- [% IF ( analyze ) %]
- - [% IF ( item.countanalytics ) %] - [% item.countanalytics | html %] analytics + [% ELSE %] + | + [% IF item.uri %] + [% IF Koha.Preference('URLLinkText') %][% Koha.Preference('URLLinkText') | html %][% ELSE %]Link to resource[% END %] [% END %] | [% END %] - [% IF ( analyze ) %] -Create analytics | - [% END %] + [% END %] + [% IF ( itemdata_copynumber ) %] ++ [% AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.copynumber', authorised_value => item.copynumber ) | html %] + | + [% END %] + [% IF ( itemdata_stocknumber ) %] +[% item.stocknumber | html %] | + [% END %] + [% IF materials %] +[% item.materials | html %] | + [% END %] + [% IF ( itemdata_itemnotes ) %] +
+ [% item.object.itemnotes.replace('\n','
+ ') | $raw %] |
+ [% END %]
+ [% IF itemdata_nonpublicnotes %]
+ [% item.itemnotes_nonpublic | html %] | + [% END %] + [% IF ( hostrecords ) %] ++ [% IF ( item.hostbiblionumber) %] + [% item.hosttitle | html %] + [% END %] + | + [% END %] + [% IF ( analyze ) %] ++ [% IF ( item.countanalytics ) %] + [% item.countanalytics | html %] analytics + [% END %] + | + [% END %] + [% IF ( analyze ) %] +Create analytics | + [% END %] - [% IF ShowCourseReserves %] -- [% IF item.course_reserves %] - [% FOREACH r IN item.course_reserves %] - [% IF r.course.enabled == 'yes' %] - - [% END %] + [% IF ShowCourseReserves %] + | + [% IF item.course_reserves %] + [% FOREACH r IN item.course_reserves %] + [% IF r.course.enabled == 'yes' %] + [% END %] [% END %] - | - [% END %] + [% END %] + + [% END %] - [% IF ( SpineLabelShowPrintOnBibDetails ) %] -- Print label - | - [% END %] + [% IF ( SpineLabelShowPrintOnBibDetails ) %] ++ Print label + | + [% END %] - [% IF CAN_user_editcatalogue_edit_items %] -
- [% IF item.can_be_edited %]
- [% IF Koha.Preference('LocalCoverImages') OR Koha.Preference('OPACLocalCoverImages') %]
-
- Edit
-
-
- [% ELSE %]
- Edit
- [% END # /IF LocalCoverImages %]
- [% END # /IF item.can_be_edited %]
- [% IF bundlesEnabled %]
-
- [% END %]
- |
- [% END # /IF CAN_user_editcatalogue_edit_items %]
-
@@ -859,11 +869,11 @@
[% END # /FOREACH MARCNOTE %]Click on an image to view it in the image viewer
Upload an image file: Upload
[% END %] -[% IF HTML5MediaSet.is_youtube %] @@ -1223,23 +1233,23 @@ [% END %]
[% END # /FOREACH HTML5MediaSet %] -