[% USE raw %]
[% USE Branches %]
[% SET ClaimReturnedWarningThreshold = Koha.Preference('ClaimReturnedWarningThreshold') %]
[% SET return_claims = patron.return_claims %]
[% SET logged_in_branchcode = Branches.GetLoggedInBranchcode() %]
[% IF ( has_modifications || warndeparture || returnbeforeexpiry || expired || patron.gonenoaddress || patron.lost || userdebarred || odues || ( return_claims.count > ClaimReturnedWarningThreshold ) || age_limitations || charges || charges_guarantors_guarantees || charges_guarantees || credits ) %]
Attention
[% IF ( has_modifications ) %]
-
Pending modifications:
[% IF CAN_user_borrowers_edit_borrowers && ( !Koha.Preference('IndependentBranchesPatronModifications') || borrower.branch == branch ) %]
Review pending modifications
[% ELSE %]
Patron has pending 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 ( patron.gonenoaddress ) %]
-
Address: Patron's address flagged as in doubt
[% END %]
[% IF ( patron.lost ) %]
-
Lost: Patron's card is flagged as lost
[% END %]
[% IF ( userdebarred ) %]
-
Restricted since [% debarredsince | $KohaDates %]: 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 && 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 return_claims.count > ClaimReturnedWarningThreshold %]
-
Return claims: Patron has [% return_claims.count | html %] RETURN CLAIMS
[% END %]
[% IF age_limitations %]
[% INCLUDE 'category-out-of-age-limit.inc' %]
[% END %]
[% IF ( charges ) %]
[% INCLUDE 'blocked-fines.inc' fines = chargesamount %]
[% END %]
[% IF ( charges_guarantors_guarantees ) %]
-
Charges: Patron's guarantors and their other guarantees collectively owe [% charges_guarantors_guarantees | $Price %].
[% IF noissues %]
Checkouts are BLOCKED because fine balance is OVER THE LIMIT.
[% END %]
[% END %]
[% IF ( charges_guarantees ) %]
-
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 # /F ( has_modifications || warndeparture... %]
[% IF waiting_recalls.count %]
[% SET waiting_here = 0 %]
[% SET waiting_elsewhere = 0 %]
[% FOREACH w IN waiting_recalls %]
[% IF ( w.pickup_library_id == logged_in_branchcode ) %]
[% waiting_here = waiting_here + 1 %]
[% ELSE %]
[% waiting_elsewhere = waiting_elsewhere + 1 %]
[% END %]
[% END %]
[% IF ( waiting_here > 0 ) %]
Recalls waiting here ([% waiting_here | html %])
[% FOREACH w IN waiting_recalls %]
[% IF ( w.pickup_library_id == logged_in_branchcode ) %]
-
[% 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 %]
Recall placed on [% w.created_date | $KohaDates %].
[% SET expires_on = w.expiration_date %]
Waiting here [% IF expires_on %] until [% expires_on | $KohaDates %] [% END %]
[% END %]
[% END %]
[% END %]
[% IF ( waiting_elsewhere > 0 ) %]
Recalls waiting at other libraries ([% waiting_elsewhere | html %])
[% FOREACH w IN waiting_recalls %]
[% IF ( w.pickup_library_id != logged_in_branchcode ) %]
-
[% 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 %]
Recall placed on [% w.created_date | $KohaDates %].
[% SET expires_on = w.expiration_date %]
Waiting at [% Branches.GetName( w.pickup_library_id ) | html %] [% IF expires_on %] until [% expires_on | $KohaDates %] [% END %]
[% END %]
[% END %]
[% END %]
[% END # /IF waiting_recalls.count %]
[% IF WaitingHolds.count %]
[% SET waiting_here = 0 %]
[% SET waiting_elsewhere = 0 %]
[% FOREACH w IN WaitingHolds %]
[% IF ( w.branch.branchcode == logged_in_branchcode ) %]
[% waiting_here = waiting_here + 1 %]
[% ELSE %]
[% waiting_elsewhere = waiting_elsewhere + 1 %]
[% END %]
[% END %]
[% IF ( waiting_here > 0 ) %]
Holds waiting here ([% waiting_here | html %])
[% FOREACH w IN WaitingHolds %]
[% IF ( w.branch.branchcode == logged_in_branchcode ) %]
-
[% 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 %].
[% SET expires_on = w.expirationdate %]
Waiting here [% IF expires_on %] until [% expires_on | $KohaDates %] [% END %]
[% END %]
[% END %]
[% END %]
[% IF ( waiting_elsewhere > 0 ) %]
Holds waiting at other libraries ([% waiting_elsewhere | html %])
[% FOREACH w IN WaitingHolds %]
[% IF ( w.branch.branchcode != logged_in_branchcode ) %]
-
[% 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 %].
[% SET expires_on = w.expirationdate %]
Waiting at [% w.branch.branchname | html %] [% IF expires_on %] until [% expires_on | $KohaDates %] [% END %]
[% END %]
[% END %]
[% END %]
[% END # /IF WaitingHolds.count %]
[% IF Koha.Preference("CurbsidePickup") %]
[% SET curbside_pickups = patron.curbside_pickups.search( branchcode => Branches.GetLoggedInBranchcode ) %]
[% IF curbside_pickups.count %]
Curbside pickups scheduled here
[% FOR cp IN curbside_pickups %]
- On [% cp.scheduled_pickup_datetime | $KohaDates %]:
[% SWITCH cp.status %]
[% CASE 'to-be-staged' %]
To be staged
[% CASE 'staged-and-ready' %]
Staged and ready
[% CASE 'patron-is-outside' %]
Patron is outside!
[% CASE 'delivered' %]
Delivered
[% CASE %]Unknown status "[% cp.status | html %]"
[% END %]
[% END %]
[% END %]
[% END %]
[% IF ( patron.borrowernotes ) %]
Notes
-
[% patron.borrowernotes | $raw | html_line_break %]
[% END # /IF patron.borrowernotes %]
[% IF ( patron_messages ) %]
Messages
[% FOREACH patron_message IN patron_messages %]
-
[% IF(patron_message.message_type == "L") %]
[% ELSE %]
[% END %]
[% patron_message.message_date | $KohaDates %]
[% Branches.GetName( patron_message.branchcode ) | html %]
[% IF patron_message.manager_id %]
( [% patron_message.get_column('manager_firstname') | html %] [% patron_message.get_column('manager_surname') | html %] )
[% END %]
"[% patron_message.message | html %]"
[% IF patron_message.patron_read_date %]
Read: [% patron_message.patron_read_date | $KohaDates %]
[% END %]
[% IF patron_message.branchcode == Branches.GetLoggedInBranchcode OR Koha.Preference('AllowAllMessageDeletion') %]
[% IF moremember %]
Delete
[% ELSE %]
Delete
[% END %]
[% END %]
[% END %]
Add a new message
[% END # /IF patron_messages %]