|
Line 0
Link Here
|
|
|
1 |
[% USE Koha %] |
| 2 |
[% USE KohaDates %] |
| 3 |
[% USE AuthorisedValues %] |
| 4 |
[% USE Branches %] |
| 5 |
[% USE ItemTypes %] |
| 6 |
[% USE Asset %] |
| 7 |
[% SET footerjs = 1 %] |
| 8 |
[% INCLUDE 'doc-head-open.inc' %] |
| 9 |
<title>Koha › Circulation › Recalls to pull</title> |
| 10 |
[% INCLUDE 'doc-head-close.inc' %] |
| 11 |
<style type="text/css"> p { margin-top: 0; }</style> |
| 12 |
<link rel="stylesheet" type="text/css" href="[% interface %]/[% theme %]/css/datatables.css" /> |
| 13 |
</head> |
| 14 |
<body id="circ_recalls_to_pull" class="circ"> |
| 15 |
[% INCLUDE 'header.inc' %] |
| 16 |
[% INCLUDE 'cat-search.inc' %] |
| 17 |
|
| 18 |
<div id="breadcrumbs"> |
| 19 |
<a href="/cgi-bin/koha/mainpage.pl">Home</a> |
| 20 |
› <a href="/cgi-bin/koha/circ/circulation-home.pl">Circulation</a> |
| 21 |
› <a href="/cgi-bin/koha/recalls/recalls_to_pull.pl">Recalls to pull</a> |
| 22 |
</div> |
| 23 |
|
| 24 |
<div class="main container-fluid"> |
| 25 |
<div class="row"> |
| 26 |
[% IF Koha.Preference('CircSidebar') %] |
| 27 |
<div class="col-sm-10 col-sm-push-2"> |
| 28 |
[% ELSE %] |
| 29 |
<div class="col-md-10 col-md-offset-1 col-lg-8 col-lg-offset-2"> |
| 30 |
[% END %] |
| 31 |
<main> |
| 32 |
|
| 33 |
<h1>Recalls to pull</h1> |
| 34 |
[% IF Koha.Preference('UseRecalls') %] |
| 35 |
<div id="recalls"> |
| 36 |
[% IF recalls.count %] |
| 37 |
<table id="recalls-table"> |
| 38 |
<thead> |
| 39 |
<tr> |
| 40 |
<th class="recall-topull">Pull this many items</th> |
| 41 |
<th class="recall-items">Items available</th> |
| 42 |
<th class="recall-patrons">Patrons with recalls</th> |
| 43 |
<th class="recall-firstpatron">First patron</th> |
| 44 |
<th class="recall-title anti-the">Title</th> |
| 45 |
<th class="recall-libraries string-sort">Libraries</th> |
| 46 |
<th class="recall-callnumbers">Available call numbers</th> |
| 47 |
<th class="recall-copynumbers">Available copy numbers</th> |
| 48 |
<th class="recall-enumeration">Available enumeration</th> |
| 49 |
<th class="recall-itemtypes string-sort">Available item types</th> |
| 50 |
<th class="recall-locations string-sort">Available locations</th> |
| 51 |
<th class="recall-date title-string">Earlier recall date</th> |
| 52 |
<th class="recall-action"> </th> |
| 53 |
</tr> |
| 54 |
</thead> |
| 55 |
<tbody> |
| 56 |
[% FOREACH recall IN recalls %] |
| 57 |
<tr> |
| 58 |
<td class="recall-topull"><b>[% recall.pull_count %]</b></td> |
| 59 |
<td class="recall-items">[% recall.items_count %]</td> |
| 60 |
<td class="recall-patrons">[% recall.patrons_count %]</td> |
| 61 |
<td class="recall-firstpatron"><a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% recall.first_patron.borrowernumber %]">[% recall.first_patron.firstname %] [% recall.first_patron.surname %]</a></td> |
| 62 |
<td class="recall-title"> |
| 63 |
[% INCLUDE 'biblio-default-view.inc' biblionumber=recall.biblio.biblionumber %] |
| 64 |
[% INCLUDE 'biblio-title.inc' biblio=recall.biblio %] |
| 65 |
[% IF recall.biblio.author %] by [% recall.biblio.author %][% END %] |
| 66 |
</td> |
| 67 |
<td class="recall-libraries"> |
| 68 |
<ul> |
| 69 |
[% FOREACH library IN recall.libraries %] |
| 70 |
<li>[% Branches.GetName( library ) %]</li> |
| 71 |
[% END %] |
| 72 |
</ul> |
| 73 |
</td> |
| 74 |
<td class="recall-callnumbers"> |
| 75 |
<ul> |
| 76 |
[% FOREACH callnumber IN recall.callnumbers %] |
| 77 |
<li>[% callnumber %]</li> |
| 78 |
[% END %] |
| 79 |
</ul> |
| 80 |
</td> |
| 81 |
<td class="recall-copynumbers"> |
| 82 |
<ul> |
| 83 |
[% FOREACH copyno IN recall.copynumbers %] |
| 84 |
<li>[% copyno %]</li> |
| 85 |
[% END %] |
| 86 |
</ul> |
| 87 |
</td> |
| 88 |
<td class="recall-enumeration"> |
| 89 |
<ul> |
| 90 |
[% FOREACH enumchron IN recall.enumchrons %] |
| 91 |
<li>[% enumchron %]</li> |
| 92 |
[% END %] |
| 93 |
</ul> |
| 94 |
</td> |
| 95 |
<td class="recall-itemtypes"> |
| 96 |
<ul> |
| 97 |
[% FOREACH itemtype IN recall.itemtypes %] |
| 98 |
<li>[% ItemTypes.GetDescription( itemtype ) %]</li> |
| 99 |
[% END %] |
| 100 |
</ul> |
| 101 |
</td> |
| 102 |
<td class="recall-locations"> |
| 103 |
<ul> |
| 104 |
[% FOREACH loc IN recall.locations %] |
| 105 |
<li>[% AuthorisedValues.GetByCode('LOC', loc) %]</li> |
| 106 |
[% END %] |
| 107 |
</ul> |
| 108 |
</td> |
| 109 |
<td class="recall-date"> |
| 110 |
<span title="[% recall.first_date %]">[% recall.first_date | $KohaDates %] in [% recall.first_library.branchname %]</span> |
| 111 |
</td> |
| 112 |
<td class="recall-action"> |
| 113 |
<form action="/cgi-bin/koha/recalls/recalls_to_pull.pl" method="post"> |
| 114 |
<input type="hidden" name="op" value="cancel"> |
| 115 |
<input type="hidden" name="recall_id" value="[% recall.recall_id %]"> |
| 116 |
<input type="submit" value="Cancel recall"> |
| 117 |
</form> |
| 118 |
</td> |
| 119 |
</tr> |
| 120 |
[% END %] |
| 121 |
</tbody> |
| 122 |
</table> |
| 123 |
[% ELSE %] |
| 124 |
<div class="dialog message">There are no recalls to pull.</div> |
| 125 |
[% END %] |
| 126 |
</div> |
| 127 |
[% ELSE %] |
| 128 |
<div class="dialog message">Recalls have not been enabled. Enable the <a href="/cgi-bin/koha/admin/preferences.pl?tab=circulation">UseRecalls</a> system preference to use recalls.</div> |
| 129 |
[% END %] |
| 130 |
|
| 131 |
</main> |
| 132 |
</div> <!-- /.col-etc --> |
| 133 |
|
| 134 |
[% IF Koha.Preference('CircSidebar') %] |
| 135 |
<div class="col-sm-2 col-sm-pull-10"> |
| 136 |
<aside> |
| 137 |
[% INCLUDE 'circ-nav.inc' %] |
| 138 |
</aside> |
| 139 |
</div> <!-- /.col-sm-2.col-sm-pull-10 --> |
| 140 |
[% END %] |
| 141 |
|
| 142 |
</div> <!-- /.row --> |
| 143 |
</div> |
| 144 |
|
| 145 |
[% MACRO jsinclude BLOCK %] |
| 146 |
[% INCLUDE 'datatables.inc' %] |
| 147 |
[% INCLUDE 'columns_settings.inc' %] |
| 148 |
[% Asset.js("js/recalls.js") %] |
| 149 |
[% END %] |
| 150 |
|
| 151 |
[% INCLUDE 'intranet-bottom.inc' %] |