Bug 30952: (follow-up) Undo change to Home breadcrumb
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / circ / branchtransfers.tt
1 [% USE Koha %]
2 [% USE Branches %]
3 [% USE ItemTypes %]
4 [% USE AuthorisedValues %]
5 [% INCLUDE 'doc-head-open.inc' %]
6 <title>Transfers &rsaquo; Circulation &rsaquo; Koha</title>
7 [% INCLUDE 'doc-head-close.inc' %]
8 </head>
9 <body id="circ_branchtransfers" class="circ">
10 [% WRAPPER 'header.inc' %]
11     [% INCLUDE 'circ-search.inc' %]
12 [% END %]
13
14 [% WRAPPER 'sub-header.inc' %]
15 <nav id="breadcrumbs" aria-label="Breadcrumb" class="breadcrumb">
16     <ol>
17         <li>
18             <a href="/cgi-bin/koha/mainpage.pl">Home</a>
19         </li>
20         <li>
21             <a href="/cgi-bin/koha/circ/circulation-home.pl">Circulation</a>
22         </li>
23         <li>
24             <a href="#" aria-current="page">
25                 Transfers
26             </a>
27         </li>
28     </ol>
29 </nav>
30 [% END %]
31
32 <div class="main container-fluid">
33     <div class="row">
34         [% IF Koha.Preference('CircSidebar') %]
35             <div class="col-sm-10 col-sm-push-2">
36         [% ELSE %]
37             <div class="col-md-10 col-md-offset-1 col-lg-8 col-lg-offset-2">
38         [% END %]
39             <main>
40
41             <h1>Transfer items</h1>
42
43 [% IF ( found ) %]
44     <h3>Reserve found</h3>
45     <table>
46         <caption>
47             [% IF ( reserved ) %]
48                 <span>Hold found for [% INCLUDE 'patron-title.inc' patron => hold.patron | html %]</span> (<a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% borrowernumber | uri %]">[% borrowernumber | html %]</a>).
49             [% END %]
50             [% IF ( waiting ) %]
51                 <span>Item is marked waiting at [% branchname | html %] for [% name | html %]</span> (<a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% borrowernumber | uri %]">[% borrowernumber | html %]</a>).
52             [% END %]
53             [% IF ( transferred ) %]
54                 <span>Item has been trapped to fill a hold and is in transit for [% name | html %]</span> (<a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% borrowernumber | uri %]">[% borrowernumber | html %]</a>).
55             [% END %]
56         </caption>
57         <tr>
58             <th>
59                 [% IF ( reserved ) %]
60                         Transfer item to [% Branches.GetName( hold.branchcode ) | html %]:
61                 [% END %]
62                 [% IF ( waiting or transferred ) %]Cancel hold and then attempt transfer: [% END %]
63             </th>
64             <td>
65                 <form method="post" name="mainform" id="mainform" action="branchtransfers.pl">
66                     [% FOREACH trsfitemloo IN trsfitemloop %]
67                         <input type="hidden" name="bc-[% trsfitemloo.counter | html %]" value="[% trsfitemloo.item.barcode | html %]" />
68                         <input type="hidden" name="fb-[% trsfitemloo.counter | html %]" value="[% trsfitemloo.frombrcd | html %]" />
69                         <input type="hidden" name="tb-[% trsfitemloo.counter | html %]" value="[% trsfitemloo.tobrcd | html %]" />
70                     [% END %]
71                     <input type="hidden" name="reserve_id" value="[% hold.reserve_id | html %]" />
72                     <input type="hidden" name="itemnumber" value="[% itemnumber | html %]" />
73                     <input type="hidden" name="borrowernumber" value="[% borrowernumber | html %]" />
74                     <input type="hidden" name="tobranchcd" value="[% tobranchcd | html %]" />
75                     <input type="hidden" name="barcode" value="[% barcode | html %]" />
76                     [% IF ( waiting or transferred or processing ) %]
77                         <input type="hidden" name="request" value="KillWaiting" />
78                         <input type="submit" value="Cancel" />
79                     [% END %]
80                     [% IF ( reserved ) %]
81                         <input type="hidden" name="request" value="SetTransit" />
82                         <input type="submit" value="Transfer" />
83                     [% END %]
84                 </form>
85             </td>
86         </tr>
87             [% IF ( reserved ) %]
88                 <tr>
89                     <th>Cancel hold and then attempt transfer:</th>
90                     <td>
91                         <form method="post" name="mainform" id="mainform" action="branchtransfers.pl">
92                             [% FOREACH trsfitemloo IN trsfitemloop %]
93                                 <input type="hidden" name="bc-[% trsfitemloo.counter | html %]" value="[% trsfitemloo.item.barcode | html %]" />
94                                 <input type="hidden" name="fb-[% trsfitemloo.counter | html %]" value="[% trsfitemloo.frombrcd | html %]" />
95                                 <input type="hidden" name="tb-[% trsfitemloo.counter | html %]" value="[% trsfitemloo.tobrcd | html %]" />
96                             [% END %]
97                             <input type="hidden" name="reserve_id" value="[% hold.reserve_id | html %]" />
98                             <input type="hidden" name="biblionumber" value="[% biblionumber | html %]" />
99                             <input type="hidden" name="borrowernumber" value="[% borrowernumber | html %]" />
100                             <input type="hidden" name="tobranchcd" value="[% tobranchcd | html %]" />
101                             <input type="hidden" name="request" value="KillReserved" />
102                             <input type="submit" value="Cancel" />
103                         </form>
104                     </td>
105                 </tr>
106             [% END %]
107                 <tr>
108                     <th>Ignore and return to transfers: </th>
109                         <td>
110                             <form method="post" name="mainform" id="mainform" action="branchtransfers.pl">
111                                 <input type="hidden" name="tobranchcd" value="[% tobranchcd | html %]" />
112                                 <input type="hidden" name="barcode" />
113                                 [% FOREACH trsfitemloo IN trsfitemloop %]
114                                     <input type="hidden" name="bc-[% trsfitemloo.counter | html %]" value="[% trsfitemloo.item.barcode | html %]" />
115                                     <input type="hidden" name="fb-[% trsfitemloo.counter | html %]" value="[% trsfitemloo.frombrcd | html %]" />
116                                     <input type="hidden" name="tb-[% trsfitemloo.counter | html %]" value="[% trsfitemloo.tobrcd | html %]" />
117                                 [% END %]
118                                 <input type="submit" value="Ignore" />
119                             </form>
120                         </td>
121                 </tr>
122     </table>
123
124 [% ELSE %]
125                     [% IF ( reqmessage ) %]
126                      <div class="dialog message">
127                         <ul>
128                          [% IF ( cancelled ) %]
129                              <li>Reserve cancelled</li>
130                          [% END %]
131                          [% IF ( settransit ) %]
132                              <li>Item is now in transit to [% Branches.GetName(tobranchcd) | html %]</li>
133                          [% END %]
134                          </ul>
135                     </div>
136                      [% END %]
137
138                      [% IF ( errmsgloop ) %]
139                         <div class="dialog message">
140                             <ul>
141                              [% FOREACH errmsgloo IN errmsgloop %]
142                               [% IF ( errmsgloo.errbadcode ) %]
143                                   <li>No item with barcode: [% errmsgloo.msg | html %]</li>
144                               [% END %]
145                               [% IF ( errmsgloo.errispermanent ) %]
146                                   <li>Please return item to home library: [% Branches.GetName( errmsgloo.msg ) | html %]</li>
147                               [% END %]
148                               [% IF ( errmsgloo.errnotallowed ) %]
149                                   <li>Transfer is not allowed for:
150                                       <ol>
151                                           [% IF ( Koha.Preference('BranchTransferLimitsType') == 'itemtype' ) %]
152                                               <li>Item type: <strong>[% ItemTypes.GetDescription( errmsgloo.code ) | html %]</strong></li>
153                                           [% ELSE %]
154                                           <li>Collection: <strong>[% AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.ccode', authorised_value => errmsgloo.code ) | html %]</strong></li>
155                                           [% END %]
156                                           <li>Originating library: <strong>[% Branches.GetName( errmsgloo.fbr ) | html %]</strong></li>
157                                           <li>Destination library: <strong>[% Branches.GetName( errmsgloo.tbr ) | html %]</strong></li>
158                                       </ol>
159                                   </li>
160                               [% END %]
161                               [% IF ( errmsgloo.errdesteqholding ) %]
162                                   <li>Item is already at destination library.</li>
163                               [% END %]
164                               [% IF ( errmsgloo.errwasreturned ) %]
165                                   <li>Item was on loan to <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% errmsgloo.patron.borrowernumber | uri %]">
166                                   [% errmsgloo.patron.firstname | html %] [% errmsgloo.patron.surname | html %]
167                                   ([% errmsgloo.patron.cardnumber | html %])</a> and has been returned.</li>
168                               [% END %]
169                           [% END %]
170                           </ul>
171                             </div>
172                         [% END %]
173
174 <div id="branchtransfers">
175     <form method="post" name="mainform" id="mainform" action="/cgi-bin/koha/circ/branchtransfers.pl">
176         <fieldset class="brief">
177             <legend>Transfer</legend>
178             <ol>
179             <li>
180                 <label for="tobranchcd">Destination library: </label>
181                     <select name="tobranchcd" id="tobranchcd">
182                         [% PROCESS options_for_libraries libraries => Branches.all( selected => tobranchcd, unfiltered => 1) %]
183                     </select>
184             </li>
185             <li>
186                 <label for="barcode">Enter barcode: </label>
187                 <input name="barcode" id="barcode" size="15" class="focus" type="text" /> <input type="submit" value="Submit" />
188             </li>
189                         </ol>
190         </fieldset>
191         [% FOREACH trsfitemloo IN trsfitemloop %]
192             <input type="hidden" name="bc-[% trsfitemloo.counter | html %]" value="[% trsfitemloo.item.barcode | html %]" />
193             <input type="hidden" name="fb-[% trsfitemloo.counter | html %]" value="[% trsfitemloo.frombrcd | html %]" />
194             <input type="hidden" name="tb-[% trsfitemloo.counter | html %]" value="[% trsfitemloo.tobrcd | html %]" />
195         [% END %]
196     </form>
197 </div>
198
199     [% IF ( trsfitemloop ) %]
200                 <table>
201             <caption>Transferred items</caption>
202             <tr>
203                 <th class="tf-title">Title</th>
204                 <th class="tf-author">Author</th>
205                 <th class="tf-barcode">Barcode</th>
206                 <th class="tf-location">Shelving location</th>
207                 <th class="tf-itemcallnumber">Call number</th>
208                 <th class="tf-itemtype">Item type</th>
209                 <th class="tf-ccode">Collection</th>
210                 <th class="tf-origin">Origin</th>
211                 <th class="tf-destination">Destination</th>
212             </tr>
213             [% FOREACH trsfitemloo IN trsfitemloop %]
214                 <tr>
215                     <td class="tf-title">
216                         [% INCLUDE 'biblio-title.inc' biblio=trsfitemloo.item.biblio link=1 %]
217                         </a>
218                     </td>
219                     <td class="tf-author">[% trsfitemloo.item.biblio.author | html %]</td>
220                     <td class="tf-barcode"><a href="/cgi-bin/koha/catalogue/moredetail.pl?biblionumber=[% trsfitemloo.item.biblionumber | uri %]&amp;itemnumber=[% trsfitemloo.item.itemnumber | uri %]#item[% trsfitemloo.item.itemnumber | uri %]">[% trsfitemloo.item.barcode | html %]</a></td>
221                     <td class="tf-location"><span class="shelvingloc">[% AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.location', authorised_value => trsfitemloo.item.location ) | html %]</span></td>
222                     <td class="tf-itemcallnumber">[% trsfitemloo.item.itemcallnumber | html %]</td>
223                     <td class="tf-itemtype">[% ItemTypes.GetDescription( trsfitemloo.item.effective_itemtype ) | html %]</td>
224                     <td class="tf-ccode">[% AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.ccode', authorised_value => trsfitemloo.item.ccode ) | html %]</td>
225                     <td class="tf-origin">[% Branches.GetName( trsfitemloo.frombrcd ) | html %]</td>
226                     <td class="tf-destination">[% Branches.GetName( trsfitemloo.tobrcd ) | html %]</td>
227                 </tr>
228             [% END %]
229         </table>
230     [% END %]
231         
232         
233 [% END %]
234
235     </main>
236         </div> <!-- /.col-sm-10.col-sm-push-2 -->
237         [% IF Koha.Preference('CircSidebar') %]
238             <div class="col-sm-2 col-sm-pull-10">
239                 <aside>
240                     [% INCLUDE 'circ-nav.inc' %]
241                 </aside>
242             </div> <!-- /.col-sm-2.col-sm-pull-10 -->
243         [% END %]
244     </div> <!-- /.row -->
245
246 [% INCLUDE 'intranet-bottom.inc' %]