Owen Leonard
44e7d5e84b
This patch modifies some staff client circulation templates so that JavaScript is included in the footer instead of the header. To test, apply the patch and test the JavaScript-driven features of the modified templates: All button controls, DataTables functionality, tabs, etc. - Article requests (enable ArticleRequests system preference, have at least one outstanding article request) - Request article (Bibliographic detail page -> Request article). - Item circulation statistics (Bibliographic detail page -> Items -> View item's checkout history). - On-site checkouts (enable OnSiteCheckouts system preference; Check out some items as on-site checkouts; Go to Circulation -> Pending on-site checkouts - Overdues report (Circulation -> Overdues). - Holds to pull (Circulation -> Holds to pull). - Renew - Holds ratios (Circulation -> Holds ratios). - Check in - Transfers to receive (Circulation -> Transfers to receive). - Holds queue (Circulation -> Holds queue). - Holds awaiting pickup (Circulation -> Holds awaiting pickup). Signed-off-by: Simon Pouchol <simon.pouchol@biblibre.com> Signed-off-by: Josef Moravec <josef.moravec@gmail.com> Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
111 lines
5.1 KiB
Text
111 lines
5.1 KiB
Text
[% USE Koha %]
|
|
[% USE KohaDates %]
|
|
[% USE Branches %]
|
|
[% SET footerjs = 1 %]
|
|
[% INCLUDE 'doc-head-open.inc' %]
|
|
<title>Koha › Circulation › Transfers to receive</title>
|
|
[% INCLUDE 'doc-head-close.inc' %]
|
|
<link rel="stylesheet" type="text/css" href="[% interface %]/[% theme %]/css/datatables.css" />
|
|
</head>
|
|
|
|
<body id="circ_transferstoreceive" class="circ">
|
|
[% INCLUDE 'header.inc' %]
|
|
[% INCLUDE 'circ-search.inc' %]
|
|
|
|
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> › <a href="/cgi-bin/koha/circ/circulation-home.pl">Circulation</a> › Transfers to receive</div>
|
|
|
|
[% IF Koha.Preference('CircSidebar') %]<div id="doc3" class="yui-t2">[% ELSE %]<div id="doc" class="yui-t7">[% END %]
|
|
|
|
<div id="bd">
|
|
<div id="yui-main">
|
|
[% IF Koha.Preference('CircSidebar') %]<div class="yui-b">[% END %]
|
|
<div class="yui-g">
|
|
|
|
<h1>Transfers made to your library as of [% show_date | $KohaDates %]</h1>
|
|
[% IF ( branchesloop ) %]
|
|
<p>Your library is the destination for the following transfer(s)</p>
|
|
[% IF ( latetransfers ) %]<p>Transfers are <span class="error">considered late</span> after [% TransfersMaxDaysWarning %] days.</p>[% END %]
|
|
<div id="resultlist">
|
|
[% FOREACH branchesloo IN branchesloop %]
|
|
[% IF ( branchesloo.branchcode ) %]
|
|
<table style="width: 100%" id="transferst[% branchesloo.branchcode %]">
|
|
<caption>Coming from [% branchesloo.branchname %]</caption>
|
|
<thead><tr>
|
|
<th class="title-string">Date of transfer</th>
|
|
<th class="anti-the">Title</th>
|
|
<th>On hold for</th>
|
|
<th>Home library</th>
|
|
<th>Call no.</th>
|
|
<th> </th>
|
|
</tr></thead>
|
|
<tbody>[% FOREACH reser IN branchesloo.reserv %]
|
|
[% IF ( reser.messcompa ) %]
|
|
<tr class="problem">
|
|
[% ELSE %]
|
|
<tr>
|
|
[% END %]
|
|
<td><p><span title="[% reser.datetransfer %]">[% reser.datetransfer | $KohaDates %]</span></p> [% IF ( reser.messcompa ) %]<span class="error">Transfer is [% reser.diff %] days late</span>[% END %]</td>
|
|
<td>
|
|
[% INCLUDE 'biblio-default-view.inc' biblionumber = reser.biblionumber %][% reser.title |html %] [% IF ( reser.subtitle ) %] [% FOREACH subtitl IN reser.subtitle %][% subtitl.subfield %][% END %][% END %]</a> [% IF ( reser.author ) %]by [% reser.author %][% END %]
|
|
[% IF ( reser.itemtype ) %] (<b>[% reser.itemtype %]</b>)[% END %]
|
|
<br />Barcode: [% reser.barcode %]
|
|
</td>
|
|
<td>[% IF ( reser.borrowername ) %]
|
|
<a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% reser.borrowernum %]">
|
|
[% reser.borrowername %][%IF ( reser.borrowerfirstname ) %], [% reser.borrowerfirstname %][% END %]
|
|
</a>
|
|
[% IF ( reser.borrowerphone ) %]<br />[% reser.borrowerphone %][% END %]
|
|
[% IF ( reser.borrowermail ) %]
|
|
<br />
|
|
[% BLOCK subject %]Hold:[% END %]
|
|
<a href="mailto:[% reser.borrowermail %]?subject=[% INCLUDE subject %] [% reser.title |html %]">
|
|
[% reser.borrowermail %]
|
|
</a>
|
|
[% END %]
|
|
[% ELSE %]
|
|
<p>None</p>
|
|
[% END %]
|
|
</td>
|
|
<td>[% IF reser.homebranch %][% Branches.GetName( reser.homebranch ) %][% END %]</td>
|
|
<td>[% reser.itemcallnumber %]</td>
|
|
<td class="actions"><a href="/cgi-bin/koha/circ/returns.pl?itemnumber=[% reser.itemnumber %]&canceltransfer=1&dest=ttr" class="btn btn-default btn-xs"><i class="fa fa-times"></i> Cancel transfer</a></td>
|
|
</tr>
|
|
[% END %]</tbody>
|
|
</table>
|
|
[% END %]
|
|
[% END %]
|
|
</div>
|
|
[% ELSE %]
|
|
<p>No transfers to receive</p>
|
|
[% END %]
|
|
|
|
</div>
|
|
</div>
|
|
[% IF Koha.Preference('CircSidebar') %]
|
|
</div>
|
|
<div class="yui-b noprint">
|
|
[% INCLUDE 'circ-nav.inc' %]
|
|
</div>
|
|
[% END %]
|
|
</div>
|
|
|
|
[% MACRO jsinclude BLOCK %]
|
|
[% INCLUDE 'datatables.inc' %]
|
|
<script type="text/javascript">
|
|
$(document).ready(function() {
|
|
[% FOREACH branchesloo IN branchesloop %]
|
|
$("#transferst[% branchesloo.branchcode %]").dataTable($.extend(true, {}, dataTablesDefaults, {
|
|
"aoColumnDefs": [
|
|
{ "aTargets": [ -1 ], "bSortable": false, "bSearchable": false },
|
|
{ "sType": "anti-the", "aTargets" : [ "anti-the" ] },
|
|
{ "sType": "title-string", "aTargets" : [ "title-string" ] }
|
|
],
|
|
"sDom": 't',
|
|
"bPaginate": false
|
|
}));
|
|
[% END %]
|
|
});
|
|
</script>
|
|
[% END %]
|
|
|
|
[% INCLUDE 'intranet-bottom.inc' %]
|