+[% USE raw %]
+[% USE Asset %]
[% USE KohaDates %]
[% USE Branches %]
[% USE Koha %]
[% END %]
[% INCLUDE 'doc-head-open.inc' %]
-<title>Koha › Circulation › Check in [% title |html %]</title>
-<link rel="stylesheet" type="text/css" href="[% interface %]/[% theme %]/css/datatables_[% KOHA_VERSION %].css" />
+<title>Koha › Circulation › Check in [% title | html %]</title>
+[% Asset.css("css/datatables.css") | $raw %]
[% INCLUDE 'doc-head-close.inc' %]
</head>
[% IF Koha.Preference('CircSidebar') %]<div class="yui-b">[% END %]
<div class="yui-g">
+ [% IF hold_auto_filled %]
+ <div class="dialog alert hold-auto-filled">
+ [% IF ( reservenotes ) %]
+ <h4>Notes: [% reservenotes | html %]</h4>
+ [% END %]
+ <h3>Hold filled for:</h3>
+ <li>
+ [% INCLUDE 'patron-title.inc' patron=patron %]
+ <span class="patron-category"> - [% patron.category.description | html %]</span>
+ </li>
+
+ [% INCLUDE display_holdpatron_address %]
+
+ [% IF ( patron.phone ) %]
+ <li>[% patron.phone | html %]</li>
+ [% END %]
+
+ [% IF ( patron.email ) %]
+ <li>
+ [% IF ( transfertodo ) %]
+ [% patron.email | html %]
+ [% ELSE %]
+ <a id="boremail" href="mailto:[% patron.email | html %]">[% patron.email | html %]</a>
+ [% END %]
+ </li>
+ [% END %]
+
+ [% UNLESS ( transfertodo) %]
+ [% INCLUDE display_bormessagepref %]
+ [% END %]
+
+ [% IF ( patron.debarred ) %]
+ <li class="error">Patron is RESTRICTED</li>
+ [% END %]
+
+ [% IF ( patron.gonenoaddress ) %]
+ <li class="error">Patron's address is in doubt</li>
+ [% END %]
+
+ [% IF ( transfertodo ) %]
+ <h4><strong>Transfer to:</strong> [% Branches.GetName( destbranch ) | html %]</h4>
+ [% ELSE %]
+ <h4><strong>Hold at</strong> [% Branches.GetName( destbranch ) | html %]</h4>
+ [% END %]
+
+ <a href="#" class="btn btn-default print print-slip">
+ <i class="fa fa-print"></i> Print
+ </a>
+ </div>
+ [% END %]
+
[% IF privacy == 2 AND NOT Koha.Preference('AnonymousPatron') %]
<div class="dialog alert"><strong>Error:</strong> This patron has requested their circulation history be anonymized on check-in, but the AnonymousPatron system preference is empty or incorrect.</div>
[% ELSIF NOT Koha.Preference('AnonymousPatron') AND Koha.Preference('OPACPrivacy') %]
[% IF additional_materials %]
<div class="dialog message" id="materials">Note about the accompanying materials: <br />
- [% additional_materials %]
+ [% additional_materials | html %]
</div>
[% END %]
[% IF ( collectionItemNeedsTransferred ) %]
<div id="rotating-collection" class="dialog message">
- <h3>Please transfer item to: [% Branches.GetName( collectionBranch ) %]</h3>
- <p><a href="/cgi-bin/koha/catalogue/detail.pl?type=intra&biblionumber=[% itembiblionumber %]">[% itembarcode |html %]: [% title |html %]</a></p>
+ <h3>Please transfer item to: [% Branches.GetName( collectionBranch ) | html %]</h3>
+ <p><a href="/cgi-bin/koha/catalogue/detail.pl?type=intra&biblionumber=[% itembiblionumber | html %]">[% itembarcode | html %]: [% title | html %]</a></p>
<p>This item is part of a rotating collection.</p>
- <p><button type="button" class="openWin" data-url="transfer-slip.pl?transferitem=[% itemnumber %]&branchcode=[% collectionBranch %]&op=slip"><i class="fa fa-print"></i> Print slip</button></p>
+ <p><button type="button" class="openWin" data-url="transfer-slip.pl?transferitem=[% itemnumber | html %]&branchcode=[% collectionBranch | html %]&op=slip"><i class="fa fa-print"></i> Print slip</button></p>
</div>
[% END %]
<div class="dialog message">
<h1>Patron note</h1>
<p>[% issue.notedate | $KohaDates %]</p>
- <p><a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% itembiblionumber %]"> [% title |html %]</a> [% author %]</p>
+ <p><a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% itembiblionumber | html %]"> [% title | html %]</a> [% author | html %]</p>
<p>[% issue.note | html %]</p>
</div>
[% END %]
<!-- Patron has fines -->
[% IF ( fines ) %]
<div class="dialog alert">
- <h3>Patron has outstanding fines of [% fines %].</h3>
- <p><a href="/cgi-bin/koha/members/pay.pl?borrowernumber=[% fineborrowernumber %]">Make payment</a>.</p>
+ <h3>Patron has outstanding fines of [% fines | html %].</h3>
+ <p><a href="/cgi-bin/koha/members/pay.pl?borrowernumber=[% fineborrowernumber | html %]">Make payment</a>.</p>
</div>
[% END %]
<!-- Patron has waiting holds -->
[% IF ( waiting_holds ) %]
<div id="awaiting-pickup" class="dialog message">
- <h3>[% holdsfirstname %] [% holdssurname %] has [% waiting_holds %] hold(s) waiting for pickup.</h3>
- <p><a href="/cgi-bin/koha/circ/circulation.pl?borrowernumber=[% holdsborrowernumber %]">Check out to this patron</a>.</p>
+ <h3>[% holdsfirstname | html %] [% holdssurname | html %] has [% waiting_holds | html %] hold(s) waiting for pickup.</h3>
+ <p><a href="/cgi-bin/koha/circ/circulation.pl?borrowernumber=[% holdsborrowernumber | html %]">Check out to this patron</a>.</p>
</div>
[% END %]
[% IF return_date_was_overriden && Borrowers.IsDebarred( borrower ) %]
<div id="restricted_backdated" class="dialog message">
<h3>
- <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% patron.borrowernumber %]">
- [% patron.firstname %] [% patron.surname %]
+ <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% patron.borrowernumber | html %]">
+ [% patron.firstname | html %] [% patron.surname | html %]
</a>
is restricted. Please verify this patron should still be restricted.
</h3>
[% IF ( wrongbranch ) %]
<div class="dialog alert"><h3>Cannot check in</h3>
- <p><a href="/cgi-bin/koha/catalogue/detail.pl?type=intra&biblionumber=[% itembiblionumber %]">[% itembarcode |html %]: [% title |html %]</a></p>
+ <p><a href="/cgi-bin/koha/catalogue/detail.pl?type=intra&biblionumber=[% itembiblionumber | html %]">[% itembarcode | html %]: [% title | html %]</a></p>
</p><strong>NOT CHECKED IN</strong></p>
- <p>This item must be checked in at following library: <strong>[% Branches.GetName( rightbranch ) %]</strong></p>
+ <p>This item must be checked in at following library: <strong>[% Branches.GetName( rightbranch ) | html %]</strong></p>
</div>
[% END %]
[% IF ( WrongTransfer ) %]
<div id="return2" class="dialog message">
<!-- WrongTransfer -->
- <h3>Please return item to: [% Branches.GetName( TransferWaitingAt ) %]</h3>
- <p><a href="/cgi-bin/koha/catalogue/detail.pl?type=intra&biblionumber=[% itembiblionumber %]">[% itembarcode |html %]: [% title |html %]</a></p>
- <button type="submit" class="openWin" data-url="transfer-slip.pl?transferitem=[% itemnumber %]&&branchcode=[% TransferWaitingAt %]&op=slip"><i class="fa fa-print"></i> Print transfer slip</button>
- <button class="deny" type="submit" onclick="window.location.href='/cgi-bin/koha/circ/returns.pl?itemnumber=[% itemnumber %]&canceltransfer=1'"><i class="fa fa-times"></i> Cancel transfer</button>
+ <h3>Please return item to: [% Branches.GetName( TransferWaitingAt ) | html %]</h3>
+ <p><a href="/cgi-bin/koha/catalogue/detail.pl?type=intra&biblionumber=[% itembiblionumber | html %]">[% itembarcode | html %]: [% title | html %]</a></p>
+ <button type="submit" class="openWin" data-url="transfer-slip.pl?transferitem=[% itemnumber | html %]&&branchcode=[% TransferWaitingAt | html %]&op=slip"><i class="fa fa-print"></i> Print transfer slip</button>
+ <button class="deny" type="submit" onclick="window.location.href='/cgi-bin/koha/circ/returns.pl?itemnumber=[% itemnumber | html %]&canceltransfer=1'"><i class="fa fa-times"></i> Cancel transfer</button>
[% IF ( patron.cardnumber ) %]<h5>Hold for:</h5>
<ul>
- <li><a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% patron.borrowernumber %]">
- [% patron.surname %], [% patron.firstname %]</a> ([% patron.cardnumber %]) <span class="patron-category"> - [% patron.category.description %]</span> </li>
+ <li><a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% patron.borrowernumber | html %]">
+ [% patron.surname | html %], [% patron.firstname | html %]</a> ([% patron.cardnumber | html %]) <span class="patron-category"> - [% patron.category.description | html %]</span> </li>
[% INCLUDE display_holdpatron_address %]
- [% IF ( patron.phone ) %]<li>[% patron.phone %]</li>[% END %]
- [% IF ( patron.email ) %]<li><a id="boremail" href="mailto:[% patron.email %]">[% patron.email %]</a></li>[% END %]
+ [% IF ( patron.phone ) %]<li>[% patron.phone | html %]</li>[% END %]
+ [% IF ( patron.email ) %]<li><a id="boremail" href="mailto:[% patron.email | html %]">[% patron.email | html %]</a></li>[% END %]
</ul>
<form method="post" action="returns.pl" class="confirm">
- <input type="hidden" name="WT-itemNumber" value="[% WrongTransferItem %]" />
- <input type="hidden" name="WT-waitingAt" value="[% TransferWaitingAt %]" />
- <input type="hidden" name="WT-From" value="[% wtransfertFrom %]" />
+ <input type="hidden" name="WT-itemNumber" value="[% WrongTransferItem | html %]" />
+ <input type="hidden" name="WT-waitingAt" value="[% TransferWaitingAt | html %]" />
+ <input type="hidden" name="WT-From" value="[% wtransfertFrom | html %]" />
<button type="submit" class="approve"><i class="fa fa-check"></i> Confirm</button>
<input type="hidden" name="print_slip" value="0" />
- <input type="hidden" name="borrowernumber" value="[% patron.borrowernumber %]" />
- <input type="hidden" name="biblionumber" value="[% biblionumber %]" />
+ <input type="hidden" name="borrowernumber" value="[% patron.borrowernumber | html %]" />
+ <input type="hidden" name="biblionumber" value="[% biblionumber | html %]" />
<button type="submit" class="print" onclick="this.form.print_slip.value = 1; this.form.submit();"><i class="fa fa-print"></i> Print slip and confirm</button>
- <input type="hidden" name="return_date_override" value="[% return_date_override %]" />
- <input type="hidden" name="return_date_override_remember" value="[% return_date_override_remember %]" />
+ <input type="hidden" name="return_date_override" value="[% return_date_override | html %]" />
+ <input type="hidden" name="return_date_override_remember" value="[% return_date_override_remember | html %]" />
</form>
[% END %]</div>
[% END %]
<h3>
Hold found (item is already waiting):
<br/>
- <a href="/cgi-bin/koha/catalogue/detail.pl?type=intra&biblionumber=[% itembiblionumber %]">
- [% itembarcode |html %]: [% title |html %]
+ <a href="/cgi-bin/koha/catalogue/detail.pl?type=intra&biblionumber=[% itembiblionumber | html %]">
+ [% itembarcode | html %]: [% title | html %]
</a>
</h3>
</div>
<div class="modal-body">
[% IF ( reservenotes ) %]
- <h4>Notes: [% reservenotes %]</h4>
+ <h4>Notes: [% reservenotes | html %]</h4>
[% END %]
<h4>Hold for:</h4>
<ul>
<li>
- <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% patron.borrowernumber %]">[% patron.surname %], [% patron.firstname %]</a> ([% patron.cardnumber %])
- <span class="patron-category"> - [% patron.category.description %]</span>
+ <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% patron.borrowernumber | html %]">[% patron.surname | html %], [% patron.firstname | html %]</a> ([% patron.cardnumber | html %])
+ <span class="patron-category"> - [% patron.category.description | html %]</span>
</li>
[% INCLUDE display_holdpatron_address %]
[% IF ( patron.phone ) %]
- <li> [% patron.phone %]</li>
+ <li> [% patron.phone | html %]</li>
[% END %]
[% IF ( patron.email ) %]
- <li><a id="boremail" href="mailto:[% patron.email %]">[% patron.email %]</a></li>
+ <li><a id="boremail" href="mailto:[% patron.email | html %]">[% patron.email | html %]</a></li>
[% END %]
[% IF ( patron.debarred ) %]
</ul>
[% IF ( transfertodo ) %]
- <h4><strong>Transfer to:</strong> [% Branches.GetName( destbranch ) %]</h4>
+ <h4><strong>Transfer to:</strong> [% Branches.GetName( destbranch ) | html %]</h4>
[% ELSE %]
- <h4><strong>Hold at</strong> [% Branches.GetName( destbranch ) %]</h4>
+ <h4><strong>Hold at</strong> [% Branches.GetName( destbranch ) | html %]</h4>
[% END %]
[% FOREACH inputloo IN inputloop %]
- <input type="hidden" name="ri-[% inputloo.counter %]" value="[% inputloo.barcode %]" />
- <input type="hidden" name="dd-[% inputloo.counter %]" value="[% inputloo.duedate %]" />
- <input type="hidden" name="bn-[% inputloo.counter %]" value="[% inputloo.borrowernumber %]" />
+ <input type="hidden" name="ri-[% inputloo.counter | html %]" value="[% inputloo.barcode | html %]" />
+ <input type="hidden" name="dd-[% inputloo.counter | html %]" value="[% inputloo.duedate | html %]" />
+ <input type="hidden" name="bn-[% inputloo.counter | html %]" value="[% inputloo.borrowernumber | html %]" />
[% END %]
- <input type="hidden" name="itemnumber" value="[% itemnumber %]" />
- <input type="hidden" name="borrowernumber" value="[% patron.borrowernumber %]" />
- <input type="hidden" name="biblionumber" value="[% itembiblionumber %]" />
- <input type="hidden" name="reserve_id" value="[% reserve_id %]" />
- <input type="hidden" name="diffBranch" value="[% destbranch %]" />
- <input type="hidden" name="exemptfine" value="[% exemptfine %]" />
- <input type="hidden" name="dropboxmode" value="[% dropboxmode %]" />
- <input type="hidden" name="forgivemanualholdsexpire" value="[% forgivemanualholdsexpire %]" />
-
- <input type="hidden" name="return_date_override" value="[% return_date_override %]" />
- <input type="hidden" name="return_date_override_remember" value="[% return_date_override_remember %]" />
+ <input type="hidden" name="itemnumber" value="[% itemnumber | html %]" />
+ <input type="hidden" name="borrowernumber" value="[% patron.borrowernumber | html %]" />
+ <input type="hidden" name="biblionumber" value="[% itembiblionumber | html %]" />
+ <input type="hidden" name="reserve_id" value="[% reserve_id | html %]" />
+ <input type="hidden" name="diffBranch" value="[% destbranch | html %]" />
+ <input type="hidden" name="exemptfine" value="[% exemptfine | html %]" />
+ <input type="hidden" name="dropboxmode" value="[% dropboxmode | html %]" />
+ <input type="hidden" name="forgivemanualholdsexpire" value="[% forgivemanualholdsexpire | html %]" />
+
+ <input type="hidden" name="return_date_override" value="[% return_date_override | html %]" />
+ <input type="hidden" name="return_date_override_remember" value="[% return_date_override_remember | html %]" />
</div>
<div class="modal-footer">
<!-- diffbranch -->
<div id="transfer-needed" class="dialog message audio-alert-action">
<h3>Hold needing transfer found</h3>
- <p><a href="/cgi-bin/koha/catalogue/detail.pl?type=intra&biblionumber=[% itembiblionumber %]">[% itembarcode |html %]: [% title |html %]</a></p>
+ <p><a href="/cgi-bin/koha/catalogue/detail.pl?type=intra&biblionumber=[% itembiblionumber | html %]">[% itembarcode | html %]: [% title | html %]</a></p>
<h4>Hold for: </h4>
<ul>
- <li><a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% patron.borrowernumber %]">[% patron.surname %], [% patron.firstname %]</a> ([% patron.cardnumber %]) <span class="patron-category"> - [% patron.category.description %]</span> </li>
+ <li><a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% patron.borrowernumber | html %]">[% patron.surname | html %], [% patron.firstname | html %]</a> ([% patron.cardnumber | html %]) <span class="patron-category"> - [% patron.category.description | html %]</span> </li>
[% INCLUDE display_holdpatron_address %]
- [% IF ( patron.phone ) %]<li>[% patron.phone %]</li>[% END %]
- [% IF ( patron.email ) %]<li>[% IF ( transfertodo ) %][% patron.email %][% ELSE %]<a id="boremail" href="mailto:[% patron.email %]">[% patron.email %]</a>[% END %]</li>[% END %]
+ [% IF ( patron.phone ) %]<li>[% patron.phone | html %]</li>[% END %]
+ [% IF ( patron.email ) %]<li>[% IF ( transfertodo ) %][% patron.email | html %][% ELSE %]<a id="boremail" href="mailto:[% patron.email | html %]">[% patron.email | html %]</a>[% END %]</li>[% END %]
[% IF ( patron.debarred ) %]<li class="error">Patron is RESTRICTED</li>[% END %]
[% IF ( patron.gonenoaddress ) %]<li class="error">Patron's address is in doubt</li>[% END %]
</ul>
[% IF ( transfertodo ) %]
- <h4><strong>Transfer to:</strong> [% Branches.GetName( destbranch ) %]</h4>
+ <h4><strong>Transfer to:</strong> [% Branches.GetName( destbranch ) | html %]</h4>
[% ELSE %]
- <h4><strong>Hold at</strong> [% Branches.GetName( destbranch ) %]</h4>
+ <h4><strong>Hold at</strong> [% Branches.GetName( destbranch ) | html %]</h4>
[% END %]
<form method="post" action="returns.pl" class="confirm">
<button type="submit" class="approve"><i class="fa fa-check"></i> Confirm</button>
<input type="hidden" name="print_slip" value="0" />
- <input type="hidden" name="borrowernumber" value="[% patron.borrowernumber %]" />
- <input type="hidden" name="biblionumber" value="[% itembiblionumber %]" />
+ <input type="hidden" name="borrowernumber" value="[% patron.borrowernumber | html %]" />
+ <input type="hidden" name="biblionumber" value="[% itembiblionumber | html %]" />
<button type="submit" class="print" onclick="this.form.print_slip.value = 1; this.form.submit();"><i class="fa fa-print"></i> Print slip and continue</button>
[% FOREACH inputloo IN inputloop %]
- <input type="hidden" name="ri-[% inputloo.counter %]" value="[% inputloo.barcode %]" />
- <input type="hidden" name="dd-[% inputloo.counter %]" value="[% inputloo.duedate %]" />
- <input type="hidden" name="bn-[% inputloo.counter %]" value="[% inputloo.borrowernumber %]" />
+ <input type="hidden" name="ri-[% inputloo.counter | html %]" value="[% inputloo.barcode | html %]" />
+ <input type="hidden" name="dd-[% inputloo.counter | html %]" value="[% inputloo.duedate | html %]" />
+ <input type="hidden" name="bn-[% inputloo.counter | html %]" value="[% inputloo.borrowernumber | html %]" />
[% END %]
- <input type="hidden" name="diffBranch" value="[% destbranch %]" />
- <input type="hidden" name="exemptfine" value="[% exemptfine %]" />
- <input type="hidden" name="dropboxmode" value="[% dropboxmode %]" />
- <input type="hidden" name="forgivemanualholdsexpire" value="[% forgivemanualholdsexpire %]" />
+ <input type="hidden" name="diffBranch" value="[% destbranch | html %]" />
+ <input type="hidden" name="exemptfine" value="[% exemptfine | html %]" />
+ <input type="hidden" name="dropboxmode" value="[% dropboxmode | html %]" />
+ <input type="hidden" name="forgivemanualholdsexpire" value="[% forgivemanualholdsexpire | html %]" />
<input type="hidden" name="barcode" value="0" />
- <input type="hidden" name="return_date_override" value="[% return_date_override %]" />
- <input type="hidden" name="return_date_override_remember" value="[% return_date_override_remember %]" />
+ <input type="hidden" name="return_date_override" value="[% return_date_override | html %]" />
+ <input type="hidden" name="return_date_override_remember" value="[% return_date_override_remember | html %]" />
</form>
</div>
[% END %]
[% IF ( transfer ) %]
<!-- transfer: item with no reservation, must be returned according to home library circulation rules -->
<div id="return1" class="dialog message audio-alert-action">
- <h3>Please return item to: [% Branches.GetName( returnbranch ) %]</h3>
- <p><a href="/cgi-bin/koha/catalogue/detail.pl?type=intra&biblionumber=[% itembiblionumber %]">[% itembarcode |html %]: [% title |html %]</a></p>
- <p><button type="button" class="openWin" data-url="transfer-slip.pl?transferitem=[% itemnumber %]&branchcode=[% returnbranch %]&op=slip"><i class="fa fa-print"></i> Print slip</button></p>
+ <h3>Please return item to: [% Branches.GetName( returnbranch ) | html %]</h3>
+ <p><a href="/cgi-bin/koha/catalogue/detail.pl?type=intra&biblionumber=[% itembiblionumber | html %]">[% itembarcode | html %]: [% title | html %]</a></p>
+ <p><button type="button" class="openWin" data-url="transfer-slip.pl?transferitem=[% itemnumber | html %]&branchcode=[% returnbranch | html %]&op=slip"><i class="fa fa-print"></i> Print slip</button></p>
</div>
[% END %]
[% IF ( needstransfer ) %]
<!-- needstransfer -->
- <div id="item-transfer" class="dialog message audio-alert-action"><h3> This item needs to be transferred to [% Branches.GetName( returnbranch ) %]</h3>
+ <div id="item-transfer" class="dialog message audio-alert-action"><h3> This item needs to be transferred to [% Branches.GetName( returnbranch ) | html %]</h3>
Transfer now?<br />
<form method="post" action="returns.pl" name="mainform" id="mainform">
[% IF itemnumber %]
- <button type="submit" name="dotransfer" value="Yes" class="print openWin" data-url="transfer-slip.pl?transferitem=[% itemnumber %]&&branchcode=[% returnbranch %]&op=slip"><i class="fa fa-print"></i> Yes, print slip</button>
+ <button type="submit" name="dotransfer" value="Yes" class="print openWin" data-url="transfer-slip.pl?transferitem=[% itemnumber | html %]&&branchcode=[% returnbranch | html %]&op=slip"><i class="fa fa-print"></i> Yes, print slip</button>
[% END %]
<button type="submit" name="dotransfer" value="Yes" class="submit"><i class="fa fa-check"></i> Yes</button>
<button type="submit" name="notransfer" value="No" class="submit"><i class="fa fa-times"></i> No</button>
- <input type="hidden" name="tobranch" value="[% returnbranch %]" />
- <input type="hidden" name="transferitem" value="[% itemnumber %]" />
- <input type="hidden" name="exemptfine" value="[% exemptfine %]" />
- <input type="hidden" name="dropboxmode" value="[% dropboxmode %]" />
- <input type="hidden" name="forgivemanualholdsexpire" value="[% forgivemanualholdsexpire %]" />
+ <input type="hidden" name="tobranch" value="[% returnbranch | html %]" />
+ <input type="hidden" name="transferitem" value="[% itemnumber | html %]" />
+ <input type="hidden" name="exemptfine" value="[% exemptfine | html %]" />
+ <input type="hidden" name="dropboxmode" value="[% dropboxmode | html %]" />
+ <input type="hidden" name="forgivemanualholdsexpire" value="[% forgivemanualholdsexpire | html %]" />
[% FOREACH inputloo IN inputloop %]
- <input type="hidden" name="ri-[% inputloo.counter %]" value="[% inputloo.barcode %]" />
- <input type="hidden" name="dd-[% inputloo.counter %]" value="[% inputloo.duedate %]" />
- <input type="hidden" name="bn-[% inputloo.counter %]" value="[% inputloo.borrowernumber %]" />
+ <input type="hidden" name="ri-[% inputloo.counter | html %]" value="[% inputloo.barcode | html %]" />
+ <input type="hidden" name="dd-[% inputloo.counter | html %]" value="[% inputloo.duedate | html %]" />
+ <input type="hidden" name="bn-[% inputloo.counter | html %]" value="[% inputloo.borrowernumber | html %]" />
[% END %]
<input type="hidden" name="barcode" value="0" />
- <input type="hidden" name="return_date_override" value="[% return_date_override %]" />
- <input type="hidden" name="return_date_override_remember" value="[% return_date_override_remember %]" />
+ <input type="hidden" name="return_date_override" value="[% return_date_override | html %]" />
+ <input type="hidden" name="return_date_override_remember" value="[% return_date_override_remember | html %]" />
</form> </div>
[% END %]
<!-- diffbranch -->
<h3 class="audio-alert-action">Item consigned:</h3>
<table>
- <caption><a href="/cgi-bin/koha/catalogue/detail.pl?type=intra&biblionumber=[% itembiblionumber %]">[% title |html %]</a></caption>
+ <caption><a href="/cgi-bin/koha/catalogue/detail.pl?type=intra&biblionumber=[% itembiblionumber | html %]">[% title | html %]</a></caption>
<tr>
<th>Hold for:</th>
- <td>[% name %]</td>
+ <td>[% INCLUDE 'patron-title.inc' patron=patron %]</td>
</tr>
</table>
<form method="post" action="returns.pl"><input type="submit" value="OK" />
[% FOREACH inputloo IN inputloop %]
[% UNLESS ( inputloo.first ) %]
- <input type="hidden" name="ri-[% inputloo.counter %]" value="[% inputloo.barcode %]" />
- <input type="hidden" name="dd-[% inputloo.counter %]" value="[% inputloo.duedate %]" />
- <input type="hidden" name="bn-[% inputloo.counter %]" value="[% inputloo.borrowernumber %]" />
+ <input type="hidden" name="ri-[% inputloo.counter | html %]" value="[% inputloo.barcode | html %]" />
+ <input type="hidden" name="dd-[% inputloo.counter | html %]" value="[% inputloo.duedate | html %]" />
+ <input type="hidden" name="bn-[% inputloo.counter | html %]" value="[% inputloo.borrowernumber | html %]" />
[% END %]
[% END %]
- <input type="hidden" name="return_date_override" value="[% return_date_override %]" />
- <input type="hidden" name="return_date_override_remember" value="[% return_date_override_remember %]" />
+ <input type="hidden" name="return_date_override" value="[% return_date_override | html %]" />
+ <input type="hidden" name="return_date_override_remember" value="[% return_date_override_remember | html %]" />
<input type="hidden" name="barcode" value="0" />
</form>
<h3>
Hold found:
<br/>
- <a href="/cgi-bin/koha/catalogue/detail.pl?type=intra&biblionumber=[% itembiblionumber %]">
- [% itembarcode |html %]: [% title |html %]
+ <a href="/cgi-bin/koha/catalogue/detail.pl?type=intra&biblionumber=[% itembiblionumber | html %]">
+ [% itembarcode | html %]: [% title | html %]
</a>
</div>
<div class="modal-body">
[% IF ( reservenotes ) %]
- <h4>Notes: [% reservenotes %]</h4>
+ <h4>Notes: [% reservenotes | html %]</h4>
[% END %]
<h5>Hold for:</h5>
<li>
- <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% patron.borrowernumber %]">
- [% patron.surname %], [% patron.firstname %]
- </a>
- ([% patron.cardnumber %])
- <span class="patron-category"> - [% patron.category.description %]</span>
+ [% INCLUDE 'patron-title.inc' patron=patron %]
+ <span class="patron-category"> - [% patron.category.description | html %]</span>
</li>
[% INCLUDE display_holdpatron_address %]
[% IF ( patron.phone ) %]
- <li>[% patron.phone %]</li>
+ <li>[% patron.phone | html %]</li>
[% END %]
[% IF ( patron.email ) %]
<li>
[% IF ( transfertodo ) %]
- [% patron.email %]
+ [% patron.email | html %]
[% ELSE %]
- <a id="boremail" href="mailto:[% patron.email %]">[% patron.email %]</a>
+ <a id="boremail" href="mailto:[% patron.email | html %]">[% patron.email | html %]</a>
[% END %]
</li>
[% END %]
[% END %]
[% IF ( transfertodo ) %]
- <h4><strong>Transfer to:</strong> [% Branches.GetName( destbranch ) %]</h4>
+ <h4><strong>Transfer to:</strong> [% Branches.GetName( destbranch ) | html %]</h4>
[% ELSE %]
- <h4><strong>Hold at</strong> [% Branches.GetName( destbranch ) %]</h4>
+ <h4><strong>Hold at</strong> [% Branches.GetName( destbranch ) | html %]</h4>
[% END %]
<input type="hidden" name="print_slip" value="0" />
[% FOREACH inputloo IN inputloop %]
- <input type="hidden" name="ri-[% inputloo.counter %]" value="[% inputloo.barcode %]" />
- <input type="hidden" name="dd-[% inputloo.counter %]" value="[% inputloo.duedate %]" />
- <input type="hidden" name="bn-[% inputloo.counter %]" value="[% inputloo.borrowernumber %]" />
+ <input type="hidden" name="ri-[% inputloo.counter | html %]" value="[% inputloo.barcode | html %]" />
+ <input type="hidden" name="dd-[% inputloo.counter | html %]" value="[% inputloo.duedate | html %]" />
+ <input type="hidden" name="bn-[% inputloo.counter | html %]" value="[% inputloo.borrowernumber | html %]" />
[% END %]
- <input type="hidden" name="itemnumber" value="[% itemnumber %]" />
- <input type="hidden" name="borrowernumber" value="[% patron.borrowernumber %]" />
- <input type="hidden" name="biblionumber" value="[% itembiblionumber %]" />
- <input type="hidden" name="reserve_id" value="[% reserve_id %]" />
- <input type="hidden" name="diffBranch" value="[% destbranch %]" />
- <input type="hidden" name="exemptfine" value="[% exemptfine %]" />
- <input type="hidden" name="dropboxmode" value="[% dropboxmode %]" />
- <input type="hidden" name="forgivemanualholdsexpire" value="[% forgivemanualholdsexpire %]" />
- <input type="hidden" name="return_date_override" value="[% return_date_override %]" />
- <input type="hidden" name="return_date_override_remember" value="[% return_date_override_remember %]" />
+ <input type="hidden" name="itemnumber" value="[% itemnumber | html %]" />
+ <input type="hidden" name="borrowernumber" value="[% patron.borrowernumber | html %]" />
+ <input type="hidden" name="biblionumber" value="[% itembiblionumber | html %]" />
+ <input type="hidden" name="reserve_id" value="[% reserve_id | html %]" />
+ <input type="hidden" name="diffBranch" value="[% destbranch | html %]" />
+ <input type="hidden" name="exemptfine" value="[% exemptfine | html %]" />
+ <input type="hidden" name="dropboxmode" value="[% dropboxmode | html %]" />
+ <input type="hidden" name="forgivemanualholdsexpire" value="[% forgivemanualholdsexpire | html %]" />
+ <input type="hidden" name="return_date_override" value="[% return_date_override | html %]" />
+ <input type="hidden" name="return_date_override_remember" value="[% return_date_override_remember | html %]" />
</div>
<div class="modal-footer">
<div class="dialog alert audio-alert-warning">
<h3>Check in message</h3>
[% IF itembiblionumber %]
- <p><a href="/cgi-bin/koha/catalogue/detail.pl?type=intra&biblionumber=[% itembiblionumber %]">[% itembarcode |html %]: [% title |html %]</a></p>
+ <p><a href="/cgi-bin/koha/catalogue/detail.pl?type=intra&biblionumber=[% itembiblionumber | html %]">[% itembarcode | html %]: [% title | html %]</a></p>
[% END %]
[% FOREACH errmsgloo IN errmsgloop %]
[% IF ( errmsgloo.NotForLoanStatusUpdated ) %]
Not for loan status updated.
<br />Old value:
[% IF errmsgloo.NotForLoanStatusUpdated.from %]
- [% AuthorisedValues.GetByCode( 'NOT_LOAN', errmsgloo.NotForLoanStatusUpdated.from ) %].
+ [% AuthorisedValues.GetByCode( 'NOT_LOAN', errmsgloo.NotForLoanStatusUpdated.from ) | html %].
[% ELSE %]
Available for loan.
[% END %]
<br />New value:
[% IF errmsgloo.NotForLoanStatusUpdated.to %]
- [% AuthorisedValues.GetByCode( 'NOT_LOAN', errmsgloo.NotForLoanStatusUpdated.to ) %].
+ [% AuthorisedValues.GetByCode( 'NOT_LOAN', errmsgloo.NotForLoanStatusUpdated.to ) | html %].
[% ELSE %]
Available for loan.
[% END %]
<p class="problem">No item with barcode: [% errmsgloo.msg | html %]</p>
[% END %]
[% IF ( errmsgloo.ispermanent ) %]
- <p class="problem">Please return item to: [% Branches.GetName( errmsgloo.msg ) %]</p>
+ <p class="problem">Please return item to: [% Branches.GetName( errmsgloo.msg ) | html %]</p>
[% END %]
[% IF ( errmsgloo.notissued ) %]
<p class="problem">Not checked out.</p>
<p class="problem">Local use recorded</p>
[% END %]
[% IF ( errmsgloo.waslost ) %]
- <p class="problem">Item was lost, now found.</p>
+ [% IF Koha.Preference('BlockReturnOfLostItems') %]
+ <p class="problem">Item is lost, cannot be checked in.</p>
+ [% ELSE %]
+ <p class="problem">Item was lost, now found.</p>
+ [% END %]
+
[% IF LostItemFeeRefunded and not Koha.Preference('BlockReturnOfLostItems') %]
<p class="problem">A refund has been applied to the borrowing patron's account.</p>
[% ELSIF Koha.Preference('BlockReturnOfLostItems') %]
<p class="problem">Item is withdrawn.</p>
[% END %]
[% IF ( errmsgloo.debarred ) %]
- <p class="problem"><a href="/cgi-bin/koha/circ/circulation.pl?borrowernumber=[% errmsgloo.debarborrowernumber %]">[% errmsgloo.debarname %]([% errmsgloo.debarcardnumber %])</a> is now debarred until [% errmsgloo.debarred | $KohaDates %].</p>
+ <p class="problem"><a href="/cgi-bin/koha/circ/circulation.pl?borrowernumber=[% errmsgloo.debarborrowernumber | html %]">[% errmsgloo.debarname | html %]([% errmsgloo.debarcardnumber | html %])</a> is now debarred until [% errmsgloo.debarred | $KohaDates %].</p>
[% END %]
[% IF ( errmsgloo.prevdebarred ) %]
<p class="problem"><b>Reminder: </b>Patron was earlier restricted until [% errmsgloo.prevdebarred | $KohaDates %].</p>
<p>Fines are not charged for manually cancelled holds.</p>
</div>
<div id="dropboxmode" class="dialog message" style="display:none;">
- <p>Book drop mode. (Effective checkin date is [% dropboxdate %] ).</p>
+ <p>Book drop mode. (Effective checkin date is [% dropboxdate | html %] ).</p>
</div>
</div>
<div class="yui-g">
<div class="date-select" id="return_date_override_fields">
<div class="hint">Specify return date [% INCLUDE 'date-format.inc' %]: </div>
- <input type="text" size="13" id="return_date_override" name="return_date_override" value="[% return_date_override %]" />
+ <input type="text" size="13" id="return_date_override" name="return_date_override" value="[% return_date_override | html %]" />
<label for="return_date_override_remember"> Remember for next check in:</label>
[% IF ( return_date_override_remember ) %]
</div>
[% END %]
[% FOREACH inputloo IN inputloop %]
- <input type="hidden" name="ri-[% inputloo.counter %]" value="[% inputloo.barcode %]" />
- <input type="hidden" name="dd-[% inputloo.counter %]" value="[% inputloo.duedate %]" />
- <input type="hidden" name="bn-[% inputloo.counter %]" value="[% inputloo.borrowernumber %]" />
+ <input type="hidden" name="ri-[% inputloo.counter | html %]" value="[% inputloo.barcode | html %]" />
+ <input type="hidden" name="dd-[% inputloo.counter | html %]" value="[% inputloo.duedate | html %]" />
+ <input type="hidden" name="bn-[% inputloo.counter | html %]" value="[% inputloo.borrowernumber | html %]" />
[% END %]
<tr>
<td class="ci-duedate">[% IF ( riloo.duedate ) %]
[% IF ( riloo.return_overdue ) %]
- <span class="overdue">[% riloo.duedate %] (overdue)</span>
- [% ELSE %][% riloo.duedate %]
+ <span class="overdue">[% riloo.duedate | html %] (overdue)</span>
+ [% ELSE %][% riloo.duedate | html %]
[% END %]
[% ELSE %]Not checked out
[% END %]
</td>
- <td class="ci-title"><a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% riloo.itembiblionumber %]">
- [% riloo.itemtitle |html %]
+ <td class="ci-title"><a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% riloo.itembiblionumber | html %]">
+ [% riloo.itemtitle | html %]
</a>
[% IF ( riloo.enumchron ) %]
<br/>
- <span class="item_enumeration" style="white-space: nowrap;">[% riloo.enumchron %]</span>
+ <span class="item_enumeration" style="white-space: nowrap;">[% riloo.enumchron | html %]</span>
[% END %]
</td>
- <td class="ci-author">[% riloo.itemauthor %]</td>
- <td class="ci-barcode"><a href="/cgi-bin/koha/catalogue/moredetail.pl?biblionumber=[% riloo.itembiblionumber %]&itemnumber=[% riloo.itemnumber %]#item[% riloo.itemnumber %]">[% riloo.barcode %]</a></td>
- <td class="ci-homelibrary">[% Branches.GetName( riloo.homebranch ) %]</td>
- <td class="ci-holdinglibrary">[% Branches.GetName( riloo.holdingbranch ) %]</td>
- <td class="ci-shelvinglocation">[% riloo.location %]</td>
- <td class="ci-callnumber">[% riloo.itemcallnumber %]</td>
+ <td class="ci-author">[% riloo.itemauthor | html %]</td>
+ <td class="ci-barcode"><a href="/cgi-bin/koha/catalogue/moredetail.pl?biblionumber=[% riloo.itembiblionumber | html %]&itemnumber=[% riloo.itemnumber | html %]#item[% riloo.itemnumber | html %]">[% riloo.barcode | html %]</a></td>
+ <td class="ci-homelibrary">[% Branches.GetName( riloo.homebranch ) | html %]</td>
+ <td class="ci-holdinglibrary">[% Branches.GetName( riloo.holdingbranch ) | html %]</td>
+ <td class="ci-shelvinglocation">[% riloo.location | html %]</td>
+ <td class="ci-callnumber">[% riloo.itemcallnumber | html %]</td>
<td class="ci-dateaccessioned">[% riloo.dateaccessioned | $KohaDates %]</td>
- <td class="ci-type">[% ItemTypes.GetDescription( riloo.itemtype ) %] [% AuthorisedValues.GetByCode('CCODE', riloo.ccode) %]</td>
+ <td class="ci-type">[% ItemTypes.GetDescription( riloo.itemtype ) | html %] [% AuthorisedValues.GetByCode('CCODE', riloo.ccode) | html %]</td>
<td class="ci-patron">[% IF ( riloo.duedate ) %]
- <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% riloo.borrowernumber %]">
- [% riloo.borsurname %], [% riloo.borfirstname %] ([% riloo.borcategorycode %])
+ <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% riloo.patron.borrowernumber | html %]">
+ [% riloo.patron.surname | html %], [% riloo.patron.firstname | html %] ([% riloo.patron.category.description | html %])
</a>
[% IF riloo.borissuescount %]
<span class="results_summary nowrap">
<span class="label">Checkouts:</span>
<span class="number_box">
- <a href="/cgi-bin/koha/circ/circulation.pl?borrowernumber=[% riloo.borrowernumber %]">[% riloo.borissuescount %]</a>
+ <a href="/cgi-bin/koha/circ/circulation.pl?borrowernumber=[% riloo.patron.borrowernumber | html %]">[% riloo.borissuescount | html %]</a>
</span>
</span>
[% END %]
[% ELSE %]Not checked out[% END %]</td>
<td class="ci-note">
- [% IF ( riloo.bornote ) %]<p><span class="circ-hlt patron-note">[% riloo.bornote %]</p></span>[% END %]
- [% IF ( riloo.itemnote ) %]<p><span class="circ-hlt item-note-public">[% riloo.itemnote %]</p></span>[% END %]
- [% IF ( riloo.itemnotes_nonpublic ) %]<p><span class="circ-hlt item-note-nonpublic">[% riloo.itemnotes_nonpublic %]</p></span>[% END %]
+ [% IF ( riloo.patron.borrowernotes ) %]<p><span class="circ-hlt patron-note">[% riloo.patron.borrowernotes | html %]</p></span>[% END %]
+ [% IF ( riloo.itemnote ) %]<p><span class="circ-hlt item-note-public">[% riloo.itemnote | html %]</p></span>[% END %]
+ [% IF ( riloo.itemnotes_nonpublic ) %]<p><span class="circ-hlt item-note-nonpublic">[% riloo.itemnotes_nonpublic | html %]</p></span>[% END %]
</td>
</tr>
[% END %]
[% INCLUDE 'datatables.inc' %]
[% INCLUDE 'columns_settings.inc' %]
[% INCLUDE 'calendar.inc' %]
- <script type="text/javascript" src="[% interface %]/lib/jquery/plugins/jquery-ui-timepicker-addon.min_[% KOHA_VERSION %].js"></script>
+ [% Asset.js("lib/jquery/plugins/jquery-ui-timepicker-addon.min.js") | $raw %]
[% INCLUDE 'timepicker.inc' %]
<script type="text/javascript">
$(".modal").on('hidden.bs.modal', function (e) { $("#barcode").focus(); });
+ $(".print-slip").on('click', function(e) {
+ e.preventDefault();
+ Dopop('hold-transfer-slip.pl?borrowernumber=[% patron.borrowernumber | html %]&biblionumber=[% biblionumber | html %]');
+ });
+
[% IF print_slip %]
- Dopop('hold-transfer-slip.pl?borrowernumber=[% patron.borrowernumber %]&biblionumber=[% biblionumber %]');
+ Dopop('hold-transfer-slip.pl?borrowernumber=[% borrowernumber | html %]&biblionumber=[% biblionumber | html %]&itemnumber=[% itemnumber | html %]');
[% END %]
- var columns_settings = [% ColumnsSettings.GetColumns( 'circ', 'returns', 'checkedintable', 'json' ) %]
- var returns_table = KohaTable("#checkedintable", {
+ var columns_settings = [% ColumnsSettings.GetColumns( 'circ', 'returns', 'checkedintable', 'json' ) | $raw %]
+ var returns_table = KohaTable("checkedintable", {
"bFilter":false,
"bPaginate":false,
"bInfo":false,