From 2aacc5c8a526a0632645902d0630a84f9e2173fd Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Fri, 14 Mar 2025 11:40:17 +0000 Subject: [PATCH] Bug 39189: (follow-up) Add missing container to moredetail.tt Signed-off-by: Phil Ringnalda --- .../prog/en/modules/catalogue/moredetail.tt | 700 +++++++++--------- 1 file changed, 352 insertions(+), 348 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/moredetail.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/moredetail.tt index a75ba0efcc..e6ca9c6ae9 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/moredetail.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/moredetail.tt @@ -136,418 +136,422 @@ [% END %] [% FOREACH ITEM_DAT IN ITEM_DATA %] -

- - [% IF ITEM_DAT.barcode -%] - Barcode [% ITEM_DAT.barcode | html %] - [% ELSE -%] - Item number [% ITEM_DAT.itemnumber | html %] - [% END %] - [% IF not_for_loan %][% not_for_loan_description | html %][% END %] -

-
- [% SET not_for_loan = 0 %] - [% IF ITEM_DAT.notforloan || ITEM_DAT.effective_itemtype.notforloan %] - [% SET not_for_loan = 1 %] - [% SET not_for_loan_description = AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.notforloan', authorised_value => item.notforloan ) %] - [% END %] -
-

- Item information - [% UNLESS ( ITEM_DAT.nomod ) %] - [% IF ( CAN_user_editcatalogue_edit_items ) %] - Edit item +
+

+ + [% IF ITEM_DAT.barcode -%] + Barcode [% ITEM_DAT.barcode | html %] + [% ELSE -%] + Item number [% ITEM_DAT.itemnumber | html %] + [% END %] + [% IF not_for_loan %][% not_for_loan_description | html %][% END %] +

+
+ [% SET not_for_loan = 0 %] + [% IF ITEM_DAT.notforloan || ITEM_DAT.effective_itemtype.notforloan %] + [% SET not_for_loan = 1 %] + [% SET not_for_loan_description = AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.notforloan', authorised_value => item.notforloan ) %] + [% END %] +
+

+ Item information + [% UNLESS ( ITEM_DAT.nomod ) %] + [% IF ( CAN_user_editcatalogue_edit_items ) %] + Edit item + [% END %] [% END %] - [% END %] -

+

-
-
    -
  1. Home library: [% Branches.GetName( ITEM_DAT.homebranch ) | html %] 
  2. - [% IF ( item_level_itypes ) %] -
  3. Item type: [% ITEM_DAT.itype | html %] 
  4. - [% END %] - [% IF ( ITEM_DAT.ccode) %] -
  5. Collection: [% ITEM_DAT.ccode | html %]
  6. - [% END %] -
  7. Item call number: [% ITEM_DAT.itemcallnumber | html %]
  8. - [% IF ( ITEM_DAT.displaycopy ) %] -
  9. Copy number: [% ITEM_DAT.copyvol | html %] 
  10. - [% END %] - [% IF ( ITEM_DAT.location ) %] -
  11. - Shelving location: - [% AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.location', authorised_value => ITEM_DAT.location ) | html %] -
  12. - [% END %] - [% IF ( ITEM_DAT.replacementprice ) %] -
  13. Replacement price: [% ITEM_DAT.replacementprice | $Price %] 
  14. - [% END %] - [% IF ITEM_DAT.materials %] -
  15. Materials specified: [% ITEM_DAT.materials | html %]
  16. - [% END %] -
- +
+
    +
  1. Home library: [% Branches.GetName( ITEM_DAT.homebranch ) | html %] 
  2. + [% IF ( item_level_itypes ) %] +
  3. Item type: [% ITEM_DAT.itype | html %] 
  4. + [% END %] + [% IF ( ITEM_DAT.ccode) %] +
  5. Collection: [% ITEM_DAT.ccode | html %]
  6. + [% END %] +
  7. Item call number: [% ITEM_DAT.itemcallnumber | html %]
  8. + [% IF ( ITEM_DAT.displaycopy ) %] +
  9. Copy number: [% ITEM_DAT.copyvol | html %] 
  10. + [% END %] + [% IF ( ITEM_DAT.location ) %] +
  11. + Shelving location: + [% AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.location', authorised_value => ITEM_DAT.location ) | html %] +
  12. + [% END %] + [% IF ( ITEM_DAT.replacementprice ) %] +
  13. Replacement price: [% ITEM_DAT.replacementprice | $Price %] 
  14. + [% END %] + [% IF ITEM_DAT.materials %] +
  15. Materials specified: [% ITEM_DAT.materials | html %]
  16. + [% END %] +
+ +
+
- -
- + -
-

- Statuses - [% IF ( ITEM_DAT.status_advisory ) %] - ([% IF ( not_for_loan ) %] - [% IF not_for_loan_description %] - [% not_for_loan_description | html %] - [% ELSE %] - Not for loan +
+

+ Statuses + [% IF ( ITEM_DAT.status_advisory ) %] + ([% IF ( not_for_loan ) %] + [% IF not_for_loan_description %] + [% not_for_loan_description | html %] + [% ELSE %] + Not for loan + [% END %] [% END %] + [% IF ( ITEM_DAT.itemlost ) %]Lost[% END %] + [% IF ( ITEM_DAT.damaged ) %]Damaged[% END %] + [% IF ( ITEM_DAT.withdrawn ) %]Withdrawn[% END %] + ) [% END %] - [% IF ( ITEM_DAT.itemlost ) %]Lost[% END %] - [% IF ( ITEM_DAT.damaged ) %]Damaged[% END %] - [% IF ( ITEM_DAT.withdrawn ) %]Withdrawn[% END %] - ) - [% END %] -

+

-
-
    -
  1. Current library: [% Branches.GetName( ITEM_DAT.holdingbranch ) | html %] 
  2. -
  3. - Checkout status: - [% SET checkout = ITEM_DAT.object.checkout %] - [% IF ( checkout ) %] - Checked out to [% INCLUDE 'patron-title.inc' patron => checkout.patron hide_patron_infos_if_needed=1 %] - [% IF ( checkout.lastreneweddate ) %] - Last renewed [% checkout.lastreneweddate | $KohaDates %], - [% END %] - [% IF ( checkout.date_due ) %] - Due back on [% checkout.date_due | $KohaDates as_due_date => 1 %] - [% ELSE %] - Not checked out +
    +
      +
    1. Current library: [% Branches.GetName( ITEM_DAT.holdingbranch ) | html %] 
    2. +
    3. + Checkout status: + [% SET checkout = ITEM_DAT.object.checkout %] + [% IF ( checkout ) %] + Checked out to [% INCLUDE 'patron-title.inc' patron => checkout.patron hide_patron_infos_if_needed=1 %] + [% IF ( checkout.lastreneweddate ) %] + Last renewed [% checkout.lastreneweddate | $KohaDates %], + [% END %] + [% IF ( checkout.date_due ) %] + Due back on [% checkout.date_due | $KohaDates as_due_date => 1 %] + [% ELSE %] + Not checked out + [% END %] [% END %] - [% END %] -
    4. - [% IF ITEM_DAT.object.checkout.renewals_count %] -
    5. - Current renewals: - [% ITEM_DAT.object.checkout.renewals_count | html %] [ - View ]
    6. - [% END %] - [% IF itemlostloop %] -
    7. - Lost status: - [% IF ( CAN_user_circulate ) %] - [% SET ClaimReturnedLostValue = Koha.Preference('ClaimReturnedLostValue') %] -
      - [% INCLUDE 'csrf-token.inc' %] - - - + [% IF ITEM_DAT.object.checkout.renewals_count %] +
    8. + Current renewals: + [% ITEM_DAT.object.checkout.renewals_count | html %] [ + View ] +
    9. + [% END %] + [% IF itemlostloop %] +
    10. + Lost status: + [% IF ( CAN_user_circulate ) %] + [% SET ClaimReturnedLostValue = Koha.Preference('ClaimReturnedLostValue') %] + + [% INCLUDE 'csrf-token.inc' %] + + + - + + [% FOREACH itemlostloo IN itemlostloop %] + [% IF itemlostloo.authorised_value == ITEM_DAT.itemlost %] + + [% ELSIF ClaimReturnedLostValue && itemlostloo.authorised_value == ClaimReturnedLostValue #Filter claims returned status from pulldown %] + + [% ELSE %] + + [% END %] [% END %] - [% END %] - - - + + + - - - [% IF ClaimReturnedLostValue && ITEM_DAT.has_return_claim %] -

      Item has been claimed as returned.

      - [% END %] -
    11. - [% ELSE %] - [% FOREACH itemlostloo IN itemlostloop %] - [% IF ( itemlostloo.selected ) %] - [% itemlostloo.lib | html %] + + + [% IF ClaimReturnedLostValue && ITEM_DAT.has_return_claim %] +

      Item has been claimed as returned.

      + [% END %] + + [% ELSE %] + [% FOREACH itemlostloo IN itemlostloop %] + [% IF ( itemlostloo.selected ) %] + [% itemlostloo.lib | html %] + [% END %] [% END %] [% END %] +
    12. + [% IF ITEM_DAT.itemlost != "" && ITEM_DAT.itemlost_on %] +
    13. Lost on:[% ITEM_DAT.itemlost_on | $KohaDates %]
    14. [% END %] - - [% IF ITEM_DAT.itemlost != "" && ITEM_DAT.itemlost_on %] -
    15. Lost on:[% ITEM_DAT.itemlost_on | $KohaDates %]
    16. [% END %] - [% END %] - [% IF itemdamagedloop %] -
    17. - Damaged status: - [% IF ( CAN_user_circulate ) %] -
      - [% INCLUDE 'csrf-token.inc' %] - - - - + + + + + +
      + [% ELSE %] + [% FOREACH itemdamagedloo IN itemdamagedloop %] + [% IF ( itemdamagedloo.selected ) %] + [% itemdamagedloo.lib | html %] [% END %] - - - - - [% ELSE %] - [% FOREACH itemdamagedloo IN itemdamagedloop %] - [% IF ( itemdamagedloo.selected ) %] - [% itemdamagedloo.lib | html %] [% END %] [% END %] +
    18. + [% IF ITEM_DAT.damaged != "" && ITEM_DAT.damaged_on %] +
    19. Damaged on:[% ITEM_DAT.damaged_on | $KohaDates %]
    20. [% END %] - - [% IF ITEM_DAT.damaged != "" && ITEM_DAT.damaged_on %] -
    21. Damaged on:[% ITEM_DAT.damaged_on | $KohaDates %]
    22. [% END %] - [% END %] - [% IF itemwithdrawnloop %] -
    23. - Withdrawn status: - [% IF ( CAN_user_circulate ) %] -
      - [% INCLUDE 'csrf-token.inc' %] - - - - + + + + + +
      + [% ELSE %] + [% FOREACH itemwithdrawn IN itemwithdrawnloop %] + [% IF itemwithdrawn.authorised_value == ITEM_DAT.withdrawn %] + [% itemwithdrawn.lib | html %] [% END %] - - - - - [% ELSE %] - [% FOREACH itemwithdrawn IN itemwithdrawnloop %] - [% IF itemwithdrawn.authorised_value == ITEM_DAT.withdrawn %] - [% itemwithdrawn.lib | html %] [% END %] [% END %] +
    24. + [% IF ITEM_DAT.withdrawn != "" && ITEM_DAT.withdrawn_on %] +
    25. Withdrawn on:[% ITEM_DAT.withdrawn_on | $KohaDates %]
    26. [% END %] - - [% IF ITEM_DAT.withdrawn != "" && ITEM_DAT.withdrawn_on %] -
    27. Withdrawn on:[% ITEM_DAT.withdrawn_on | $KohaDates %]
    28. [% END %] - [% END %] -
    - +
+ +
+
- -
- + -
-

Priority

-
-
    -
  1. - Exclude from local holds priority: -
    - [% INCLUDE 'csrf-token.inc' %] - - - - - - -
    -
  2. -
  3. - Bookable: - [% IF ( CAN_user_circulate ) %] +
    +

    Priority

    +
    +
      +
    1. + Exclude from local holds priority:
      [% INCLUDE 'csrf-token.inc' %] - + [% IF ITEM_DAT.exclude_from_local_holds_priority %] + - [% ELSIF ITEM_DAT.bookable == 0 %] - - - [% ELSE %] - - + [% END %] - +
      - [% ELSE %] - [% IF ITEM_DAT.bookable == 1 %]Yes[% ELSIF ITEM_DAT.bookable == 0 %]No[% ELSE %]Follow item type[% END %] - [% END %] - Item type bookable: [% IF ITEM_DAT.effective_itemtype.bookable == 1 %]Yes[% ELSE %]No[% END %] -
    2. -
    - -
    - -
    - - -
    -

    History

    -
    -
      - [% IF ITEM_DAT.basketno %] -
    1. - Order date: - [% IF ( CAN_user_acquisition_order_manage ) %] - [% ITEM_DAT.orderdate | $KohaDates %] - [% ELSE %] - [% ITEM_DAT.orderdate | $KohaDates %] - [% END %] -
    2. -
    3. - Vendor: - [% ITEM_DAT.vendor | html %]
    4. - [% END %] - - [% IF ITEM_DAT.dateaccessioned %] -
    5. - Accession date: - [% IF ( CAN_user_acquisition_order_receive && ITEM_DAT.invoiceid ) %] - [% ITEM_DAT.dateaccessioned | $KohaDates %] +
    6. + Bookable: + [% IF ( CAN_user_circulate ) %] +
      + [% INCLUDE 'csrf-token.inc' %] + + + + + + +
      [% ELSE %] - [% ITEM_DAT.dateaccessioned | $KohaDates %] + [% IF ITEM_DAT.bookable == 1 %]Yes[% ELSIF ITEM_DAT.bookable == 0 %]No[% ELSE %]Follow item type[% END %] [% END %] + Item type bookable: [% IF ITEM_DAT.effective_itemtype.bookable == 1 %]Yes[% ELSE %]No[% END %]
    7. - [% END %] +
    + +
    + +
    + - [% IF ( ITEM_DAT.invoicenumber ) %] -
  4. - Invoice number: - [% ITEM_DAT.invoicenumber | html %] -
  5. - [% END %] +
    +

    History

    +
    +
      + [% IF ITEM_DAT.basketno %] +
    1. + Order date: + [% IF ( CAN_user_acquisition_order_manage ) %] + [% ITEM_DAT.orderdate | $KohaDates %] + [% ELSE %] + [% ITEM_DAT.orderdate | $KohaDates %] + [% END %] +
    2. +
    3. + Vendor: + [% ITEM_DAT.vendor | html %] +
    4. + [% END %] -
    5. - Total checkouts: - [% IF ( ITEM_DAT.issues ) %] - [% ITEM_DAT.issues | html %] - [% ELSE %] - 0 + [% IF ITEM_DAT.dateaccessioned %] +
    6. + Accession date: + [% IF ( CAN_user_acquisition_order_receive && ITEM_DAT.invoiceid ) %] + [% ITEM_DAT.dateaccessioned | $KohaDates %] + [% ELSE %] + [% ITEM_DAT.dateaccessioned | $KohaDates %] + [% END %] +
    7. [% END %] - (View item's checkout history) - -
    8. - Last seen: - [% IF ( ITEM_DAT.datelastseen ) %] - [% ITEM_DAT.datelastseen | $KohaDates with_hours => 1 %] + [% IF ( ITEM_DAT.invoicenumber ) %] +
    9. + Invoice number: + [% ITEM_DAT.invoicenumber | html %] +
    10. [% END %] - -
    11. - Last borrowed: - [% IF (ITEM_DAT.datelastborrowed ) %][% ITEM_DAT.datelastborrowed | $KohaDates %][% END %] -
    12. - [% IF Koha.Preference('StoreLastBorrower') && ITEM_DAT.object.last_returned_by %] - [% SET last_returned_by = ITEM_DAT.object.last_returned_by.cardnumber || ITEM_DAT.object.last_returned_by.borrowernumber %] -
    13. - Last returned by: - [% last_returned_by | html %] -
    14. - [% END %] - [% FOR i IN ITEM_DAT.old_issues %] - [% SET b = i.patron %] -
    15. - [% IF loop.first %] - Last borrower: + +
    16. + Total checkouts: + [% IF ( ITEM_DAT.issues ) %] + [% ITEM_DAT.issues | html %] [% ELSE %] - Previous borrower: + 0 [% END %] - [% SET last_or_previous_borrower = b.cardnumber || b.borrowernumber %] - [% last_or_previous_borrower | html %]  + (View item's checkout history)
    17. - [% END %] - [% IF ( ITEM_DAT.paidfor ) %] -
    18. - Paid for?: - [% INCLUDE 'patron-title.inc' patron=ITEM_DAT.paidfor.patron hide_patron_infos_if_needed=1 %] on [% ITEM_DAT.paidfor.created_on | $KohaDates %] -
    19. - [% END %] - [% IF ( ITEM_DAT.enumchron ) %] -
    20. - Serial enumeration: - [% ITEM_DAT.enumchron | html %]  +
    21. + Last seen: + [% IF ( ITEM_DAT.datelastseen ) %] + [% ITEM_DAT.datelastseen | $KohaDates with_hours => 1 %] + [% END %]
    22. - [% END %] - -
    23. - Public note: - [% IF ( CAN_user_editcatalogue_edit_items ) %] -
      - [% INCLUDE 'csrf-token.inc' %] - - - -
      - [% ELSE %] - [% ITEM_DAT.itemnotes | html %] +
    24. + Last borrowed: + [% IF (ITEM_DAT.datelastborrowed ) %][% ITEM_DAT.datelastborrowed | $KohaDates %][% END %] +
    25. + [% IF Koha.Preference('StoreLastBorrower') && ITEM_DAT.object.last_returned_by %] + [% SET last_returned_by = ITEM_DAT.object.last_returned_by.cardnumber || ITEM_DAT.object.last_returned_by.borrowernumber %] +
    26. + Last returned by: + [% last_returned_by | html %] +
    27. + [% END %] + [% FOR i IN ITEM_DAT.old_issues %] + [% SET b = i.patron %] +
    28. + [% IF loop.first %] + Last borrower: + [% ELSE %] + Previous borrower: + [% END %] + [% SET last_or_previous_borrower = b.cardnumber || b.borrowernumber %] + [% last_or_previous_borrower | html %]  +
    29. + [% END %] + [% IF ( ITEM_DAT.paidfor ) %] +
    30. + Paid for?: + [% INCLUDE 'patron-title.inc' patron=ITEM_DAT.paidfor.patron hide_patron_infos_if_needed=1 %] on [% ITEM_DAT.paidfor.created_on | $KohaDates %] +
    31. [% END %] - -
    32. - Non-public note: - [% IF ( CAN_user_editcatalogue_edit_items ) %] -
      - [% INCLUDE 'csrf-token.inc' %] - - - -
      - [% ELSE %] - [% ITEM_DAT.itemnotes_nonpublic | html %] + [% IF ( ITEM_DAT.enumchron ) %] +
    33. + Serial enumeration: + [% ITEM_DAT.enumchron | html %]  +
    34. [% END %] - -
    - + +
  6. + Public note: + [% IF ( CAN_user_editcatalogue_edit_items ) %] +
    + [% INCLUDE 'csrf-token.inc' %] + + + +
    + [% ELSE %] + [% ITEM_DAT.itemnotes | html %] + [% END %] +
  7. + +
  8. + Non-public note: + [% IF ( CAN_user_editcatalogue_edit_items ) %] +
    + [% INCLUDE 'csrf-token.inc' %] + + + +
    + [% ELSE %] + [% ITEM_DAT.itemnotes_nonpublic | html %] + [% END %] +
  9. +
+ +
+
- + - + - [% END # /FOREACH ITEM_DAT %] -- 2.48.1