Bug 28035: Improve breadcrumbs of cataloging search page
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / circ / transfers_to_send.tt
1 [% USE raw %]
2 [% USE Asset %]
3 [% USE Koha %]
4 [% USE KohaDates %]
5 [% USE Branches %]
6 [% USE ItemTypes %]
7 [% SET footerjs = 1 %]
8 [% PROCESS 'transfer_reasons.inc' %]
9 [% INCLUDE 'doc-head-open.inc' %]
10 <title>Koha &rsaquo; Circulation &rsaquo; Transfers to send</title>
11 [% INCLUDE 'doc-head-close.inc' %]
12 </head>
13
14 <body id="circ_transferstosend" class="circ">
15 [% INCLUDE 'header.inc' %]
16 [% INCLUDE 'circ-search.inc' %]
17
18 <nav id="breadcrumbs" aria-labal="Breadcrumb" class="breadcrumb">
19     <ol>
20         <li>
21             <a href="/cgi-bin/koha/mainpage.pl">Home</a>
22         </li>
23         <li>
24             <a href="/cgi-bin/koha/circ/circulation-home.pl">Circulation</a>
25         </li>
26         <li>
27             <a href="#" aria-current="page">Transfers to send</a>
28         </li>
29     </ol>
30 </nav>
31
32 <div class="main container-fluid">
33     <div class="row">
34         <div class="col-sm-12">
35             <main>
36                 <div class="row">
37
38                     [% IF Koha.Preference('CircSidebar') %]
39                     <div class="col-sm-10 col-sm-push-2">
40                     [% ELSE %]
41                     <div class="col-md-10 col-md-offset-1 col-lg-8 col-lg-offset-2">
42                     [% END %]
43
44                         <h1>Transfers requested of your library as of [% show_date | $KohaDates %]</h1>
45
46                         [% IF ( libraries ) %]
47                         <p>Your library is the origin for the following transfer(s)</p>
48                         <div id="resultlist">
49                             [% FOREACH library IN libraries %]
50                                 [% IF ( library.branchcode ) %]
51                                 <table style="width: 100%" id="transferst[% library.branchcode | html %]">
52                                     <caption>Sending to [% library.branchname | html %]</caption>
53                                     <thead>
54                                         <tr>
55                                             <th>Date of request</th>
56                                             <th class="anti-the">Title</th>
57                                             <th>Reason</th>
58                                             <th>On loan</th>
59                                             <th>Home library</th>
60                                             <th>Call no.</th>
61                                             <th>Actions</th>
62                                         </tr>
63                                     </thead>
64                                     <tbody>
65                                         [% FOREACH transfer IN library.inbound_transfers %]
66                                             [% UNLESS transfer.datesent %]
67                                             <tr>
68                                                 <td data-order="[% transfer.daterequested | html %]">
69                                                     [% transfer.daterequested | $KohaDates %]
70                                                 </td>
71                                                 <td>
72                                                     [% INCLUDE 'biblio-title.inc' biblio = transfer.item.biblio link = 1 %][% IF ( transfer.item.biblio.author ) %] by [% transfer.item.biblio.author | html %][% END %]
73                                                     [% IF ( transfer.item.effective_itemtype ) %] (<b>[% ItemTypes.GetDescription( transfer.item.effective_itemtype ) | html %]</b>)[% END %]
74                                                     <br />Barcode: [% transfer.item.barcode | html %]
75                                                 </td>
76                                                 <td><p>[% PROCESS transfer_reason transfer=transfer %]</p></td>
77                                                 <td>[% IF transfer.item.onloan %]Due [% transfer.item.onloan | $KohaDates %][% ELSE %]On shelf[% END %]</td>
78                                                 <td>[% Branches.GetName( transfer.item.homebranch ) | html %]</td>
79                                                 <td>[% transfer.item.itemcallnumber | html %]</td>
80                                                 <td class="actions">
81                                                     [% IF transfer.reason == 'StockrotationAdvance' %]
82                                                     <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>
83                                                     [% END %]
84                                                 </td>
85                                             </tr>
86                                             [% END %]
87                                         [% END %]
88                                     </tbody>
89                                 </table>
90                                 [% END %]
91                             [% END %]
92                         </div>
93                         [% ELSE %]
94                         <p>No transfers to send</p>
95                         [% END %]
96
97                     </div> <!-- /.col-sm-10.col-sm-push-2 OR /.col-md-10 col-md-offset-1 col-lg-8 col-lg-offset-2-->
98
99                     [% IF Koha.Preference('CircSidebar') %]
100                     <div class="col-sm-2 col-sm-pull-10">
101                         <aside>
102                             [% INCLUDE 'circ-nav.inc' %]
103                         </aside>
104                     </div> <!-- /.col-sm-2.col-sm-pull-10 -->
105                     [% END %]
106
107                 </div> <!-- /.row -->
108             </main>
109         </div> <!-- /.col-sm-12 -->
110     </div> <!-- /.row -->
111
112 [% MACRO jsinclude BLOCK %]
113     [% INCLUDE 'datatables.inc' %]
114     <script>
115         $(document).ready(function() {
116             [% FOREACH library IN libraries %]
117             $("#transferst[% library.branchcode | html %]").dataTable($.extend(true, {}, dataTablesDefaults, {
118                 "aoColumnDefs": [
119                     { "aTargets": [ -1 ], "bSortable": false, "bSearchable": false },
120                     { "sType": "anti-the", "aTargets" : [ "anti-the" ] }
121                 ],
122                 "sDom": 't',
123                 "bPaginate": false
124             }));
125             [% END %]
126         });
127     </script>
128 [% END %]
129
130 [% INCLUDE 'intranet-bottom.inc' %]