[% 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

[% 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 %])

[% END %] [% IF ( waiting_elsewhere > 0 ) %]

Recalls waiting at other libraries ([% waiting_elsewhere | html %])

[% 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 %])

[% END %] [% IF ( waiting_elsewhere > 0 ) %]

Holds waiting at other libraries ([% waiting_elsewhere | html %])

[% 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

[% END %] [% END %] [% IF ( patron.borrowernotes ) %]

Notes

[% END # /IF patron.borrowernotes %] [% IF ( patron_messages ) %]

Messages

Add a new message
[% END # /IF patron_messages %]