From bacdd68fa5a33b3ca6403db4cb2e205a4653b045 Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Tue, 3 Jul 2018 19:09:13 +0000 Subject: [PATCH] Bug 21034: Re-indent circulation.tt This patch reindents the template for the checkout page, circulation.tt: - Trailing spaces removed - Indentation changed to a consistent 4 spaces - Markup indentation made more consistent To test, view the checkout page under various circumstances: - No card number submitted - Name submitted (patron search results) - Card number submitted - Restricted patron - Patron with circulation messages - On-site checkouts - Check all tabs: checkouts, relatives' checkouts holds, article requests, restrictions, clubs HTML validation before and after the patch should return the same results. Signed-off-by: Katrin Fischer Signed-off-by: Martin Renvoize --- .../prog/en/modules/circ/circulation.tt | 1755 +++++++++-------- 1 file changed, 888 insertions(+), 867 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt index a6e6ba00fa..f223a5a8f1 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt @@ -11,965 +11,982 @@ [% INCLUDE 'doc-head-open.inc' %] [% SET destination = "circ" %] Koha › Circulation -[% IF patron %] - › Checking out to [% INCLUDE 'patron-title.inc' invert_name = 1 no_html = 1 %] -[% END %] + [% IF patron %] + › Checking out to [% INCLUDE 'patron-title.inc' invert_name = 1 no_html = 1 %] + [% END %] [% INCLUDE 'doc-head-close.inc' %] [% Asset.css("css/datatables.css") %] + [% INCLUDE 'header.inc' %] + [% INCLUDE 'circ-search.inc' %] -[% INCLUDE 'header.inc' %] -[% INCLUDE 'circ-search.inc' %] - - -[% IF ( $borrowers ) %] -
- -
-
-
-[% ELSE %] -
- -
-
-
-[% END %] - -[% IF patron %] -[% INCLUDE 'members-toolbar.inc' %] -[% END %] - - -[% IF ( was_renewed ) %]
Patron's account has been renewed until [% expiry | $KohaDates %]
[% END %] - -[% IF autoswitched %] -
Patron was automatically switched by reading the patron card during checking out. Ensure you are working with the right patron.
-[% END %] - -[% IF additional_materials %] -
Note about the accompanying materials:
- [% additional_materials %] + -[% END %] -[% IF ( alert.ITEM_LOST ) %] -
This item has been lost with a status of "[% alert.ITEM_LOST %]".
-[% END %] - -[% IF ( alert.OTHER_CHARGES ) %] -
The patron has unpaid charges for holds, rentals etc of [% alert.OTHER_CHARGES %]
-[% END %] + [% IF ( $borrowers ) %] +
+
+
+
+ [% ELSE %] +
+
+
+
+ [% END %] -[% IF alert.HIGHHOLDS %] -
High demand item. Loan period was not shortened due to override. Shortened due date would have been [% alert.HIGHHOLDS.returndate %] ([% alert.HIGHHOLDS.duration %] days).
-[% END %] + [% IF patron %] + [% INCLUDE 'members-toolbar.inc' %] + [% END %] -[% IF ( nopermission ) %] -
Staff members are not allowed to discharge borrowers, nor borrowers to request a discharge.
-[% END %] + + [% IF ( was_renewed ) %] +
Patron's account has been renewed until [% expiry | $KohaDates %]
+ [% END %] -[% IF ( NEEDSCONFIRMATION ) %] -
+ [% IF autoswitched %] +
Patron was automatically switched by reading the patron card during checking out. Ensure you are working with the right patron.
+ [% END %] -
-[% IF CAN_user_circulate_force_checkout %] -

Please confirm checkout

-[% ELSE %] -

Cannot check out

-[% END %] + [% IF additional_materials %] +
+ Note about the accompanying materials:
+ [% additional_materials %] +
+ [% END %] -
    -[%IF ( AGE_RESTRICTION ) %] -
  • Age restriction [% AGE_RESTRICTION %]. - [% IF CAN_user_circulate_force_checkout %] - Check out anyway? - [% END %] -
  • -[% END %] + [% IF ( alert.ITEM_LOST ) %] +
    This item has been lost with a status of "[% alert.ITEM_LOST %]".
    + [% END %] -[% IF ( DEBT ) %] -
  • The patron has a debt of [% DEBT | $Price %].
  • -[% END %] + [% IF ( alert.OTHER_CHARGES ) %] +
    The patron has unpaid charges for holds, rentals etc of [% alert.OTHER_CHARGES %]
    + [% END %] -[% IF ( DEBT_GUARANTEES ) %] -
  • The patron's guarantees collectively have a debt of [% DEBT_GUARANTEES | $Price %].
  • -[% END %] + [% IF alert.HIGHHOLDS %] +
    High demand item. Loan period was not shortened due to override. Shortened due date would have been [% alert.HIGHHOLDS.returndate %] ([% alert.HIGHHOLDS.duration %] days).
    + [% END %] -[% IF ( RENTALCHARGE && RENTALCHARGE > 0 ) %] -
  • Rental charge for this item: [% RENTALCHARGE %]
  • -[% END %] + [% IF ( nopermission ) %] +
    Staff members are not allowed to discharge borrowers, nor borrowers to request a discharge.
    + [% END %] -[% IF ( RENEW_ISSUE ) %] -
  • Item [% getTitleMessageIteminfo %] ([% getBarcodeMessageIteminfo %]) is currently checked out to this patron. Renew?
  • -[% END %] + [% IF ( NEEDSCONFIRMATION ) %] +
    +
    + [% IF CAN_user_circulate_force_checkout %] +

    Please confirm checkout

    + [% ELSE %] +

    Cannot check out

    + [% END %] + +
      + [%IF ( AGE_RESTRICTION ) %] +
    • + Age restriction [% AGE_RESTRICTION %]. + [% IF CAN_user_circulate_force_checkout %] + Check out anyway? + [% END %] +
    • + [% END %] -[% IF ( RESERVE_WAITING ) %] -
    • Item [% getTitleMessageIteminfo %] ([% getBarcodeMessageIteminfo %]) has been waiting for [% resfirstname %] [% ressurname %] ([% rescardnumber %]) at [% Branches.GetName( resbranchcode ) %] since [% reswaitingdate | $KohaDates %]
    • -[% END %] + [% IF ( DEBT ) %] +
    • The patron has a debt of [% DEBT | $Price %].
    • + [% END %] -[% IF ( RESERVED ) %] -
    • Item [% getTitleMessageIteminfo %] ([% getBarcodeMessageIteminfo %]) has been on hold for [% resfirstname %] [% ressurname %] ([% rescardnumber %]) at [% Branches.GetName( resbranchcode ) %] since [% resreservedate | $KohaDates %]
    • -[% END %] + [% IF ( DEBT_GUARANTEES ) %] +
    • The patron's guarantees collectively have a debt of [% DEBT_GUARANTEES | $Price %].
    • + [% END %] -[% IF ( ISSUED_TO_ANOTHER ) %] -
    • Item [% getTitleMessageIteminfo %] ([% getBarcodeMessageIteminfo %]) is checked out to [% issued_firstname %] [% issued_surname %] ([% issued_cardnumber %]). - [% IF CAN_user_circulate_force_checkout %] - Check in and check out? - [% END %] -
    • -[% END %] + [% IF ( RENTALCHARGE && RENTALCHARGE > 0 ) %] +
    • Rental charge for this item: [% RENTALCHARGE %]
    • + [% END %] -[% IF TOO_MANY and TOO_MANY == 'TOO_MANY_CHECKOUTS' %] -
    • Too many checked out. [% current_loan_count %] checked out, only [% max_loans_allowed %] are allowed.
    • -[% END %] + [% IF ( RENEW_ISSUE ) %] +
    • Item [% getTitleMessageIteminfo %] ([% getBarcodeMessageIteminfo %]) is currently checked out to this patron. Renew?
    • + [% END %] -[% IF TOO_MANY and TOO_MANY == 'TOO_MANY_ONSITE_CHECKOUTS' %] -
    • Too many on-site checked out. [% current_loan_count %] on-site checked out, only [% max_loans_allowed %] are allowed.
    • -[% END %] + [% IF ( RESERVE_WAITING ) %] +
    • Item [% getTitleMessageIteminfo %] ([% getBarcodeMessageIteminfo %]) has been waiting for [% resfirstname %] [% ressurname %] ([% rescardnumber %]) at [% Branches.GetName( resbranchcode ) %] since [% reswaitingdate | $KohaDates %]
    • + [% END %] -[% IF ( BORRNOTSAMEBRANCH ) %] -
    • This patron is from a different library ([% Branches.GetName( BORRNOTSAMEBRANCH ) %])
    • -[% END %] + [% IF ( RESERVED ) %] +
    • Item [% getTitleMessageIteminfo %] ([% getBarcodeMessageIteminfo %]) has been on hold for [% resfirstname %] [% ressurname %] ([% rescardnumber %]) at [% Branches.GetName( resbranchcode ) %] since [% resreservedate | $KohaDates %]
    • + [% END %] -[% IF ( PATRON_CANT ) %] -
    • This patron can't check out this item per library circulation policy.
    • -[% END %] + [% IF ( ISSUED_TO_ANOTHER ) %] +
    • Item [% getTitleMessageIteminfo %] ([% getBarcodeMessageIteminfo %]) is checked out to [% issued_firstname %] [% issued_surname %] ([% issued_cardnumber %]). + [% IF CAN_user_circulate_force_checkout %] + Check in and check out? + [% END %] +
    • + [% END %] -[% IF ( TOO_MANY and TOO_MANY == 'NO_RULE_DEFINED' ) %] -
    • No circulation rule is defined for this patron and itemtype combination.
    • -[% END %] + [% IF TOO_MANY and TOO_MANY == 'TOO_MANY_CHECKOUTS' %] +
    • Too many checked out. [% current_loan_count %] checked out, only [% max_loans_allowed %] are allowed.
    • + [% END %] -[% IF ( NOT_FOR_LOAN_FORCING ) %] -
    • - [% IF ( itemtype_notforloan ) %] - Item type is normally not for loan. - [% ELSIF ( item_notforloan ) %] - [% item_notforloan_lib = AuthorisedValues.GetByCode( authvalcode_notforloan, item_notforloan, 0 ) %] - Item is normally not for loan [% IF (item_notforloan_lib) %]([% item_notforloan_lib %])[% END %]. - [% END %] - [% IF CAN_user_circulate_force_checkout %] - Check out anyway? - [% END %] -
    • -[% END %] + [% IF TOO_MANY and TOO_MANY == 'TOO_MANY_ONSITE_CHECKOUTS' %] +
    • Too many on-site checked out. [% current_loan_count %] on-site checked out, only [% max_loans_allowed %] are allowed.
    • + [% END %] -[% IF ( USERBLOCKEDOVERDUE ) %] -
    • Patron has [% USERBLOCKEDOVERDUE %] overdue item(s). - [% IF CAN_user_circulate_force_checkout %] - Check out anyway? - [% END %] -
    • -[% END %] + [% IF ( BORRNOTSAMEBRANCH ) %] +
    • This patron is from a different library ([% Branches.GetName( BORRNOTSAMEBRANCH ) %])
    • + [% END %] -[% IF ( ITEM_LOST ) %] -
    • This item has been lost with a status of "[% ITEM_LOST %]". - [% IF CAN_user_circulate_force_checkout %] - Check out anyway? - [% END %] -
    • -[% END %] + [% IF ( PATRON_CANT ) %] +
    • This patron can't check out this item per library circulation policy.
    • + [% END %] -[% IF HIGHHOLDS %] -
    • High demand item. Loan period shortened to [% HIGHHOLDS.duration %] days (due [% HIGHHOLDS.returndate %]). Check out anyway?
    • -[% END %] + [% IF ( TOO_MANY and TOO_MANY == 'NO_RULE_DEFINED' ) %] +
    • No circulation rule is defined for this patron and itemtype combination.
    • + [% END %] -[% IF PREVISSUE %] -
    • Patron has previously checked out this title: [% biblio.title %] [% IF biblio.author %] by [% biblio.author %][% END %]. Check out anyway?
    • -[% END %] + [% IF ( NOT_FOR_LOAN_FORCING ) %] +
    • + [% IF ( itemtype_notforloan ) %] + Item type is normally not for loan. + [% ELSIF ( item_notforloan ) %] + [% item_notforloan_lib = AuthorisedValues.GetByCode( authvalcode_notforloan, item_notforloan, 0 ) %] + Item is normally not for loan [% IF (item_notforloan_lib) %]([% item_notforloan_lib %])[% END %]. + [% END %] + [% IF CAN_user_circulate_force_checkout %] + Check out anyway? + [% END %] +
    • + [% END %] -[% IF BIBLIO_ALREADY_ISSUED %] -
    • - Patron has already checked out another item from this record. - [% IF CAN_user_circulate_force_checkout %] - Check out anyway? - [% END %] -
    • -[% END %] -
    + [% IF ( USERBLOCKEDOVERDUE ) %] +
  • Patron has [% USERBLOCKEDOVERDUE %] overdue item(s). + [% IF CAN_user_circulate_force_checkout %] + Check out anyway? + [% END %] +
  • + [% END %] -[% IF CAN_user_circulate_force_checkout or HIGHHOLDS %] -
    - + [% IF ( ITEM_LOST ) %] +
  • This item has been lost with a status of "[% ITEM_LOST %]". + [% IF CAN_user_circulate_force_checkout %] + Check out anyway? + [% END %] +
  • + [% END %] -[% IF (forceallow) %][% END %] + [% IF HIGHHOLDS %] +
  • High demand item. Loan period shortened to [% HIGHHOLDS.duration %] days (due [% HIGHHOLDS.returndate %]). Check out anyway?
  • + [% END %] -[% IF HIGHHOLDS %] -

    - - -

    -[% END %] + [% IF PREVISSUE %] +
  • Patron has previously checked out this title: [% biblio.title %] [% IF biblio.author %] by [% biblio.author %][% END %]. Check out anyway?
  • + [% END %] -[% IF ( RESERVED ) %] -

    - - -

    -[% END %] + [% IF BIBLIO_ALREADY_ISSUED %] +
  • + Patron has already checked out another item from this record. + [% IF CAN_user_circulate_force_checkout %] + Check out anyway? + [% END %] +
  • + [% END %] +
+ + [% IF CAN_user_circulate_force_checkout or HIGHHOLDS %] + + + [% IF (forceallow) %] + + [% END %] + + [% IF HIGHHOLDS %] +

+ + +

+ [% END %] + + [% IF ( RESERVED ) %] +

+ + +

+ [% END %] + + [% IF ( RESERVE_WAITING ) %] +

+ +
+ + +

+ [% END %] + + + + + + [% IF ( DEBT ) %][% END %] + + [% IF ( INVALID_DATE ) %] +

+ + +

+ [% ELSE %] + + [% END %] + + + + [% IF ( RENEW_ISSUE ) %] + + [% ELSE %] + + [% END %] + + + + [% END # /IF CAN_user_circulate_force_checkout or HIGHHOLDS %] + + [% IF ( RESERVED ) %] +
+ + + + + +
+ [% END %] + + [% IF ( RESERVE_WAITING ) %] +
+ + + + + +
+ [% END %] + +
+ [% IF (forceallow) %][% END %] + + + + + [% IF CAN_user_circulate_force_checkout or HIGHHOLDS %] + [% IF ( RENEW_ISSUE ) %] + + [% ELSE %] + + [% END %] + [% ELSE %] + + [% END %] +
-[% IF ( RESERVE_WAITING ) %] -

- -
- - -

-[% END %] + [% IF ( RESERVED || ISSUED_TO_ANOTHER ) && (CAN_user_reserveforothers_place_holds ) %] + [% UNLESS noissues %] + + [% END %] + [% END %] +
[% # /circ_needsconfirmation %] +
[% # /.yui-g %] + [% END # /IF NEEDSCONFIRMATION %] + + [% IF ( IMPOSSIBLE ) %] +
+
+ [% IF ( UNKNOWN_BARCODE ) %] +

Barcode not found

+ [% END %] + +
    + [% IF ( STATS ) %] +
  • Local use recorded
  • + [% END %] - - - - - [% IF ( DEBT ) %][% END %] - [% IF ( INVALID_DATE ) %] -

    - - -

    - [% ELSE %] - - [% END %] - - - [% IF ( RENEW_ISSUE ) %] - - [% ELSE %] - - [% END %] - - - -[% END %] + [% IF ( INVALID_DATE ) %] +
  • The due date "[% INVALID_DATE %]" is invalid
  • + [% END %] -[% IF ( RESERVED ) %] -
    - - - - - -
    -[% END %] + [% IF ( UNKNOWN_BARCODE ) %] +
  • The barcode was not found: [% barcode |html %] +
    + [% IF ( FALLBACK ) %] + [% IF options %] + + [% ELSE %] +
    No items were found by searching.
    + [% END %] + [% END %] -[% IF ( RESERVE_WAITING ) %] -
    - - - - - -
    -[% END %] + [% IF ( fast_cataloging ) %] + [% IF ( CAN_user_editcatalogue_fast_cataloging ) %] + Add record using fast cataloging + [% END %] + [% END %] +
    +
  • + [% END %] -
    - [% IF (forceallow) %][% END %] - - - - - [% IF CAN_user_circulate_force_checkout or HIGHHOLDS %] - [% IF ( RENEW_ISSUE ) %] - - [% ELSE %] - - [% END %] - [% ELSE %] - - [% END %] -
    + [% IF ( NOT_FOR_LOAN ) %] +
  • + [% IF ( itemtype_notforloan ) %] + Item type not for loan. + [% ELSIF ( item_notforloan ) %] + [% item_notforloan_lib = AuthorisedValues.GetByCode( authvalcode_notforloan, item_notforloan, 0 ) %] + Item not for loan [% IF (item_notforloan_lib) %]([% item_notforloan_lib %])[% END %]. + [% END %] +
  • + [% END %] -[% IF ( RESERVED || ISSUED_TO_ANOTHER ) && (CAN_user_reserveforothers_place_holds ) %] - [% UNLESS noissues %] - - [% END %] -[% END %] -
-[% END %] + [% IF ( WTHDRAWN ) %] +
  • Item has been withdrawn
  • + [% END %] - [% IF ( IMPOSSIBLE ) %] + [% IF ( RESTRICTED ) %] +
  • Item is restricted
  • + [% END %] -
    -
    - [% IF ( UNKNOWN_BARCODE ) %] -

    Barcode not found

    - [% END %] - -
      - [% IF ( STATS ) %] -
    • Local use recorded
    • - [% END %] + [% IF ( GNA ) %] +
    • Patron's address is in doubt
    • + [% END %] - [% IF ( INVALID_DATE ) %] -
    • The due date "[% INVALID_DATE %]" is invalid
    • - [% END %] + [% IF ( CARD_LOST ) %] +
    • Patron's card is lost
    • + [% END %] - [% IF ( UNKNOWN_BARCODE ) %] -
    • The barcode was not found: [% barcode |html %] + [% IF ( DEBARRED ) %] +
    • Patron is restricted
    • + [% END %] -
      - [% IF ( FALLBACK ) %] - [% IF options %] - - [% ELSE %] -
      No items were found by searching.
      - [% END %] - [% END %] + [% IF ( NO_MORE_RENEWALS ) %] +
    • No more renewals possible
    • + [% END %] - [% IF ( fast_cataloging ) %] - [% IF ( CAN_user_editcatalogue_fast_cataloging ) %] - Add record using fast cataloging - [% END %] - [% END %] -
      + [% IF NO_RENEWAL_FOR_ONSITE_CHECKOUTS %] +
    • This item can not be renewed, it's an on-site checkout
    • + [% END %] - - [% END %] + [%IF ( AGE_RESTRICTION ) %] +
    • Age restriction [% AGE_RESTRICTION %].
    • + [% END %] - [% IF ( NOT_FOR_LOAN ) %] -
    • - [% IF ( itemtype_notforloan ) %] - Item type not for loan. - [% ELSIF ( item_notforloan ) %] - [% item_notforloan_lib = AuthorisedValues.GetByCode( authvalcode_notforloan, item_notforloan, 0 ) %] - Item not for loan [% IF (item_notforloan_lib) %]([% item_notforloan_lib %])[% END %]. - [% END %] -
    • - [% END %] + [% IF ( EXPIRED ) %] +
    • Patron's card is expired
    • + [% END %] - [% IF ( WTHDRAWN ) %] -
    • Item has been withdrawn
    • - [% END %] + [% IF ( TOO_MANY ) %] +
    • Too many checked out. [% current_loan_count %] checked out, only [% max_loans_allowed %] are allowed.
    • + [% END %] - [% IF ( RESTRICTED ) %] -
    • Item is restricted
    • - [% END %] + [% IF ( ITEMNOTSAMEBRANCH ) %] +
    • This item belongs to [% Branches.GetName( itemhomebranch ) %] and cannot be checked out from this location.
    • + [% END %] - [% IF ( GNA ) %] -
    • Patron's address is in doubt
    • - [% END %] + [% IF RETURN_IMPOSSIBLE %] +
    • This item must be returned to [% Branches.GetName( branch_to_return ) %].
    • + [% END %] - [% IF ( CARD_LOST ) %] -
    • Patron's card is lost
    • - [% END %] + [% IF ( USERBLOCKEDWITHENDDATE ) %] +
    • Patron has a restriction until [% USERBLOCKEDWITHENDDATE | $KohaDates %].
    • + [% END %] - [% IF ( DEBARRED ) %] -
    • Patron is restricted
    • - [% END %] + [% IF ( USERBLOCKEDNOENDDATE ) %] +
    • Patron has an indefinite restriction.
    • + [% END %] - [% IF ( NO_MORE_RENEWALS ) %] -
    • No more renewals possible
    • - [% END %] + [% IF ( USERBLOCKEDOVERDUE ) %] +
    • Checkouts are BLOCKED because patron has overdue items.
    • + [% END %] - [% IF NO_RENEWAL_FOR_ONSITE_CHECKOUTS %] -
    • This item can not be renewed, it's an on-site checkout
    • - [% END %] + [% IF (forceallow) %] +
    • Restriction overridden temporarily.
    • + [% END %] +
    +
    [% # /IF circ_impossible %] +
    [% # /.yui-g %] + + [% IF ( FALLBACK ) %] + [% IF options %] + + + + [% END # /IF options %] + [% END # /IF FALLBACK %] + + [% ELSE # IMPOSSIBLE %] + [% IF (forceallow) %] +
    Restriction overridden temporarily
    + [% END %] + [% END # /IF IMPOSSIBLE %] - [%IF ( AGE_RESTRICTION ) %] -
  • Age restriction [% AGE_RESTRICTION %].
  • - [% END %] + - [% IF ( EXPIRED ) %] -
  • Patron's card is expired
  • - [% END %] + [% IF ( issued ) %] +

    Item checked out

    + [% END %] - [% IF ( TOO_MANY ) %] -
  • Too many checked out. [% current_loan_count %] checked out, only [% max_loans_allowed %] are allowed.
  • - [% END %] + [% IF ( message ) %] + [% INCLUDE 'patron-toolbar.inc' %] +

    No patron matched [% message | html %]

    + [% END %] - [% IF ( ITEMNOTSAMEBRANCH ) %] -
  • This item belongs to [% Branches.GetName( itemhomebranch ) %] and cannot be checked out from this location.
  • - [% END %] + [% IF ( borrowers ) %] + [% INCLUDE 'patron-toolbar.inc' %] - [% IF RETURN_IMPOSSIBLE %] -
  • This item must be returned to [% Branches.GetName( branch_to_return ) %].
  • - [% END %] +
    + [% INCLUDE 'circ-patron-search-results.inc' destination = "circ" %] +
    + [% ELSE %] - [% IF ( USERBLOCKEDWITHENDDATE ) %] -
  • Patron has a restriction until [% USERBLOCKEDWITHENDDATE | $KohaDates %].
  • - [% END %] + - [% IF ( USERBLOCKEDNOENDDATE ) %] -
  • Patron has an indefinite restriction.
  • - [% END %] + [% IF patron %] +
    - [% IF ( USERBLOCKEDOVERDUE ) %] -
  • Checkouts are BLOCKED because patron has overdue items.
  • - [% END %] - + [% IF privacy == 2 AND NOT Koha.Preference('AnonymousPatron') %] +
    Error: This patron has requested their circulation history be anonymized on check-in, but the AnonymousPatron system preference is empty or incorrect.
    + [% END %] - [% IF (forceallow) %] -
  • Restriction overridden temporarily.
  • - [% END %] + [% IF ( !noissues ) || ( Koha.Preference('OnSiteCheckouts') && Koha.Preference('OnSiteCheckoutsForce') )%] +
    + +
    + + + [% IF ( issue ) %] +
    + [% ELSE %] +
    + [% END %] + + [% IF ( DisplayClearScreenButton ) %] + x + [% END %] + + [% IF (forceallow) %][% END %] + + + [% IF Koha.Preference('itemBarcodeFallbackSearch') %] +
    Enter item barcode or keyword:
    + [% ELSE %] +
    Enter item barcode:
    + [% END %] + + [% IF NEEDSCONFIRMATION %] + + [% ELSE %] + + [% END %] + + + + +
    + + [% UNLESS ( noissues && Koha.Preference('OnSiteCheckoutsForce') ) %] + [% IF ( SpecifyDueDate ) %] +
    +
    Specify due date [% INCLUDE 'date-format.inc' %]:
    + [% IF ( duedatespec ) %] + + [% ELSE %] + + [% END %] + + [% IF ( stickyduedate ) %] + + [% ELSE %] + + [% END %] + +
    + [% END # /IF SpecifyDueDate %] + [% END # /IF noissues && OnSiteCheckoutsForce %] + + [% UNLESS ( noissues ) %] +
    + [% IF NEEDSCONFIRMATION %] + + [% ELSE %] + + [% END %] + + +
    + [% IF Koha.Preference('decreaseLoanHighHolds') %] +
    + [% IF NEEDSCONFIRMATION %] + [% IF override_high_holds %] + + [% ELSE %] + + [% END %] + [% ELSE %] + [% IF override_high_holds %] + + [% ELSE %] + + [% END %] + [% END %] + +
    + [% END # /IF decreaseLoanHighHolds %] + [% END # /UNLESS noissues %] + + [% IF Koha.Preference('OnSiteCheckouts') %] +
    + [% IF noissues %] +
    + + + +
    + [% ELSE %] + + + [% END %] +
    + [% END # /IF OnSiteCheckouts%] +
    [% # /.checkout-settings %] + + + + + + [% IF ( CHARGES ) %] + + [% END %] +
    [% # /#circ_circulation_issue %] + + [% IF ( issue ) %] +
    +

    Checked out: [% issue.item.biblioitemnumber.biblionumber.title %] ([% issue.item.barcode %]). Due on [% issue.date_due | $KohaDates %]

    +
    + [% END %] + [% # / #mainform %] +
    [% # /.yui-u.first %] + + [% END %] [% # /IF !noissues || ( OnSiteCheckouts && OnSiteCheckoutsForce ) %] + + [% IF ( noissues ) %] + [% IF ( Koha.Preference('OnSiteCheckouts') && Koha.Preference('OnSiteCheckoutsForce') ) %] +
    + [% ELSE %] +
    + [% END %] + [% ELSE %] +
    + [% END %] -
    - - [% IF ( FALLBACK ) %] - [% IF options %] - - - - [% END %] - [% END %] - -[% ELSE %] - [% IF (forceallow) %] -
    Restriction overridden temporarily
    - [% END %] -[% END %] - - - -[% IF ( issued ) %] -

    Item checked out

    -[% END %] - -[% IF ( message ) %] -[% INCLUDE 'patron-toolbar.inc' %] -

    -No patron matched [% message | html %] -

    -[% END %] -[% IF ( borrowers ) %] -[% INCLUDE 'patron-toolbar.inc' %] + [% IF ( warndeparture ) %] +
  • + Expiration: Patron's card will expire soon. + Patron's card expires on [% expiry | $KohaDates %] Renew or Edit details +
  • + [% END %] -
    - [% INCLUDE 'circ-patron-search-results.inc' destination = "circ" %] -
    -[% ELSE %] + [% IF ( returnbeforeexpiry ) %] +
  • + Set due date to expiry: + You have the ReturnBeforeExpiry system preference enabled this means if the expiry date is before the date due, the date due will be set to the expiry date +
  • + [% END %] - + [% IF ( expired ) %] +
  • + Expiration: Patron's card has expired. + [% IF ( expiry ) %] + Patron's card expired on [% expiry | $KohaDates %] + [% END %] + Renew or Edit details +
  • + [% END %] -[% IF patron %] -
    + [% IF ( gna ) %] +
  • Address: Patron's address in doubt
  • + [% END %] -[% IF privacy == 2 AND NOT Koha.Preference('AnonymousPatron') %] -
    Error: This patron has requested their circulation history be anonymized on check-in, but the AnonymousPatron system preference is empty or incorrect.
    -[% END %] + [% IF ( lost ) %] +
  • Lost: Patron's card is lost
  • + [% END %] -[% IF ( !noissues ) || ( Koha.Preference('OnSiteCheckouts') && Koha.Preference('OnSiteCheckoutsForce') )%] -
    + [% IF ( userdebarred ) %] +
  • + Restricted: Patron's account is restricted + + [% IF ( userdebarreddate ) %] + until [% userdebarreddate | $KohaDates %] + [% END %] + + [% IF ( debarredcomment ) %] + with the explanation:
    + [% IF debarredcomment.search('OVERDUES_PROCESS') %] + Restriction added by overdues process [% debarredcomment.remove('OVERDUES_PROCESS ') | html_line_break %] + [% ELSE %] + [% debarredcomment | html_line_break %] + [% END %] + + [% END %] +
    + View restrictions + + [% IF (noissues && patron && CAN_user_circulate_force_checkout) %] + + Override restriction temporarily + + [% END %] +
  • + [% END # /IF userdebarred %] + + [% IF ( odues ) %] +
  • + Overdues: Patron has ITEMS OVERDUE. + See highlighted items below +
  • + [% END %] -
    - -[% IF ( issue ) %] -
    -[% ELSE %] -
    -[% END %] - [% IF ( DisplayClearScreenButton ) %] - x - [% END %] + [% IF ( charges ) %] + [% INCLUDE 'blocked-fines.inc' fines = chargesamount %] + [% END %] - [% IF (forceallow) %][% END %] + [% IF ( charges_guarantees ) %] +
  • + Fees & Charges: Patron's guarantees collectively owe [% chargesamount_guarantees | $Price %]. + [% IF noissues %] + Checkouts are BLOCKED because fine balance is OVER THE LIMIT. + [% END %] +
  • + [% END %] - + [% IF ( credits ) %] +
  • + Credits: Patron has a credit[% IF ( creditsamount ) %] of [% creditsamount | $Price %][% END %] +
  • + [% END %] - [% IF Koha.Preference('itemBarcodeFallbackSearch') %] -
    Enter item barcode or keyword:
    - [% ELSE %] -
    Enter item barcode:
    - [% END %] + +
    [% # /.yui-u %] + + [% IF WaitingHolds.count %] +
    +

    Holds waiting:

    + [% FOREACH w IN WaitingHolds %] +
      +
    • + [% w.biblio.title | html %] + ([% ItemTypes.GetDescription( w.item.effective_itemtype ) %]), + [% IF ( w.biblio.author ) %] by [% w.biblio.author | html %] [% END %] + [% IF ( w.item.itemcallnumber ) %] [[% w.item.itemcallnumber %]] [% END %] + Hold placed on [% w.reservedate | $KohaDates %]. + +
      + [% IF ( w.branch.branchcode == Branches.GetLoggedInBranchcode() ) %] + + [% ELSE %] + + [% END %] + [% SET expires_on = w.expirationdate %] + Waiting at [% w.branch.branchname | html %] [% IF expires_on %] until [% expires_on | $KohaDates %] [% END %] + +
    • +
    + [% END %] +
    [% # /#holdswaiting %] + [% END # /IF WaitingHolds.count %] + + [% IF ( notes ) %] +
    +

    Notes:

    +

    [% notesmsg %]

    +
    + [% END %] - [% IF NEEDSCONFIRMATION %] - - [% ELSE %] - - [% END %] - +
    +

    Messages:

    +
      + [% FOREACH message IN messages %] +
    • + [% IF(message.message_type == "L") %] + + [% ELSE %] + + [% END %] + [% message.message_date | $KohaDates %] + [% Branches.GetName( message.branchcode ) %] + [% IF message.manager_id %] + ( [% message.get_column('manager_firstname') %] [% message.get_column('manager_surname') %] ) + [% END %] + "[% message.message | html %]" + + [% IF message.branchcode == branch OR Koha.Preference('AllowAllMessageDeletion') %] + Delete + [% END %] +
    • + [% END %] +
    + Add a new message +
    [% # /#messages %] + +
    [% # /.yui-u %] +
    [% # /.yui-g%] + +
    +
    + [% # /#patronlists-tabs %] + + [% # CURRENT CHECKOUTS %] + [% INCLUDE "checkouts-table.inc" %] + + [% IF ( relatives_issues_count ) %] +
    + + + + + + + + + + + + + + + + + +
    Due date (unformatted, hidden)Due dateTitleItem typeLocationChecked out onChecked out fromCall noChargeFinePricePatron
    +
    + [% END %] + + [% # CLUBS %] + [% IF CAN_user_clubs && ( enrollable.count || enrollments.count ) %] +
    + Loading... +
    + [% END %] + + [% # RESTRICTIONS %] + [% INCLUDE borrower_debarments.inc %] + + [% # HOLDS %] +
    + [% IF ( holds_count ) %] + + + + + + + + + + + + + + + + +
    Hold dateTitleCall numberBarcodePickup atExpirationPriorityCancel?Suspend?
    + +
    + +
    + + + [% IF Koha.Preference('SuspendHoldsIntranet') %] +
    +
    + + + - [% UNLESS ( noissues ) %] -
    - [% IF NEEDSCONFIRMATION %] - - [% ELSE %] - - [% END %] + [% IF Koha.Preference('AutoResumeSuspendedHolds') %] + + + Specify date on which to resume [% INCLUDE 'date-format.inc' %]: + [% END %] + +
    - -
    - [% IF Koha.Preference('decreaseLoanHighHolds') %] -
    - [% IF NEEDSCONFIRMATION %] - [% IF override_high_holds %] - - [% ELSE %] - - [% END %] - [% ELSE %] - [% IF override_high_holds %] - - [% ELSE %] - +
    +
    + + + + +
    +
    + [% END # IF SuspendHoldsIntranet %] + + [% ELSE %] +

    Patron has nothing on hold.

    + [% END # /#IF holds_count %] +
    [% # /#reserves %] + + [% # ARTICLE REQUESTS %] + [% IF Koha.Preference('ArticleRequests') %] + [% INCLUDE 'patron-article-requests.inc' %] + [% END %] + + [% ELSIF borrowernumber %] +
    This patron does not exist. Find another patron?
    + [% END %] +
    [% # /#patronlists %] +
    [% # /.yui-g %] + [% END # /IF patron %] + + [% IF Koha.Preference('CircSidebar') %] + [% UNLESS ( borrowers ) %] + [% IF not( borrowernumber and patron ) %] +
    + [% INCLUDE 'circ-nav.inc' %] +
    + [% END %] [% END %] [% END %] - -
    - [% END %] - [% END %] - - [% IF Koha.Preference('OnSiteCheckouts') %] -
    - [% IF noissues %] -
    - - - +
    [% # /#yui-main %] +
    [% # /.bd %] + [% UNLESS ( borrowers ) %] + [% IF borrowernumber and patron %] +
    + [% INCLUDE 'circ-menu.inc' %]
    - [% ELSE %] - [% END %] -
    - [% END %] - -
    - - - - - - [% IF ( CHARGES ) %] - - [% END %] - -[% IF ( issue ) %] -
    -

    Checked out: [% issue.item.biblioitemnumber.biblionumber.title %] ([% issue.item.barcode %]). Due on [% issue.date_due | $KohaDates %]

    -
    -[% END %] -
    - -[% END %] - -[% IF ( noissues ) %] - [% IF ( Koha.Preference('OnSiteCheckouts') && Koha.Preference('OnSiteCheckoutsForce') ) %] -
    - [% ELSE %] -
    - [% END %] -[% ELSE %] -
    -[% END %] - - [% IF ( noissues ) %] - [% IF ( Koha.Preference('OnSiteCheckouts') && Koha.Preference('OnSiteCheckoutsForce') ) %] -
    - [% ELSE %] -

    Checking out to [% INCLUDE 'patron-title.inc' %]

    -
    [% END %] -

    - Cannot check out! - [% IF ( Koha.Preference('OnSiteCheckouts') && Koha.Preference('OnSiteCheckoutsForce') ) %] - Only on-site checkouts are allowed - [% END %] -

    - [% ELSE %] -
    -

    Attention:

    - [% END %] - -
      - - [% IF ( has_modifications ) %] -
    • Pending modifications: Patron has pending modifications. - [% IF CAN_user_borrowers_edit_borrowers && ( !Koha.Preference('IndependentBranchesPatronModifications') || borrower.branch == branch ) %] - View all pending patron modifications - [% END %] -
    • - [% END %] - - [% IF ( warndeparture ) %] -
    • Expiration: Patron's card will expire soon. - Patron's card expires on [% expiry | $KohaDates %] Renew or Edit Details - -
    • - [% END %] - - [% IF ( returnbeforeexpiry ) %] -
    • Set due date to expiry: You have the ReturnBeforeExpiry system preference enabled this means if the - expiry date is before the date due, the date due will be set to the expiry date -
    • - [% END %] - - [% IF ( expired ) %] -
    • Expiration: Patron's card has expired. - [% IF ( expiry ) %]Patron's card expired on [% expiry | $KohaDates %][% END %] Renew or Edit Details - -
    • - [% END %] - - [% IF ( gna ) %] -
    • Address: Patron's address in doubt
    • - [% END %] - - [% IF ( lost ) %] -
    • Lost: Patron's card is lost
    • - [% END %] - - [% IF ( userdebarred ) %] -
    • - Restricted: Patron's account is restricted - - [% IF ( userdebarreddate ) %] - until [% userdebarreddate | $KohaDates %] - [% END %] - - [% IF ( debarredcomment ) %] - with the explanation:
      - [% IF debarredcomment.search('OVERDUES_PROCESS') %] - Restriction added by overdues process [% debarredcomment.remove('OVERDUES_PROCESS ') | html_line_break %] - [% ELSE %] - [% debarredcomment | html_line_break %] - [% END %] - - [% END %] -
      - View restrictions - [% IF (noissues && patron && CAN_user_circulate_force_checkout) %] - - Override restriction temporarily - - [% END %] -
    • - [% END %] - - [% IF ( odues ) %]
    • Overdues: Patron has ITEMS OVERDUE. See highlighted items below
    • - [% END %] - - [% IF ( charges ) %] - [% INCLUDE 'blocked-fines.inc' fines = chargesamount %] - [% END %] - - [% IF ( charges_guarantees ) %] -
    • - Fees & Charges: Patron's guarantees collectively owe [% chargesamount_guarantees | $Price %]. - [% IF noissues %] - Checkouts are BLOCKED because fine balance is OVER THE LIMIT. - [% END %] -
    • - [% END %] - - - [% IF ( credits ) %] -
    • - Credits: Patron has a credit[% IF ( creditsamount ) %] of [% creditsamount | $Price %][% END %] -
    • - [% END %] - -
    - [% IF WaitingHolds.count %] -
    -

    Holds waiting:

    - [% FOREACH w IN WaitingHolds %] -
      -
    • - [% w.biblio.title | html %] - ([% ItemTypes.GetDescription( w.item.effective_itemtype ) %]), - [% IF ( w.biblio.author ) %] by [% w.biblio.author | html %] [% END %] - [% IF ( w.item.itemcallnumber ) %] [[% w.item.itemcallnumber %]] [% END %] - Hold placed on [% w.reservedate | $KohaDates %]. - -
      - [% IF ( w.branch.branchcode == Branches.GetLoggedInBranchcode() ) %][% ELSE %][% END %] - [% SET expires_on = w.expirationdate %] - Waiting at [% w.branch.branchname | html %] [% IF expires_on %] until [% expires_on | $KohaDates %] [% END %] - -
    • -
    - [% END %] + + - -
    - - - - - -[% INCLUDE "checkouts-table.inc" %] - -[% IF ( relatives_issues_count ) %] -
    - - - - - - - - - - - - - - - - - -
    Due date (unformatted, hidden)Due dateTitleItem typeLocationChecked out onChecked out fromCall noChargeFinePricePatron
    -
    -[% END %] - -[% IF CAN_user_clubs && ( enrollable.count || enrollments.count ) %] -
    - Loading... -
    -[% END %] - -[% INCLUDE borrower_debarments.inc %] - -
    -[% IF ( holds_count ) %] -
    - - - - - - - - - - - - - - - -
    Hold dateTitleCall numberBarcodePickup atExpirationPriorityCancel?Suspend?
    - -
    - -
    -
    - - [% IF Koha.Preference('SuspendHoldsIntranet') %] -
    -
    - - - - - [% IF Koha.Preference('AutoResumeSuspendedHolds') %] - - - Specify date on which to resume [% INCLUDE 'date-format.inc' %]: - [% END %] -
    -
    - -
    -
    - - - - -
    -
    - [% END # IF SuspendHoldsIntranet %] - -[% ELSE %] -

    Patron has nothing on hold.

    -[% END %] -
    - -[% IF Koha.Preference('ArticleRequests') %] - [% INCLUDE 'patron-article-requests.inc' %] -[% END %] - -[% ELSIF borrowernumber %] -
    This patron does not exist. Find another patron?
    -[% END %] -
    -[% END %] -[% IF Koha.Preference('CircSidebar') %] -[% UNLESS ( borrowers ) %] - [% IF not( borrowernumber and patron ) %] -
    - [% INCLUDE 'circ-nav.inc' %] -
    - [% END %] -[% END %] -[% END %] -
    -
    -[% UNLESS ( borrowers ) %] - [% IF borrowernumber and patron %] -
    - [% INCLUDE 'circ-menu.inc' %] +
    - [% END %] -[% END %] -
    - - [% MACRO jsinclude BLOCK %] [% INCLUDE 'strings.inc' %] @@ -1022,7 +1039,11 @@ No patron matched [% message | html %] $.removeCookie("holdfor", { path: '/' }); [% END %] - [% UNLESS ( patron.borrowernumber ) %][% UNLESS ( borrowers ) %]window.onload=function(){ $('#findborrower').focus(); };[% END %][% END %] + [% UNLESS ( patron.borrowernumber ) %] + [% UNLESS ( borrowers ) %] + window.onload=function(){ $('#findborrower').focus(); }; + [% END %] + [% END %] // On-site checkout function toggle_onsite_checkout(){ -- 2.18.0