bug fixing : modify wrong date format display
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / circ / returns.tmpl
1 <!-- TMPL_INCLUDE NAME="doc-head-open.inc" -->
2 <title>Koha &rsaquo; Circulation &rsaquo; Returns <!-- TMPL_VAR Name="title" --></title>
3 <!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
4
5 <!-- TMPL_INCLUDE NAME="menus.inc" -->
6 <!-- TMPL_INCLUDE NAME="menu-circ.inc" -->
7
8 <!-- case of a mistake in transfert loop -->
9 <!-- TMPL_IF Name="WrongTransfer" -->
10     <h3 class="problem">This item should not be in this library !</h3>
11     <table>
12     <tr>
13         <th>Title : </th>
14         <td>            
15                 <a href="/cgi-bin/koha/catalogue/detail.pl?type=intra&biblionumber=<!-- TMPL_VAR NAME="biblionumber" -->"><!-- TMPL_VAR Name="title" --></a>
16         </td>
17     </tr>
18     <tr><th>Reserved for: </th>
19     <td>
20     <!-- TMPL_IF Name="wborcnum"-->
21         <ul>
22                     <li><a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=<!-- TMPL_VAR NAME="borrowernumber" -->"><!-- TMPL_VAR Name="wborcnum" --></a></li>
23         <li><!-- TMPL_VAR Name="wborsurname" -->, <!-- TMPL_VAR Name="wborfirstname" --> </li>
24         <li><!-- TMPL_VAR Name="wborstraddress" --><br />
25         <!-- TMPL_VAR Name="wborcity" -->  <!-- TMPL_VAR NAME="wborzip" --></li>
26         <li><!-- TMPL_VAR Name="wborphone" --></li>
27         </ul>
28     <!-- TMPL_ELSE-->
29             No reservation linked
30     <!-- /TMPL_IF -->
31         </td>
32         </tr>
33         <tr><th>Action : </th>
34             <td class="problem">
35                 This item must be transfered to : <!-- TMPL_VAR Name="TransferWaitingAt" -->
36             </td>
37         </tr>
38     </table>
39     <form method="post" action="returns.pl" name="mainform" id="mainform">
40             <input type="hidden" name="WT-itemNumber" value="<!-- TMPL_VAR Name="WrongTransferItem" -->" />
41             <input type="hidden" name="WT-waitingAt" value="<!-- TMPL_VAR Name="TransferWaitingAt" -->" />
42             <input type="hidden" name="WT-From" value="<!-- TMPL_VAR Name="wtransfertFrom" -->" />
43         <input type="submit" value="Send this document" />
44     </form>
45 <!-- /TMPL_IF -->
46
47 <!-- TMPL_IF Name="found" -->
48 <!-- case of a reservation found, and display info -->
49     <!-- TMPL_IF Name="waiting" -->
50         <h3>Waiting Reserve Found in your library</h3>
51         <table>
52         <caption><a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" -->"><!-- TMPL_VAR Name="title" --></a></caption>
53         <tr>
54             <th>Patron: </th>
55             <td>
56             <ul>
57                 <li><a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=<!-- TMPL_VAR NAME="borrowernumber" -->"><!-- TMPL_VAR Name="borcnum" --></a></li>
58                 <li><!-- TMPL_VAR Name="borsurname" -->, <!-- TMPL_VAR Name="borfirstname" --> </li>
59                 <li><!-- TMPL_VAR Name="borstraddress" --><br />
60                 <!-- TMPL_VAR Name="borcity" -->  <!-- TMPL_VAR NAME="borzip" --></li>
61                 <li><!-- TMPL_VAR Name="borphone" --></li>
62             </ul>
63             </td>
64         </tr>
65         </table>
66         <form method="post" action="returns.pl" name="mainform" id="mainform">
67             <input type="submit" value="Confirm" />
68             <!-- TMPL_LOOP Name="inputloop" -->
69                 <input type="hidden" name="ri-<!-- TMPL_VAR Name="counter" -->" value="<!-- TMPL_VAR Name="barcode" -->" />
70                 <input type="hidden" name="dd-<!-- TMPL_VAR Name="counter" -->" value="<!-- TMPL_VAR Name="duedate" -->" />
71                 <input type="hidden" name="bn-<!-- TMPL_VAR Name="counter" -->" value="<!-- TMPL_VAR Name="borrowernumber" -->" />
72             <!-- /TMPL_LOOP -->
73                 <input type="hidden" name="barcode" value="0" />
74                 </form>
75     <!-- /TMPL_IF -->
76
77     <!-- TMPL_IF Name="diffbranch" -->
78         <h3>Reserve needing transfert found</h3>
79         <table>
80             <caption><a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" -->"><!-- TMPL_VAR Name="title" --></a></caption>
81             <tr>
82                 <th>Patron: </th>
83                 <td>
84                     <ul>
85                         <li><a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=<!-- TMPL_VAR NAME="borrowernumber" -->"><!-- TMPL_VAR Name="borcnum" --></a></li>
86                         <li><!-- TMPL_VAR Name="borsurname" -->, <!-- TMPL_VAR Name="borfirstname" --> </li>
87                         <li><!-- TMPL_VAR Name="borstraddress" --><br />
88                         <!-- TMPL_VAR Name="borcity" -->  <!-- TMPL_VAR NAME="borzip" --></li>
89                         <li><!-- TMPL_VAR Name="borphone" --></li>
90                     </ul>
91                 </td>
92             </tr>
93             <!-- TMPL_IF name="transfertodo" -->
94                 <tr><th>Transfer to:</th><td><!-- TMPL_VAR Name="destbranchname" --></td></tr>
95             <!-- /TMPL_IF -->
96         </table>
97         <form method="post" action="returns.pl" name="mainform" id="mainform">
98             <input type="submit" value="Confirm" />
99             <!-- TMPL_LOOP Name="inputloop" -->
100                 <input type="hidden" name="ri-<!-- TMPL_VAR Name="counter" -->" value="<!-- TMPL_VAR Name="barcode" -->" />
101                 <input type="hidden" name="dd-<!-- TMPL_VAR Name="counter" -->" value="<!-- TMPL_VAR Name="duedate" -->" />
102                 <input type="hidden" name="bn-<!-- TMPL_VAR Name="counter" -->" value="<!-- TMPL_VAR Name="borrowernumber" -->" />
103             <!-- /TMPL_LOOP -->
104             <input type="hidden" name="diffBranch" value="<!-- TMPL_VAR Name="destbranch" -->" />
105             <input type="hidden" name="barcode" value="0" />
106         </form>                 
107     <!-- /TMPL_IF -->
108
109     <!-- case of a return of item, but with no reservation after, if the document must return to his homebranch -->
110     <!-- TMPL_IF Name="transfer" -->
111         <h2>This item must return to his homebranch :</h2>
112         <p><span class="problem">The document <!-- TMPL_VAR NAME="title" --> (<!-- TMPL_VAR NAME="author" -->) Must be returned to his homebranch(<b><!-- TMPL_VAR NAME="homebranch" --></b>)</span></p>
113             <form method="post" action="returns.pl">
114                 <!-- TMPL_LOOP Name="inputloop" -->
115                     <input type="hidden" name="ri-<!-- TMPL_VAR NAME="counter" -->" value="<!-- TMPL_VAR NAME="barcode" -->">
116                     <input type="hidden" name="dd-<!-- TMPL_VAR NAME="counter" -->" value="<!-- TMPL_VAR NAME="duedate" -->">
117                     <input type="hidden" name="bn-<!-- TMPL_VAR NAME="counter" -->" value="<!-- TMPL_VAR NAME="borrowernumber" -->">
118                 <!-- /TMPL_LOOP -->
119                 <input type="hidden" name="barcode" value="0">
120                 <input type="submit" value="OK">
121             </form>
122     <!-- /TMPL_IF -->
123     
124     <!-- TMPL_IF Name="diffbranch" -->
125         <h3>Item Consigned:</h3>
126         <table>
127         <caption><a href="/cgi-bin/koha/catalogue/detail.pl?type=intra&biblionumber=<!-- TMPL_VAR NAME="biblionumber" -->"><!-- TMPL_VAR Name="title" --></a></caption>
128         <tr>
129             <th>Patron:</th>
130             <td><!-- TMPL_VAR Name="name" --></td>
131         </tr>
132         </table>
133         <form method="post" action="returns.pl" name="mainform" id="mainform"><input type="submit" value="OK" />
134             <!-- TMPL_LOOP Name="inputloop" -->
135                 <!-- TMPL_UNLESS Name="first" -->
136                     <input type="hidden" name="ri-<!-- TMPL_VAR Name="counter" -->" value="<!-- TMPL_VAR Name="barcode" -->" />
137                     <input type="hidden" name="dd-<!-- TMPL_VAR Name="counter" -->" value="<!-- TMPL_VAR Name="duedate" -->" />
138                     <input type="hidden" name="bn-<!-- TMPL_VAR Name="counter" -->" value="<!-- TMPL_VAR Name="borrowernumber" -->" />
139                 <!-- /TMPL_UNLESS -->
140             <!-- /TMPL_LOOP -->
141             <input type="hidden" name="barcode" value="0" />
142         </form>
143     <!-- /TMPL_IF -->
144     
145     
146     <!-- case of simple return no issue or transfer but with a reservation  -->
147     <!-- TMPL_IF Name="reserved" -->
148         <!-- TMPL_IF Name="transfertodo"-->
149             <h3>Reserve at an other library, transfer to do</h3>
150         <!-- TMPL_ELSE -->
151             <h3>Waiting reserve found in your library</h3>
152         <!-- /TMPL_IF -->
153         <table>
154             <caption><a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=<!-- TMPL_VAR NAME="itembiblionumber" -->"><!-- TMPL_VAR Name="title" --></a></caption>
155             <tr>
156                 <th>Patron: </th>
157                 <td>
158                     <ul>
159                         <li><a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=<!-- TMPL_VAR NAME="borrowernumber" -->"><!-- TMPL_VAR Name="borcnum" --></a></li>
160                     <li><!-- TMPL_VAR Name="borsurname" -->, <!-- TMPL_VAR Name="borfirstname" --> </li>
161                     <li><!-- TMPL_VAR Name="borstraddress" --><br />
162                     <!-- TMPL_VAR Name="borcity" --> <!-- TMPL_VAR NAME="borzip" --></li>
163                     <li><!-- TMPL_VAR Name="borphone" --></li>
164                     </ul>
165                 </td>
166             </tr>
167             <!-- TMPL_IF name="transfertodo" -->
168                 <tr><th>Transfer to:</th><td><!-- TMPL_VAR Name="destbranchname" --></td></tr>
169             <!-- /TMPL_IF -->     
170         </table>
171         <form method="post" action="returns.pl" name="mainform" id="mainform">
172             <input type="submit" value="Confirm" />
173             <!-- TMPL_LOOP Name="inputloop" -->
174                     <input type="hidden" name="ri-<!-- TMPL_VAR Name="counter" -->" value="<!-- TMPL_VAR Name="barcode" -->" />
175                     <input type="hidden" name="dd-<!-- TMPL_VAR Name="counter" -->" value="<!-- TMPL_VAR Name="duedate" -->" />
176                     <input type="hidden" name="bn-<!-- TMPL_VAR Name="counter" -->" value="<!-- TMPL_VAR Name="borrowernumber" -->" />
177             <!-- /TMPL_LOOP -->
178             <input type="hidden" name="itemnumber" value="<!-- TMPL_VAR Name="itemnumber" -->" />
179             <input type="hidden" name="borrowernumber" value="<!-- TMPL_VAR Name="borrowernumber" -->" />
180             <input type="hidden" name="resbarcode" value="<!-- TMPL_VAR Name="barcode" -->" />
181             <input type="hidden" name="diffBranch" value="<!-- TMPL_VAR Name="destbranch" -->" />
182         </form>
183     <!-- /TMPL_IF -->
184
185 <!-- TMPL_ELSE -->
186     <h1>Circulation &rsaquo; Returns</h1>
187     <form method="post" action="/cgi-bin/koha/circ/returns.pl"  name="mainform" id="mainform">
188             <fieldset>
189             <legend>Enter item barcode</legend>
190             <p>
191                 <input name="barcode" id="barcode" size="14" maxlength="14" />
192                 <input type="submit" value="Submit" />
193             </p>
194             <!-- TMPL_LOOP Name="inputloop" -->
195                 <input type="hidden" name="ri-<!-- TMPL_VAR Name="counter" -->" value="<!-- TMPL_VAR Name="barcode" -->" />
196                 <input type="hidden" name="dd-<!-- TMPL_VAR Name="counter" -->" value="<!-- TMPL_VAR Name="duedate" -->" />
197                 <input type="hidden" name="bn-<!-- TMPL_VAR Name="counter" -->" value="<!-- TMPL_VAR Name="borrowernumber" -->" />
198             <!-- /TMPL_LOOP -->
199             </fieldset>
200         </form>
201     <!-- TMPL_IF NAME="errmsgloop" -->
202     <fieldset>
203         <legend>Error</legend>
204         <!-- TMPL_LOOP Name="errmsgloop" -->
205                     <!-- TMPL_IF Name="badbarcode" -->
206                         <p class="problem">No Item with barcode: <!-- TMPL_VAR Name="msg" --></p>
207                     <!-- /TMPL_IF -->
208                     <!-- TMPL_IF Name="ispermanent" -->
209                         <p class="problem">Please return to  <!-- TMPL_VAR Name="msg" --></p>
210                     <!-- /TMPL_IF -->
211                     <!-- TMPL_IF Name="notissued" -->
212                         <p class="problem">Not On Issue.</p>
213                     <!-- /TMPL_IF -->
214                     <!-- TMPL_IF Name="waslost" -->
215                         <p class="problem">Item was lost, now found.</p>
216                     <!-- /TMPL_IF -->
217                     <!-- TMPL_IF Name="withdrawn" -->
218                         <p class="problem">Item Cancelled</p>
219                     <!-- /TMPL_IF -->
220             <!-- /TMPL_LOOP -->
221         <!-- /TMPL_IF -->
222     </fieldset>
223 <!-- /TMPL_IF -->
224
225 <!-- TMPL_IF Name="returned" -->
226     <table>
227         <tr><th>Item Information</th><th>Patron Information</th></tr>
228         <tr>
229             <td><!-- TMPL_VAR Name="title" --></td>
230             <td>
231                 <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=<!-- TMPL_VAR Name="riborrowernumber" -->"><!-- TMPL_VAR Name="riborcnum" --></a>
232                 <!-- TMPL_VAR Name="riborsurname" -->, <!-- TMPL_VAR Name="ribortitle" --> <!-- TMPL_VAR Name="riborfirstname" -->
233                 <!-- TMPL_IF Name="flagset" -->
234                 (<!-- TMPL_LOOP Name="flagloop" -->
235                 <!-- TMPL_VAR Name="flag" -->, 
236                 <!-- /TMPL_LOOP -->)<!-- /TMPL_IF -->
237             </td>
238         </tr>
239     </table>
240 <!-- /TMPL_IF -->
241 <!-- TMPL_IF Name="riloop" -->
242     <h2>Returned Items</h2>
243     <table>
244         <tr>
245             <th>Title</th>
246             <th>Itemtype</th>
247             <th>Due Date</th>
248             <th>Barcode</th>
249             <th>Patron</th>
250         </tr>
251         <!-- TMPL_LOOP Name="riloop" -->
252             <tr>
253             <td>
254                 <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=<!-- TMPL_VAR Name="itembiblionumber" -->">
255                     <!-- TMPL_VAR Name="itemtitle" --></a>
256                     <br /><!-- TMPL_VAR Name="itemauthor" -->
257             </td>
258             <td><!-- TMPL_VAR Name="itemtype" --> <!-- TMPL_VAR Name="ccode" --></td>
259             <td>
260             <!-- TMPL_IF Name="duedate" -->
261                 <!-- TMPL_IF Name="early" --><!-- /TMPL_IF --><!-- TMPL_VAR Name="year" -->/<!-- TMPL_VAR Name="month" -->/<!-- TMPL_VAR Name="day" --><!-- TMPL_IF Name="early" --></span><!-- /TMPL_IF -->
262             <!-- TMPL_ELSE -->
263                 Not on Issue.
264             <!-- /TMPL_IF -->
265             </td>
266             <td>
267                 <!-- TMPL_VAR Name="barcode" -->
268             </td>
269             <td>
270             <!-- TMPL_IF Name="duedate" -->
271                 <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=<!-- TMPL_VAR Name="borrowernumber" -->">
272                     <!-- TMPL_VAR Name="borsurname" -->, <!-- TMPL_VAR Name="borfirstname" -->
273                 </a>
274             <!-- TMPL_ELSE -->
275                                 Not on issue.
276             <!-- /TMPL_IF -->
277             </td></tr>
278         <!-- /TMPL_LOOP -->
279     </table>
280 <!-- /TMPL_IF -->
281
282 <script type="text/JavaScript" language="JavaScript">
283         document.mainform.barcode.focus();
284 </script>
285
286 <!-- TMPL_INCLUDE Name="intranet-bottom.inc" -->