big commit, still breaking things...
[koha.git] / koha-tmpl / intranet-tmpl / default / en / circ / branchtransfers.tmpl
1 <!-- TMPL_INCLUDE Name="circulation-top.inc" -->
2 <div id="mainbloc">
3
4 <h1 class="circulation">Circulation: Transfers</h1>
5 <b>Branch:</b> <!-- TMPL_VAR NAME="genbrname" --> &nbsp;
6 <b>Printer:</b> <!-- TMPL_VAR NAME="genprname" -->
7 <a href="selectbranchprinter.pl" class="button circulation">Change Settings</a>
8 <input type="hidden" name="branch" value="<!-- TMPL_VAR NAME="branch" -->">
9 <input type="hidden" name="printer" value="<!-- TMPL_VAR NAME="printer" -->">
10
11 <!-- TMPL_IF Name="found" -->
12         <table>
13         <tr><th class="circulation">Reserve Found</th></tr>
14         <tr><td>
15         <!-- TMPL_IF Name="reserved" -->
16                         Reserved: reserve found for <!-- TMPL_VAR NAME="name" --> (<a href="/cgi-bin/koha/members/moremember.pl?bornum=<!-- TMPL_VAR NAME="bornum" -->" onclick="openWindow(this,'Member', 480, 640); return false;"><!-- TMPL_VAR NAME="borcnum" --></a>).
17                 <!-- /TMPL_IF -->
18                 <!-- TMPL_IF Name="waiting" --> Item marked Waiting:<br>
19     Item is marked waiting at <!-- TMPL_VAR NAME="branchname" --> for <!-- TMPL_VAR NAME="name" --> (<a href="/cgi-bin/koha/members/moremember.pl?bornum=<!-- TMPL_VAR NAME="bornum" -->" onclick="openWindow(this,'Member', 480, 640); return false;"><!-- TMPL_VAR NAME="borcnum" --></a>).<br><!-- /TMPL_IF -->
20
21 <p>                     
22
23                         <form method="post" action="branchtransfers.pl"><!-- TMPL_IF Name="reserved" -->Set reserve to waiting and transfer book to <b><!-- TMPL_VAR NAME="branchname" --> </b>: <!-- /TMPL_IF -->
24                         <!-- TMPL_IF Name="waiting" --><strong>Cancel reservation and then attempt transfer:</strong> <!-- /TMPL_IF -->
25                                 <!-- TMPL_LOOP Name="trsfitemloop" -->
26                                         <input type="hidden" name="bc-<!-- TMPL_VAR NAME="counter" -->" value="<!-- TMPL_VAR NAME="barcode" -->">
27                                         <input type="hidden" name="fb-<!-- TMPL_VAR NAME="counter" -->" value="<!-- TMPL_VAR NAME="frombrcd" -->">
28                                         <input type="hidden" name="tb-<!-- TMPL_VAR NAME="counter" -->" value="<!-- TMPL_VAR NAME="tobrcd" -->">
29                                 <!-- /TMPL_LOOP -->
30                                 <input type="hidden" name="itemnumber" value="<!-- TMPL_VAR NAME="itemnumber" -->">
31                                 <input type="hidden" name="borrowernumber" value="<!-- TMPL_VAR NAME="bornum" -->">
32                                 <!-- TMPL_IF Name="waiting" --><input type="hidden" name="barcode" value="<!-- TMPL_VAR NAME="barcode" -->">
33                                         <input type="hidden" name="request" value="KillWaiting">
34                                         <input type="submit" value="Cancel" class="button circulation">
35                                 <!-- /TMPL_IF -->
36                                 <!-- TMPL_IF Name="reserved" --><input type="hidden" name="request" value="SetWaiting">
37                                         <input type="submit" value="Waiting" class="button circulation"><!-- /TMPL_IF -->
38                         </form></p>
39
40                 <!-- TMPL_IF Name="reserved" --><p>
41                         <form method="post" action="branchtransfers.pl">
42 <strong>Cancel reservation and then attempt transfer:</strong>
43                         <!-- TMPL_LOOP Name="trsfitemloop" -->
44                                 <input type="hidden" name="bc-<!-- TMPL_VAR NAME="counter" -->" value="<!-- TMPL_VAR NAME="barcode" -->">
45                                 <input type="hidden" name="fb-<!-- TMPL_VAR NAME="counter" -->" value="<!-- TMPL_VAR NAME="frombrcd" -->">
46                                 <input type="hidden" name="tb-<!-- TMPL_VAR NAME="counter" -->" value="<!-- TMPL_VAR NAME="tobrcd" -->">
47                         <!-- /TMPL_LOOP -->
48
49                         <input type="hidden" name="biblionumber" value="<!-- TMPL_VAR NAME="biblionumber" -->">
50                         <input type="hidden" name="borrowernumber" value="<!-- TMPL_VAR NAME="bornum" -->">
51                         <input type="hidden" name="tobranchcd" value="<!-- TMPL_VAR NAME="tobranchcd" -->">
52                         <input type="hidden" name="barcode" value="<!-- TMPL_VAR NAME="barcode" -->">
53                         <input type="hidden" name="request" value="KillReserved">
54                         <input type="submit" value="Cancel" class="button circulation">
55                         </form></p>
56                 <!-- /TMPL_IF -->
57 <p>
58                         <form method="post" action="branchtransfers.pl"><strong>Ignore and return to transfers:</strong> 
59                         <input type="hidden" name="tobranchcd" value="<!-- TMPL_VAR NAME="tobranchcd" -->">
60                         <input type="hidden" name="barcode" value="0">
61                         <!-- TMPL_LOOP Name="trsfitemloop" -->
62                                 <input type="hidden" name="bc-<!-- TMPL_VAR NAME="counter" -->" value="<!-- TMPL_VAR NAME="barcode" -->">
63                                 <input type="hidden" name="fb-<!-- TMPL_VAR NAME="counter" -->" value="<!-- TMPL_VAR NAME="frombrcd" -->">
64                                 <input type="hidden" name="tb-<!-- TMPL_VAR NAME="counter" -->" value="<!-- TMPL_VAR NAME="tobrcd" -->">
65                         <!-- /TMPL_LOOP -->
66                         <input type="submit" value="Ignore" class="button circulation">
67                         </form></p>
68
69         </td></tr></table>
70
71 <!-- TMPL_ELSE -->
72                 <!-- TMPL_IF NAME="allmessages" -->
73         <table>
74         <tr><th class="circulation">Messages</th></tr>
75         <tr><td>
76         <!-- TMPL_IF Name="reqmessage" -->
77                 <!-- TMPL_IF Name="cancelled" -->
78                         Reserve Cancelled<br>
79                 <!-- /TMPL_IF -->
80                 <!-- TMPL_IF Name="setwaiting" -->
81                         Item should now be waiting at branch: <!-- TMPL_VAR NAME="reqbrchname" --><br>
82                 <!-- /TMPL_IF -->
83         <!-- /TMPL_IF -->
84         <!-- TMPL_LOOP Name="errmsgloop" -->
85                                 <!-- TMPL_IF Name="errbadcode" -->
86                         No Item with barcode: <!-- TMPL_VAR NAME="msg" -->
87                 <!-- /TMPL_IF -->
88                 <!-- TMPL_IF Name="errispermanent" -->
89                         Please return item to home branch: <!-- TMPL_VAR NAME="msg" -->
90                 <!-- /TMPL_IF -->
91                 <!-- TMPL_IF Name="errdesteqholding" -->
92                         Item is already at destination branch.
93                 <!-- /TMPL_IF -->
94                 <!-- TMPL_IF Name="errwasreturned" -->
95                         Item was on loan to <a href="/cgi-bin/koha/members/moremember.pl?bornum=<!-- TMPL_VAR NAME="bornum" -->"
96 onclick="openWindow(this,'Member', 480, 640); return false;"><!-- TMPL_VAR NAME="borcnum" --></a>
97 <!-- TMPL_VAR NAME="name" --> and has been returned.
98                 <!-- /TMPL_IF -->
99         <!-- /TMPL_LOOP -->&nbsp;
100         </td></tr></table>
101 <!-- /TMPL_IF -->
102         <form method="post" action="/cgi-bin/koha/circ/branchtransfers.pl">
103         <p><b>Select Destination Branch: </b><select name="tobranchcd">
104                         <!-- TMPL_LOOP Name="branchoptionloop" -->
105                                 <option value="<!-- TMPL_VAR NAME="code" -->" <!-- TMPL_VAR NAME="selected" -->><!-- TMPL_VAR NAME="name" --></option>
106                         <!-- /TMPL_LOOP -->
107                 </select></p>
108
109         <p><b>Enter Item Barcode:</b> Item Barcode: <input name="barcode" size="10">
110         <input type="hidden" name="tobranchcd" value=<!-- TMPL_VAR NAME="tobrancd" -->>
111
112         <!-- TMPL_LOOP Name="trsfitemloop" -->
113                 <input type="hidden" name="bc-<!-- TMPL_VAR NAME="counter" -->" value="<!-- TMPL_VAR NAME="barcode" -->">
114                 <input type="hidden" name="fb-<!-- TMPL_VAR NAME="counter" -->" value="<!-- TMPL_VAR NAME="frombrcd" -->">
115                 <input type="hidden" name="tb-<!-- TMPL_VAR NAME="counter" -->" value="<!-- TMPL_VAR NAME="tobrcd" -->">
116         <!-- /TMPL_LOOP --></p>
117
118         </form>
119         <!-- TMPL_IF Name="trsfitemloop" -->
120                 <p>
121                 <table border="1" cellpadding="5" cellspacing="0" bgcolor="#dddddd">
122                 <tr><th colspan="6" class="circulation">Transfered Items</th></tr>
123                 <tr><th class="circulation">Barcode</th><th class="circulation">Title</th><th class="circulation">Author</th><th class="circulation">Type</th><th class="circulation">From</th><th class="circulation">To</th></tr>
124                 <!-- TMPL_LOOP Name="trsfitemloop" -->
125                         <!-- TMPL_IF NAME="color" --><tr class="hilighted"><!-- TMPL_ELSE -->&nbsp;<!-- /TMPL_IF --><td align="center">
126                         <a href="/cgi-bin/koha/detail.pl?bib=<!-- TMPL_VAR NAME="biblionumber" -->&amp;type=intra" onclick="openWindow(this, 'Item', 480, 640); return false;"><!-- TMPL_VAR NAME="barcode" --></a></td>
127                         <td><!-- TMPL_VAR NAME="title" --></td>
128                         <td><!-- TMPL_VAR NAME="author" --></td>
129                         <td align="center"><!-- TMPL_VAR NAME="itemtype" --></td>
130                         <td align="center"><!-- TMPL_VAR NAME="frbrname" --></td>
131                         <td align="center"><!-- TMPL_VAR NAME="tobrname" --></td>
132                         </tr>
133                 <!-- /TMPL_LOOP -->
134                 </table>
135         <!-- /TMPL_IF -->
136 <!-- /TMPL_IF -->
137 <div class="bloc25">
138 <a class="button circulation" href="circulation.pl">
139 Next Borrower</a>
140 <a class="button circulation" href="returns.pl">
141 Returns</a>
142 </div>
143
144 </div>
145 <!-- TMPL_INCLUDE Name="circulation-bottom.inc" -->