From d21cf06807d0f4adb2f9a6eac324a7d33c10da04 Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Thu, 24 Jan 2019 16:49:38 +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. --- .../prog/en/modules/circ/circulation.tt | 1726 ++++++++++---------- 1 file changed, 873 insertions(+), 853 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 3c5a777..e49e35a 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt @@ -12,411 +12,424 @@ [% 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") | $raw %] - -[% 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 | html %] + [% INCLUDE 'header.inc' %] + [% INCLUDE 'circ-search.inc' %] + -[% END %] - -[% IF ( alert.ITEM_LOST ) %] -
This item has been lost with a status of "[% alert.ITEM_LOST | html %]".
-[% END %] - -[% IF ( alert.OTHER_CHARGES ) %] -
The patron has unpaid charges for holds, rentals etc of [% alert.OTHER_CHARGES | html %]
-[% END %] - -[% IF alert.HIGHHOLDS %] -
High demand item. Loan period was not shortened due to override. Shortened due date would have been [% alert.HIGHHOLDS.returndate | $KohaDates %] ([% alert.HIGHHOLDS.duration | html %] days).
-[% END %] - -[% IF ( nopermission ) %] -
Staff members are not allowed to discharge borrowers, nor borrowers to request a discharge.
-[% END %] - -[% IF ( NEEDSCONFIRMATION ) %] -
- -
-[% IF CAN_user_circulate_force_checkout %] -

Please confirm checkout

-[% ELSE %] -

Cannot check out

-[% END %] - -
    -[%IF ( AGE_RESTRICTION ) %] -
  • Age restriction [% AGE_RESTRICTION | html %]. - [% IF CAN_user_circulate_force_checkout %] - Check out anyway? - [% END %] -
  • -[% END %] - -[% IF ( DEBT ) %] -
  • The patron has a debt of [% DEBT | $Price %].
  • -[% END %] - -[% IF ( DEBT_GUARANTEES ) %] -
  • The patron's guarantees collectively have a debt of [% DEBT_GUARANTEES | $Price %].
  • -[% END %] - -[% IF ( RENTALCHARGE && RENTALCHARGE > 0 ) %] -
  • Rental charge for this item: [% RENTALCHARGE | html %]
  • -[% END %] - -[% IF ( RENEW_ISSUE ) %] -
  • Item [% getTitleMessageIteminfo | html %] ([% getBarcodeMessageIteminfo | html %]) is currently checked out to this patron. Renew?
  • -[% END %] - -[% IF ( RESERVE_WAITING ) %] -
  • Item [% getTitleMessageIteminfo | html %] ([% getBarcodeMessageIteminfo | html %]) has been waiting for [% resfirstname | html %] [% ressurname | html %] ([% rescardnumber | html %]) at [% Branches.GetName( resbranchcode ) | html %] since [% reswaitingdate | $KohaDates %]
  • -[% END %] - -[% IF ( RESERVED ) %] -
  • Item [% getTitleMessageIteminfo | html %] ([% getBarcodeMessageIteminfo | html %]) has been on hold for [% resfirstname | html %] [% ressurname | html %] ([% rescardnumber | html %]) at [% Branches.GetName( resbranchcode ) | html %] since [% resreservedate | $KohaDates %]
  • -[% END %] - -[% IF ( ISSUED_TO_ANOTHER ) %] -
  • Item [% getTitleMessageIteminfo | html %] ([% getBarcodeMessageIteminfo | html %]) is checked out to [% issued_firstname | html %] [% issued_surname | html %] ([% issued_cardnumber | html %]). - [% IF CAN_user_circulate_force_checkout %] - Check in and check out? - [% END %] -
  • -[% END %] - -[% IF TOO_MANY and TOO_MANY == 'TOO_MANY_CHECKOUTS' %] -
  • Too many checked out. [% current_loan_count | html %] checked out, only [% max_loans_allowed | html %] are allowed.
  • -[% END %] - -[% IF TOO_MANY and TOO_MANY == 'TOO_MANY_ONSITE_CHECKOUTS' %] -
  • Too many on-site checked out. [% current_loan_count | html %] on-site checked out, only [% max_loans_allowed | html %] are allowed.
  • -[% END %] - -[% IF ( BORRNOTSAMEBRANCH ) %] -
  • This patron is from a different library ([% Branches.GetName( BORRNOTSAMEBRANCH ) | html %])
  • -[% END %] - -[% IF ( PATRON_CANT ) %] -
  • This patron can't check out this item per library circulation policy.
  • -[% END %] - -[% IF ( TOO_MANY and TOO_MANY == 'NO_RULE_DEFINED' ) %] -
  • No circulation rule is defined for this patron and itemtype combination.
  • -[% 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 | html %])[% END %]. + [% IF ( $borrowers ) %] +
    +
    +
    +
    + [% ELSE %] +
    +
    +
    +
    [% END %] - [% 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 ( ITEM_LOST ) %] -
  • This item has been lost with a status of "[% ITEM_LOST | html %]". - [% IF CAN_user_circulate_force_checkout %] - Check out anyway? - [% END %] -
  • -[% END %] - -[% IF HIGHHOLDS %] -
  • High demand item. Loan period shortened to [% HIGHHOLDS.duration | html %] days (due [% HIGHHOLDS.returndate | $KohaDates %]). Check out anyway?
  • -[% END %] - -[% IF PREVISSUE %] -
  • Patron has previously checked out this title: [% biblio.title | html %] [% IF biblio.author %] by [% biblio.author | html %][% END %]. Check out anyway?
  • -[% END %] - -[% IF BIBLIO_ALREADY_ISSUED %] -
  • - Patron has already checked out another item from this record. - [% IF CAN_user_circulate_force_checkout %] - Check out anyway? + + [% IF patron %] + [% INCLUDE 'members-toolbar.inc' %] [% 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 %] - + + + [% IF ( was_renewed ) %] +
Patron's account has been renewed until [% expiry | $KohaDates %]
[% END %] - - - [% IF ( RENEW_ISSUE ) %] - - [% ELSE %] - + + [% IF autoswitched %] +
Patron was automatically switched by reading the patron card during checking out. Ensure you are working with the right patron.
[% END %] - - -
-[% END %] - -[% IF ( RESERVED ) %] -
- - - - - -
-[% END %] - -[% IF ( RESERVE_WAITING ) %] -
- - - - - -
-[% END %] - -
- [% IF (forceallow) %][% END %] - - - - - [% IF CAN_user_circulate_force_checkout or HIGHHOLDS %] - [% IF ( RENEW_ISSUE ) %] - - [% ELSE %] - - [% END %] - [% ELSE %] - + + [% IF additional_materials %] +
+ Note about the accompanying materials:
+ [% additional_materials | html %] +
[% END %] -
-[% IF ( RESERVED || ISSUED_TO_ANOTHER ) && (CAN_user_reserveforothers_place_holds ) %] - [% UNLESS noissues %] - + [% IF ( alert.ITEM_LOST ) %] +
This item has been lost with a status of "[% alert.ITEM_LOST | html %]".
[% END %] -[% END %] -
-[% END %] - [% IF ( IMPOSSIBLE ) %] + [% IF ( alert.OTHER_CHARGES ) %] +
The patron has unpaid charges for holds, rentals etc of [% alert.OTHER_CHARGES | html %]
+ [% END %] -
-
- [% IF ( UNKNOWN_BARCODE ) %] -

Barcode not found

+ [% IF alert.HIGHHOLDS %] +
High demand item. Loan period was not shortened due to override. Shortened due date would have been [% alert.HIGHHOLDS.returndate | $KohaDates %] ([% alert.HIGHHOLDS.duration | html %] days).
[% END %] - -
    - [% IF ( STATS ) %] -
  • Local use recorded
  • - [% END %] - [% IF ( INVALID_DATE ) %] -
  • The due date "[% INVALID_DATE | html %]" is invalid
  • - [% END %] + [% IF ( nopermission ) %] +
    Staff members are not allowed to discharge borrowers, nor borrowers to request a discharge.
    + [% END %] + + [% IF ( NEEDSCONFIRMATION ) %] +
    +
    + [% IF CAN_user_circulate_force_checkout %] +

    Please confirm checkout

    + [% ELSE %] +

    Cannot check out

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

    + + +

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

    + +
    + + +

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

    + + +

    [% ELSE %] -
    No items were found by searching.
    + [% END %] - [% END %] - [% IF ( fast_cataloging ) %] - [% IF ( CAN_user_editcatalogue_fast_cataloging ) %] - Add record using fast cataloging + + + + [% 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 %] -
    + - - [% END %] + [% IF ( RESERVED || ISSUED_TO_ANOTHER ) && (CAN_user_reserveforothers_place_holds ) %] + [% UNLESS noissues %] + + [% END %] + [% 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 | html %])[% END %]. - [% END %] -
  • - [% END %] +
    +
    + [% END # /IF ( NEEDSCONFIRMATION ) %] - [% IF ( WTHDRAWN ) %] -
  • Item has been withdrawn
  • - [% END %] + + [% IF ( IMPOSSIBLE ) %] +
    +
    + [% IF ( UNKNOWN_BARCODE ) %] +

    Barcode not found

    + [% END %] + +
      + [% IF ( STATS ) %] +
    • Local use recorded
    • + [% END %] - [% IF ( RESTRICTED ) %] -
    • Item is restricted
    • - [% END %] + [% IF ( INVALID_DATE ) %] +
    • The due date "[% INVALID_DATE | html %]" is invalid
    • + [% END %] - [% IF ( GNA ) %] -
    • Patron's address is in doubt
    • - [% 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 ( CARD_LOST ) %] -
    • Patron's card is lost
    • - [% END %] + [% IF ( fast_cataloging ) %] + [% IF ( CAN_user_editcatalogue_fast_cataloging ) %] + Add record using fast cataloging + [% END %] + [% END %] +
    + + [% END # /UNKNOWN_BARCODE %] + + [% 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 | html %])[% END %]. + [% END %] +
  • + [% END %] - [% IF ( DEBARRED ) %] -
  • Patron is restricted
  • - [% END %] + [% IF ( WTHDRAWN ) %] +
  • Item has been withdrawn
  • + [% END %] - [% IF ( NO_MORE_RENEWALS ) %] -
  • No more renewals possible
  • - [% END %] + [% IF ( RESTRICTED ) %] +
  • Item is restricted
  • + [% END %] - [% IF NO_RENEWAL_FOR_ONSITE_CHECKOUTS %] -
  • This item can not be renewed, it's an on-site checkout
  • - [% END %] + [% IF ( GNA ) %] +
  • Patron's address is in doubt
  • + [% END %] - [%IF ( AGE_RESTRICTION ) %] -
  • Age restriction [% AGE_RESTRICTION | html %].
  • - [% END %] + [% IF ( CARD_LOST ) %] +
  • Patron's card is lost
  • + [% END %] - [% IF ( EXPIRED ) %] -
  • Patron's card is expired
  • - [% END %] + [% IF ( DEBARRED ) %] +
  • Patron is restricted
  • + [% END %] - [% IF ( TOO_MANY ) %] -
  • Too many checked out. [% current_loan_count | html %] checked out, only [% max_loans_allowed | html %] are allowed.
  • - [% END %] + [% IF ( NO_MORE_RENEWALS ) %] +
  • No more renewals possible
  • + [% END %] - [% IF ( ITEMNOTSAMEBRANCH ) %] -
  • This item belongs to [% Branches.GetName( itemhomebranch ) | html %] and cannot be checked out from this location.
  • - [% END %] + [% IF NO_RENEWAL_FOR_ONSITE_CHECKOUTS %] +
  • This item can not be renewed, it's an on-site checkout
  • + [% END %] - [% IF RETURN_IMPOSSIBLE %] -
  • This item must be returned to [% Branches.GetName( branch_to_return ) | html %].
  • - [% END %] + [%IF ( AGE_RESTRICTION ) %] +
  • Age restriction [% AGE_RESTRICTION | html %].
  • + [% END %] - [% IF ( USERBLOCKEDWITHENDDATE ) %] -
  • Patron has a restriction until [% USERBLOCKEDWITHENDDATE | $KohaDates %].
  • - [% END %] + [% IF ( EXPIRED ) %] +
  • Patron's card is expired
  • + [% END %] - [% IF ( USERBLOCKEDNOENDDATE ) %] -
  • Patron has an indefinite restriction.
  • - [% END %] + [% IF ( TOO_MANY ) %] +
  • Too many checked out. [% current_loan_count | html %] checked out, only [% max_loans_allowed | html %] are allowed.
  • + [% END %] - [% IF ( USERBLOCKEDOVERDUE ) %] -
  • Checkouts are BLOCKED because patron has overdue items.
  • - [% END %] -
+ [% IF ( ITEMNOTSAMEBRANCH ) %] +
  • This item belongs to [% Branches.GetName( itemhomebranch ) | html %] and cannot be checked out from this location.
  • + [% END %] - [% IF (forceallow) %] -
  • Restriction overridden temporarily.
  • - [% END %] + [% IF RETURN_IMPOSSIBLE %] +
  • This item must be returned to [% Branches.GetName( branch_to_return ) | html %].
  • + [% END %] -
    + [% IF ( USERBLOCKEDWITHENDDATE ) %] +
  • Patron has a restriction until [% USERBLOCKEDWITHENDDATE | $KohaDates %].
  • + [% END %] + + [% IF ( USERBLOCKEDNOENDDATE ) %] +
  • Patron has an indefinite restriction.
  • + [% END %] + + [% IF ( USERBLOCKEDOVERDUE ) %] +
  • Checkouts are BLOCKED because patron has overdue items.
  • + [% END %] + + + [% IF (forceallow) %] +
  • Restriction overridden temporarily.
  • + [% END %] +
    +
    [% IF ( FALLBACK ) %] [% IF options %] - -
    -
    -
    - [% END %] +
    +
    +
    + [% END # /IF options %] + [% END # /IF FALLBACK%] + [% ELSE # IF IMPOSSIBLE %] + [% IF (forceallow) %] +
    Restriction overridden temporarily
    [% END %] + [% END # /IF IMPOSSIBLE %] -[% 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' %] - -
    - [% INCLUDE 'circ-patron-search-results.inc' destination = "circ" %] -
    -[% ELSE %] - - - -[% IF patron %] -
    - -[% 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 ( !noissues ) || ( Koha.Preference('OnSiteCheckouts') && Koha.Preference('OnSiteCheckoutsForce') )%] -
    - -
    - -[% IF ( issue ) %] -
    -[% ELSE %] -
    -[% END %] - [% IF ( DisplayClearScreenButton ) %] - x - [% END %] - - [% IF (forceallow) %][% END %] + - + [% IF ( issued ) %] +

    Item checked out

    + [% END %] - [% IF Koha.Preference('itemBarcodeFallbackSearch') %] -
    Enter item barcode or keyword:
    - [% ELSE %] -
    Enter item barcode:
    - [% END %] + [% IF ( message ) %] + [% INCLUDE 'patron-toolbar.inc' %] +

    No patron matched [% message | html %]

    + [% END %] - [% IF NEEDSCONFIRMATION %] - + [% IF ( borrowers ) %] + [% INCLUDE 'patron-toolbar.inc' %] +
    + [% INCLUDE 'circ-patron-search-results.inc' destination = "circ" %] +
    [% ELSE %] - - [% END %] - + + [% IF patron %] +
    + [% 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 ( !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 # /UNLESS ( noissues && Koha.Preference('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 Koha.Preference('decreaseLoanHighHolds') %] + [% END # /UNLESS ( noissues ) %] + + [% IF Koha.Preference('OnSiteCheckouts') %] +
    + [% IF noissues %] +
    + + + +
    + [% ELSE %] + + + [% END %] +
    + [% END # /IF Koha.Preference('OnSiteCheckouts')%] +
    + + + + + + [% IF ( CHARGES ) %] + + [% END %] +
    + + [% IF ( issue ) %] +
    +

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

    +
    + [% END %] + +
    + [% END # /IF ( !noissues ) %] - [% UNLESS ( noissues && Koha.Preference('OnSiteCheckoutsForce') ) %] - [% IF ( SpecifyDueDate ) %] -
    -
    Specify due date [% INCLUDE 'date-format.inc' %]:
    - [% IF ( duedatespec ) %] - + [% IF ( noissues ) %] + [% IF ( Koha.Preference('OnSiteCheckouts') && Koha.Preference('OnSiteCheckoutsForce') ) %] +
    [% ELSE %] - +
    [% END %] - - [% IF ( stickyduedate ) %] - - [% ELSE %] - - [% END %] - -
    - [% END %] - [% END %] - - [% UNLESS ( noissues ) %] -
    - [% IF NEEDSCONFIRMATION %] - [% ELSE %] - +
    [% END %] - -
    - [% IF Koha.Preference('decreaseLoanHighHolds') %] -
    - [% IF NEEDSCONFIRMATION %] - [% IF override_high_holds %] - + [% IF ( noissues ) %] + [% IF ( Koha.Preference('OnSiteCheckouts') && Koha.Preference('OnSiteCheckoutsForce') ) %] +
    [% ELSE %] - - [% END %] - [% ELSE %] - [% IF override_high_holds %] - - [% 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 # /IF ( noissues ) %] +
    +

    Attention:

    [% END %] - -
    - [% END %] - [% END %] - [% IF Koha.Preference('OnSiteCheckouts') %] -
    - [% IF noissues %] -
    - - - -
    - [% ELSE %] - - [% END %] -
    - [% 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 ( CHARGES ) %] - - [% END %] -
    -[% IF ( issue ) %] -
    -

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

    -
    -[% END %] -
    + [% IF ( warndeparture ) %] +
  • + Expiration: Patron's card will expire soon. + Patron's card expires on [% expiry | $KohaDates %] Renew or Edit Details +
  • + [% END %] -[% 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 ( 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 ( 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 ( 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 + [% IF ( lost ) %] +
    • Lost: Patron's card is lost
    • [% 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 ') | $raw | html_line_break %] - [% ELSE %] - [% debarredcomment | $raw | 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 ( userdebarred ) %] +
    • + Restricted: Patron's account is restricted - [% IF ( charges ) %] - [% INCLUDE 'blocked-fines.inc' fines = chargesamount %] - [% END %] + [% IF ( userdebarreddate ) %] + until [% userdebarreddate | $KohaDates %] + [% 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 ( debarredcomment ) %] + with the explanation:
      + [% IF debarredcomment.search('OVERDUES_PROCESS') %] + Restriction added by overdues process [% debarredcomment.remove('OVERDUES_PROCESS ') | $raw | html_line_break %] + [% ELSE %] + [% debarredcomment | $raw | html_line_break %] + [% END %] + + [% END %] +
      + View restrictions - [% IF ( credits ) %] -
    • - Credits: Patron has a credit[% IF ( creditsamount ) %] of [% creditsamount | $Price %][% END %] -
    • - [% END %] + [% 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 WaitingHolds.count %] -
    -

    Holds waiting:

    - [% FOREACH w IN WaitingHolds %] -
      -
    • - [% w.biblio.title | html %] - ([% ItemTypes.GetDescription( w.item.effective_itemtype ) | html %]), - [% IF ( w.biblio.author ) %] by [% w.biblio.author | html %] [% END %] - [% IF ( w.item.itemcallnumber ) %] [[% w.item.itemcallnumber | html %]] [% 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 %] - -
    • + [% 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 %]
    - [% END %] -
    - [% END %] +
    + + [% IF WaitingHolds.count %] +
    +

    Holds waiting:

    + + [% FOREACH w IN WaitingHolds %] +
      +
    • + [% w.biblio.title | html %] + ([% ItemTypes.GetDescription( w.item.effective_itemtype ) | html %]), + [% IF ( w.biblio.author ) %] by [% w.biblio.author | html %] [% END %] + [% IF ( w.item.itemcallnumber ) %] [[% w.item.itemcallnumber | html %]] [% 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 # /FOREACH WaitingHolds %] +
    + [% END # IF WaitingHolds.count %] + + [% IF ( notes ) %] +
    +

    Notes:

    +

    [% notesmsg | html %]

    +
    + [% END # IF ( notes ) %] - [% IF ( notes ) %] -
    -

    Notes:

    -

    [% notesmsg | html %]

    -
    +
    +

    Messages:

    + -
    -

    Messages:

    - - Add a new message -
    + Add a new message +
    +
    +
    + +
    +
    +
    -
    + [% IF relatives_issues_count %] +
  • Relatives' checkouts
  • + [% END %] -
    +
  • + [% IF ( holds_count ) %] + [% holds_count | html %] Hold(s) + [% ELSE %] + 0 Holds + [% END %] +
  • - + + [% INCLUDE "checkouts-table.inc" %] + [% IF ( relatives_issues_count ) %] +
    + + + + + + + + + + + + + + + + + + +
    Due date (unformatted, hidden)Due dateTitleItem typeCollection codeLocationChecked out onChecked out fromCall noChargeFinePricePatron
    +
    + [% END # /IF relatives_issues_count %] + + [% IF CAN_user_clubs && ( enrollable.count || enrollments.count ) %] +
    + Loading... +
    + [% END %] -
  • - [% IF ( holds_count ) %] - [% holds_count | html %] Hold(s) - [% ELSE %] - 0 Holds - [% 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 %] - [% IF Koha.Preference('ArticleRequests') %] -
  • - [% patron.article_requests_current.count | html %] Article requests -
  • - [% END %] + [% ELSE %] +

    Patron has nothing on hold.

    + [% END # IF ( holds_count ) %] +
    -
  • [% debarments.count | html %] Restrictions
  • + [% IF Koha.Preference('ArticleRequests') %] + [% INCLUDE 'patron-article-requests.inc' %] + [% END %] +
    +
    - [% SET enrollments = patron.get_club_enrollments(1) %] - [% SET enrollable = patron.get_enrollable_clubs(0,1) %] - [% IF CAN_user_clubs && ( enrollable.count || enrollments.count ) %] -
  • - - Clubs ([% enrollments.count | html %]/[% enrollable.count | html %]) - -
  • - [% END %] + [% ELSIF ( borrowernumber ) %] +
    This patron does not exist. Find another patron?
    + [% END # /IF ( patron ) %] - - - - -[% INCLUDE "checkouts-table.inc" %] - -[% IF ( relatives_issues_count ) %] -
    - - - - - - - - - - - - - - - - - - -
    Due date (unformatted, hidden)Due dateTitleItem typeCollection codeLocationChecked out onChecked out fromCall noChargeFinePricePatron
    -
    -[% END %] + [% END # /IF( borrowers ) %] -[% 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' %] -
    + [% IF Koha.Preference('CircSidebar') %] + [% UNLESS ( borrowers ) %] + [% IF not( borrowernumber and patron ) %] +
    + [% INCLUDE 'circ-nav.inc' %] +
    + [% END %] + [% END %] [% END %] -[% END %] - - - + + + + [% UNLESS ( borrowers ) %] + [% IF borrowernumber and patron %] +
    + [% INCLUDE 'circ-menu.inc' %] +
    + [% END %] + [% END %] + + + + [% MACRO jsinclude BLOCK %] [% INCLUDE 'strings.inc' %] @@ -986,7 +1002,7 @@ No patron matched [% message | html %] [% Asset.js("js/checkouts.js") | $raw %] [% Asset.js("js/holds.js") | $raw %] [% Asset.js("js/circ-patron-search-results.js") | $raw %] - [% INCLUDE 'str/members-menu.inc' %] [% Asset.js("js/members-menu.js") | $raw %] -[% END %] - +[% END # /jsinclude %] [% INCLUDE 'intranet-bottom.inc' %] -- 2.1.4