153 lines
4.8 KiB
Text
153 lines
4.8 KiB
Text
[% USE raw %]
|
|
[% USE Asset %]
|
|
[% USE KohaDates %]
|
|
[% USE Koha %]
|
|
[% USE AuthorisedValues %]
|
|
[% USE Branches %]
|
|
[% USE TablesSettings %]
|
|
[% USE ItemTypes %]
|
|
[% SET footerjs = 1 %]
|
|
[% INCLUDE 'doc-head-open.inc' %]
|
|
<title>Holds history for [% INCLUDE 'patron-title.inc' no_html = 1 %]</title>
|
|
[% INCLUDE 'doc-head-close.inc' %]
|
|
</head>
|
|
|
|
<body id="pat_holdshistory" class="pat">
|
|
[% INCLUDE 'header.inc' %]
|
|
[% INCLUDE 'patron-search-header.inc' %]
|
|
|
|
<nav id="breadcrumbs" aria-label="Breadcrumb" class="breadcrumb">
|
|
<ol>
|
|
<li>
|
|
<a href="/cgi-bin/koha/mainpage.pl">Home</a>
|
|
</li>
|
|
<li>
|
|
<a href="/cgi-bin/koha/members/members-home.pl">Patrons</a>
|
|
</li>
|
|
<li>
|
|
<a href="#" aria-current="page">
|
|
Holds history for [% INCLUDE 'patron-title.inc' %]
|
|
</a>
|
|
</li>
|
|
</ol>
|
|
</nav>
|
|
|
|
<div class="main container-fluid">
|
|
<div class="row">
|
|
<div class="col-sm-10 col-sm-push-2">
|
|
<main>
|
|
|
|
[% INCLUDE 'members-toolbar.inc' %]
|
|
<h1>Holds history</h1>
|
|
|
|
[% UNLESS Koha.Preference('intranetreadinghistory') %]
|
|
<div class="dialog alert">Staff members are not allowed to access patron's holds history</div>
|
|
[% ELSIF is_anonymous %]
|
|
<div class="dialog alert">This is the anonymous patron, so no holds history is displayed.</div>
|
|
[% ELSIF ( !holds ) %]
|
|
<div class="dialog message">This patron has no holds history.</div>
|
|
[% ELSE %]
|
|
|
|
[% SET show_itemtype_column = Koha.Preference('AllowHoldItemTypeSelection') %]
|
|
|
|
<div id="holdshistory">
|
|
<table id="table_holdshistory">
|
|
<thead>
|
|
<tr>
|
|
<th class="anti-the">Title</th>
|
|
<th>Author</th>
|
|
<th>Barcode</th>
|
|
<th>Library</th>
|
|
<th>Hold date</th>
|
|
<th>Expiration date</th>
|
|
<th>Waiting date</th>
|
|
<th>Cancellation date</th>
|
|
[% IF show_itemtype_column %]
|
|
<th>Requested item type</th>
|
|
[% END %]
|
|
<th>Status</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
[% FOREACH hold IN holds %]
|
|
<tr>
|
|
<td>[% INCLUDE 'biblio-title.inc' biblio=hold.biblio link = 1 %]</td>
|
|
<td>[% hold.biblio.author | html %]</td>
|
|
<td>[% hold.item.barcode | html %]</td>
|
|
<td>[% Branches.GetName( hold.branchcode ) | html %]</td>
|
|
<td data-order="[% hold.reservedate | html %]">[% hold.reservedate | $KohaDates %]</td>
|
|
<td data-order="[% hold.expirationdate | html %]">
|
|
[% hold.expirationdate | $KohaDates %]
|
|
</td>
|
|
<td data-order="[% hold.waitingdate | html %]">
|
|
[% hold.waitingdate | $KohaDates %]
|
|
</td>
|
|
<td data-order="[% hold.cancellationdate | html %]">
|
|
[% hold.cancellationdate | $KohaDates %]
|
|
</td>
|
|
[% IF show_itemtype_column %]
|
|
<td>
|
|
[% IF hold.itemtype %]
|
|
[% ItemTypes.GetDescription( hold.itemtype ) | html %]
|
|
[% ELSE %]
|
|
<span>Any item type</span>
|
|
[% END %]
|
|
</td>
|
|
[% END %]
|
|
<td>
|
|
[% IF hold.found == 'F' %]
|
|
Fulfilled
|
|
[% ELSIF hold.cancellationdate %]
|
|
Cancelled
|
|
[% IF hold.cancellation_reason %]
|
|
([% AuthorisedValues.GetByCode('HOLD_CANCELLATION', hold.cancellation_reason) | html %])
|
|
[% END %]
|
|
[% ELSIF hold.found == 'W' %]
|
|
Waiting
|
|
[% ELSIF hold.found == 'P' %]
|
|
Processing
|
|
[% ELSIF hold.found == 'T' %]
|
|
In transit
|
|
[% ELSE %]
|
|
Pending
|
|
[% END %]
|
|
</td>
|
|
</tr>
|
|
[% END %]
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
|
|
[% END %]
|
|
|
|
</main>
|
|
</div> <!-- /.col-sm-10.col-sm-push-2 -->
|
|
|
|
<div class="col-sm-2 col-sm-pull-10">
|
|
<aside>
|
|
[% INCLUDE 'circ-menu.inc' %]
|
|
</aside>
|
|
</div> <!-- /.col-sm-2.col-sm-pull-10 -->
|
|
</div> <!-- /.row -->
|
|
|
|
[% MACRO jsinclude BLOCK %]
|
|
[% INCLUDE 'datatables.inc' %]
|
|
[% INCLUDE 'columns_settings.inc' %]
|
|
[% INCLUDE 'str/members-menu.inc' %]
|
|
[% Asset.js("js/members-menu.js") | $raw %]
|
|
<script>
|
|
$(document).ready(function() {
|
|
var table_settings = [% TablesSettings.GetTableSettings('members', 'holdshistory', 'holdshistory-table', 'json') | $raw %];
|
|
[% UNLESS show_itemtype_column %]
|
|
//Remove item type column settings
|
|
table_settings['columns'] = table_settings['columns'].filter(function(c){return c['columnname'] != 'itemtype';});
|
|
[% END %]
|
|
var table = KohaTable("table_holdshistory", {
|
|
"sPaginationType": "full",
|
|
"aaSorting": [[4, 'desc']]
|
|
}, table_settings);
|
|
});
|
|
</script>
|
|
[% END %]
|
|
|
|
[% INCLUDE 'intranet-bottom.inc' %]
|