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