Line 0
Link Here
|
0 |
- |
1 |
[% USE raw %] |
|
|
2 |
[% USE Asset %] |
3 |
[% USE Koha %] |
4 |
[% USE KohaDates %] |
5 |
[% USE Branches %] |
6 |
[% SET footerjs = 1 %] |
7 |
[% INCLUDE 'doc-head-open.inc' %] |
8 |
<title>Koha › Circulation › Transfers to send</title> |
9 |
[% INCLUDE 'doc-head-close.inc' %] |
10 |
</head> |
11 |
|
12 |
<body id="circ_transferstosend" class="circ"> |
13 |
[% INCLUDE 'header.inc' %] |
14 |
[% INCLUDE 'circ-search.inc' %] |
15 |
|
16 |
<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 send</div> |
17 |
|
18 |
<div class="main container-fluid"> |
19 |
<div class="row"> |
20 |
<div class="col-sm-12"> |
21 |
<main> |
22 |
<div class="row"> |
23 |
|
24 |
[% IF Koha.Preference('CircSidebar') %] |
25 |
<div class="col-sm-10 col-sm-push-2"> |
26 |
[% ELSE %] |
27 |
<div class="col-md-10 col-md-offset-1 col-lg-8 col-lg-offset-2"> |
28 |
[% END %] |
29 |
|
30 |
<h1>Transfers requested of your library as of [% show_date | $KohaDates %]</h1> |
31 |
|
32 |
[% IF ( branchesloop ) %] |
33 |
<p>Your library is the origin for the following transfer(s)</p> |
34 |
<div id="resultlist"> |
35 |
[% FOREACH branchesloo IN branchesloop %] |
36 |
[% IF ( branchesloo.branchcode ) %] |
37 |
<table style="width: 100%" id="transferst[% branchesloo.branchcode | html %]"> |
38 |
<caption>Sending to [% branchesloo.branchname | html %]</caption> |
39 |
<thead> |
40 |
<tr> |
41 |
<th class="title-string">Date of request</th> |
42 |
<th class="anti-the">Title</th> |
43 |
<th>Reason</th> |
44 |
<th>Status</th> |
45 |
<th>Home library</th> |
46 |
<th>Call no.</th> |
47 |
<th> </th> |
48 |
</tr> |
49 |
</thead> |
50 |
<tbody> |
51 |
[% FOREACH transfer IN branchesloo.inbound_transfers %] |
52 |
[% UNLESS transfer.datesent %] |
53 |
<tr> |
54 |
<td><p><span title="[% transfer.daterequested | html %]">[% transfer.daterequested | $KohaDates %]</span></p></td> |
55 |
<td> |
56 |
[% INCLUDE 'biblio-default-view.inc' biblionumber = transfer.item.biblionumber %][% INCLUDE 'biblio-title.inc' biblio = transfer.item.biblio %]</a> [% IF ( transfer.item.biblio.author ) %]by [% transfer.item.biblio.author | html %][% END %] |
57 |
[% IF ( transfer.item.effective_itemtype ) %] (<b>[% transfer.item.effective_itemtype | html %]</b>)[% END %] |
58 |
<br />Barcode: [% transfer.item.barcode | html %] |
59 |
</td> |
60 |
<td><p>[% transfer.reason | html %]</p></td> |
61 |
<td>[% IF transfer.item.checkout %]Checked out[% ELSE %]On shelf[% END %]</td> |
62 |
<td>[% Branches.GetName( transfer.item.homebranch ) | html %]</td> |
63 |
<td>[% transfer.item.itemcallnumber | html %]</td> |
64 |
<td class="actions"> |
65 |
[% IF transfer.reason == 'StockrotationAdvance' %] |
66 |
<a href="/cgi-bin/koha/catalogue/stockrotation.pl?op=toggle_in_demand&stage_id=4&item_id=[% transfer.itemnumber | uri %]&biblionumber=[% transfer.item.biblionumber | uri %]" class="btn btn-default btn-xs"><i class="fa fa-fire"></i> Mark "In demand"</a> |
67 |
[% END %] |
68 |
</td> |
69 |
</tr> |
70 |
[% END %] |
71 |
[% END %] |
72 |
</tbody> |
73 |
</table> |
74 |
[% END %] |
75 |
[% END %] |
76 |
</div> |
77 |
[% ELSE %] |
78 |
<p>No transfers to send</p> |
79 |
[% END %] |
80 |
|
81 |
</div> <!-- /.col-sm-10.col-sm-push-2 OR /.col-md-10 col-md-offset-1 col-lg-8 col-lg-offset-2--> |
82 |
|
83 |
[% IF Koha.Preference('CircSidebar') %] |
84 |
<div class="col-sm-2 col-sm-pull-10"> |
85 |
<aside> |
86 |
[% INCLUDE 'circ-nav.inc' %] |
87 |
</aside> |
88 |
</div> <!-- /.col-sm-2.col-sm-pull-10 --> |
89 |
[% END %] |
90 |
|
91 |
</div> <!-- /.row --> |
92 |
</main> |
93 |
</div> <!-- /.col-sm-12 --> |
94 |
</div> <!-- /.row --> |
95 |
|
96 |
[% MACRO jsinclude BLOCK %] |
97 |
[% INCLUDE 'datatables.inc' %] |
98 |
<script> |
99 |
$(document).ready(function() { |
100 |
[% FOREACH branchesloo IN branchesloop %] |
101 |
$("#transferst[% branchesloo.branchcode | html %]").dataTable($.extend(true, {}, dataTablesDefaults, { |
102 |
"aoColumnDefs": [ |
103 |
{ "aTargets": [ -1 ], "bSortable": false, "bSearchable": false }, |
104 |
{ "sType": "anti-the", "aTargets" : [ "anti-the" ] }, |
105 |
{ "sType": "title-string", "aTargets" : [ "title-string" ] } |
106 |
], |
107 |
"sDom": 't', |
108 |
"bPaginate": false |
109 |
})); |
110 |
[% END %] |
111 |
}); |
112 |
</script> |
113 |
[% END %] |
114 |
|
115 |
[% INCLUDE 'intranet-bottom.inc' %] |