Fix for bug 1402, now if a renewal fails, the librarian is aware of it
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / members / moremember.tmpl
1 <!-- TMPL_INCLUDE NAME="doc-head-open.inc" -->
2 <title>Koha &rsaquo; Patrons &rsaquo; <!-- TMPL_IF NAME="unknowuser" -->Patron does not exist<!-- TMPL_ELSE -->Patron Details for <!-- TMPL_VAR NAME="firstname" --> <!-- TMPL_VAR NAME="surname" --> (<!-- TMPL_VAR NAME="cardnumber" -->)<!-- /TMPL_IF --></title>
3 <!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
4 <!-- TMPL_INCLUDE NAME="yui-toolbars.inc" -->
5 </head>
6 <body>
7 <!-- TMPL_INCLUDE NAME="header.inc" -->
8 <!-- TMPL_INCLUDE NAME="patron-search.inc" -->
9
10 <div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo; <a href="/cgi-bin/koha/members/members-home.pl">Patrons</a>  &rsaquo; <!-- TMPL_IF NAME="unknowuser" -->Patron does not exist<!-- TMPL_ELSE -->Patron Details for <!-- TMPL_VAR NAME="firstname" --> <!-- TMPL_VAR NAME="surname" --> (<!-- TMPL_VAR NAME="cardnumber" -->)<!-- /TMPL_IF --> </div>
11
12 <div id="doc3" class="yui-t1">
13    
14    <div id="bd">
15         <div id="yui-main">
16         <div class="yui-b">
17 <!-- TMPL_INCLUDE NAME="circ-toolbar.inc" -->
18
19 <div class="yui-g">
20 <!-- TMPL_IF NAME="unknowuser" -->
21     This patron does not exist.
22 <!-- TMPL_ELSE -->
23
24 <!-- TMPL_IF NAME="reregistration" --><div class="message">Patron's account has been renewed until <!-- TMPL_VAR NAME="dateexpiry" --></div><!-- /TMPL_IF -->
25 <form action="" name="form">
26 <input type="hidden" name="reregistration" value="<!-- TMPL_VAR NAME="reregistration"-->" /> 
27 <input type="hidden" name="borrowernumber" value="<!-- TMPL_VAR NAME="borrowernumber" -->" />
28 </form>
29
30 <!-- TMPL_IF NAME="flagged" -->
31     <ul>
32         <!-- TMPL_IF NAME="debarred" -->
33             <li>Patron is restricted
34             <form class="inline compact" action="/cgi-bin/koha/members/setdebar.pl" method="post">
35                 <input type="hidden" name="borrowernumber" value="<!-- TMPL_VAR NAME="borrowernumber" -->" />
36                 <input type="hidden" name="status" value="0" />
37                 <input type="submit" value="Lift Debarment" />
38             </form>
39             </li>
40         <!-- /TMPL_IF -->
41         <!-- TMPL_IF NAME="gonenoaddress" --><li>Patron's address is in doubt.</li><!-- /TMPL_IF -->
42         <!-- TMPL_IF NAME="lost" --><li>Patron's card has been reported lost.</li><!-- /TMPL_IF -->
43     </ul>
44
45 <!-- /TMPL_IF -->
46
47
48  <div class="yui-u first">
49 <div id="patron-information" style="padding : .5em;">
50 <h3>
51     <!-- TMPL_UNLESS NAME="I" -->
52    <!-- TMPL_VAR NAME="title" --> <!-- TMPL_VAR NAME="firstname" --> <!-- /TMPL_UNLESS --> <!-- TMPL_VAR NAME="surname" --></h3> <!-- TMPL_UNLESS NAME="I" --><!-- TMPL_IF NAME="othernames" -->"<!-- TMPL_VAR NAME="othernames" -->"<!-- /TMPL_IF -->  <p><!-- TMPL_VAR NAME="streetnumber" -->
53         <!--TMPL_IF NAME="roaddetails"-->
54          <!-- TMPL_VAR NAME="roaddetails" -->,
55         <!-- /TMPL_IF -->
56         <!-- TMPL_VAR NAME="address" --><br />
57         <!-- TMPL_IF NAME="address2" --><!-- TMPL_VAR NAME="address2"--><br /><!-- /TMPL_IF -->
58         <!-- TMPL_IF NAME="city" --><!-- TMPL_VAR NAME="city" --><!-- /TMPL_IF -->
59         <!-- TMPL_IF NAME="zipcode" --><!-- TMPL_VAR NAME="zipcode" --><!-- /TMPL_IF --></p>
60                     
61         <p><!-- TMPL_UNLESS NAME="I"-->
62                         <!-- TMPL_IF NAME="phone" --><strong>Home: </strong><!-- TMPL_VAR NAME="phone" --><br /><!-- /TMPL_IF -->
63                     <!-- TMPL_IF NAME="mobile" --><strong>Mobile:  </strong><!-- TMPL_VAR NAME="mobile" --><br /><!-- /TMPL_IF -->
64                     <!-- TMPL_IF NAME="phonepro" --><strong>Work: </strong><!-- TMPL_VAR NAME="phonepro" --><br /><!-- /TMPL_IF -->
65                 <!-- /TMPL_UNLESS -->
66                    <!-- TMPL_IF NAME="I" -->
67   <!-- TMPL_IF NAME="phonepro" --><strong>Organisation phone: </strong><!-- TMPL_VAR NAME="phonepro" --><br /><!-- /TMPL_IF -->
68   <!-- TMPL_IF NAME="emailpro" --><strong>Organisation email: </strong><!-- TMPL_VAR NAME="emailpro" --><br /><!-- /TMPL_IF -->
69     <!-- /TMPL_IF -->
70
71     <!-- TMPL_IF NAME="P"-->
72    <!-- TMPL_IF NAME="phone" --> <strong>Professional phone: </strong><!-- TMPL_VAR NAME="phone" --><br /><!-- /TMPL_IF -->
73     <!-- TMPL_IF NAME="mobile" --><strong>Professionnal mobile: </strong><!-- TMPL_VAR NAME="mobile" --><br /><!-- /TMPL_IF -->
74     <!-- /TMPL_IF -->           
75         <!-- TMPL_IF NAME="fax" --><strong>Fax: </strong><!-- TMPL_VAR NAME="fax" --><br><!-- /TMPL_IF -->
76 </p>    <!-- TMPL_UNLESS NAME="I"-->
77     <p><a href="mailto:<!-- TMPL_VAR NAME="email" -->"><!-- TMPL_VAR NAME="email" --></a><!--TMPL_IF Name="emailpro"-->, <a href="mailto:<!-- TMPL_VAR NAME="emailpro" -->"><!-- TMPL_VAR NAME="emailpro" --></a><!--/TMPL_IF--></p>
78     <!-- /TMPL_UNLESS -->
79     <p><strong>Initials: </strong><!-- TMPL_VAR NAME="initials" --></p>
80     <p><strong>Date of birth:</strong><!-- TMPL_VAR NAME="dateofbirth" --></p>
81     <p><strong>Sex:</strong><!-- TMPL_VAR NAME="sex" --></p><!-- /TMPL_UNLESS -->
82     <!-- TMPL_IF NAME="printethnicityline" -->
83     <p><strong>Ethnicity:</strong><!-- TMPL_VAR NAME="ethnicity" --></p>
84     <p><strong>Ethnicity notes: </strong><!-- TMPL_VAR NAME="ethnotes" --></p>
85     <!-- /TMPL_IF -->
86    <!-- TMPL_IF name="isguarantee" -->
87             <!-- TMPL_IF NAME="guaranteeloop" -->
88                 <p><strong>Guarantees:</strong><ul><!-- tmpl_loop name="guaranteeloop" --><li><a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=<!-- TMPL_VAR NAME="borrowernumber" -->"><!-- TMPL_VAR NAME="name" -->  </a></li><!-- /tmpl_loop --></ul></p>
89             <!-- /TMPL_IF -->
90         <!-- TMPL_ELSE -->
91             <!-- TMPL_IF name="guarantorborrowernumber" -->
92                 <p><strong>Guarantor:</strong><a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=<!-- TMPL_VAR NAME="guarantorborrowernumber" -->"><!-- TMPL_VAR NAME="guarantorsurname" --> <!-- TMPL_VAR NAME="guarantorfirstname" --></a></p>
93             <!-- /TMPL_IF -->
94      <!-- /TMPL_IF  -->
95   
96     
97   
98             <a class="member-edit" href="memberentry.pl?op=modify&amp;borrowernumber=<!-- TMPL_VAR NAME="borrowernumber" -->&amp;step=1">Edit</a>
99 </div>
100
101 <div id="patron-alternate-address" style="padding : .5em;">
102     <h3>Alternate Address</h3>
103     <!-- TMPL_UNLESS NAME="I"-->
104       <!-- TMPL_UNLESS NAME="C"-->
105   <p><!-- TMPL_VAR NAME="B_address" --><br />
106       <!-- TMPL_VAR NAME="B_city" --><br />
107       <!-- TMPL_VAR NAME="B_zipcode" --></p>
108   <!-- /TMPL_UNLESS -->
109     <!-- /TMPL_UNLESS -->
110  
111      <!-- TMPL_IF NAME="C" -->
112     <p><strong>Name: </strong><!-- TMPL_VAR NAME="contactname" --></p>
113     <p><strong>Firstname: </strong><!-- TMPL_VAR NAME="firstname" --></p>    
114     <p><strong>Phone: </strong><!-- TMPL_VAR NAME="phone" --></p>
115     <p><strong>Email: </strong><!-- TMPL_VAR NAME="email" --></p>
116     <p><strong>Relationship: </strong><!-- TMPL_VAR NAME="relationship" --></p>
117    <!-- /TMPL_IF -->
118        
119     <a class="member-edit" href="memberentry.pl?op=modify&amp;borrowernumber=<!-- TMPL_VAR NAME="borrowernumber" -->&amp;step=2">Edit</a>
120 </div>
121
122
123 </div>
124  <div class="yui-u"> 
125  <div id="patron-library-details" style="padding : .5em;">
126  <h3>Library use</h3>
127  <ul>
128     <li><strong>Patron number: </strong><!-- TMPL_VAR NAME="borrowernumber" --></li>
129     <li><strong>Category: </strong><!-- TMPL_VAR NAME="description" --> (<!-- TMPL_VAR NAME="categorycode" -->)</li>
130     <li><strong>Registration date: </strong><!-- TMPL_VAR NAME="dateenrolled" --></li>
131     
132     <li><strong>Expiration date: </strong>
133     <!-- TMPL_IF NAME="reregistration" -->
134             <strong class="reregistrinfo"><!-- TMPL_VAR NAME="dateexpiry" --></strong>
135     <!--TMPL_ELSE-->
136             <!-- TMPL_VAR NAME="dateexpiry" -->
137     <!-- /TMPL_IF -->
138     </li>
139     
140     <li><strong>Registration branch: </strong><!-- TMPL_VAR NAME="branchname" --></li>
141
142     <!-- TMPL_IF NAME="sort1" --><li><strong>Sort field 1: </strong><!-- TMPL_VAR NAME="sort1" --></li><!-- /TMPL_IF -->
143     <!-- TMPL_IF NAME="sort2" --><li><strong>Sort field 2:</strong><!-- TMPL_VAR NAME="sort2" --></li><!-- /TMPL_IF -->
144     <li><strong>OPAC login: </strong><!-- TMPL_VAR name="userid" --></li>
145     <!-- TMPL_IF NAME="password" -->
146   <li><strong>OPAC password: </strong>*******</li>
147    <!--TMPL_ELSE -->
148   <li><strong>OPAC password: </strong><span class="problem"><a href="/cgi-bin/koha/members/member-password.pl?member=<!-- TMPL_VAR NAME="borrowernumber" -->">Undefined</a></span></li> 
149    <!--/TMPL_IF --> 
150   <!-- TMPL_IF NAME="borrowernotes" --><li><strong>Circulation notes: </strong><!-- TMPL_VAR name="borrowernotes" --></li><!-- /TMPL_IF -->
151     <!-- TMPL_IF NAME="opacnote" --><li><strong>Message to Patron:</strong><!-- TMPL_VAR NAME="opacnote" --></li><!-- /TMPL_IF -->
152         </ul>
153             <a class="member-edit" href="memberentry.pl?op=modify&amp;borrowernumber=<!-- TMPL_VAR NAME="borrowernumber" -->&amp;step=3">Edit</a>
154  </div>
155 </div>
156 </div>
157 <div id="patrons-fines-and-charges" class="yui-g">
158     <h2>Fines and Charges</h2>
159     <!-- TMPL_IF EXPR="totaldue eq 0.00" -->
160         <p>Total due: <!-- TMPL_VAR NAME="totaldue" --></p>
161     <!-- TMPL_ELSE -->
162         <p>No outstanding charges</p>
163     <!-- /TMPL_IF -->
164 </div>
165
166 <div id="patrons-items-on-loan" class="yui-g">
167     <h2>Items on loan</h2>
168     <!-- TMPL_IF NAME="issueloop" --><form action="/cgi-bin/koha/reserve/renewscript.pl" method="post">
169         <input type="hidden" name="borrowernumber" value="<!-- TMPL_VAR NAME="borrowernumber" -->" />
170         <input type="hidden" name="branch" value="<!-- TMPL_VAR NAME="branch" -->" />
171     <table>
172         <tr>
173             <th scope="col">Title</th>
174             <th scope="col">Barcode</th>
175             <th scope="col">Date due</th>
176             <th scope="col">Itemtype</th>
177             <th scope="col">Charge</th>
178             <th scope="col">Price</th>
179             <th scope="col">Renew</th>
180             <th scope="col">Return</th>
181         </tr>
182     
183         <!-- TMPL_LOOP name="issueloop" -->
184           <!-- TMPL_IF name="overdue" -->
185         <tr class="problem">
186           <!-- TMPL_ELSE -->
187             <!-- TMPL_IF name="toggle" -->
188         <tr class="highlight">
189             <!-- TMPL_ELSE -->
190         <tr>
191             <!-- /TMPL_IF -->
192           <!-- /TMPL_IF -->
193             <td><a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" -->"><!-- TMPL_VAR NAME="title" --></a> <!-- TMPL_IF NAME="author" -->, by <!-- TMPL_VAR name="author" --><!-- /TMPL_IF --> <!-- TMPL_IF name="publishercode" -->; <!-- TMPL_VAR name="publishercode" --> <!-- /TMPL_IF --> <!-- TMPL_IF name="publicationyear" -->, <!-- TMPL_VAR name="publicationyear" --><!-- /TMPL_IF -->            </td>
194             <td><!-- TMPL_VAR NAME="barcode" --></td>
195             <td><!-- TMPL_VAR NAME="date_due" --></td>
196             <td>
197                 <!-- TMPL_VAR NAME="itemtype_description" -->
198                 <!-- TMPL_IF NAME="itemtype_image" -->
199                 <img src="<!-- TMPL_VAR NAME="itemtype_image" -->" alt="" />
200                 <!-- /TMPL_IF -->
201             </td>
202             <td><!-- TMPL_VAR NAME="charge" --></td>
203             <td><!-- TMPL_VAR NAME="replacementprice" --></td>
204             <td>
205             <!-- TMPL_IF name="norenew" -->
206                 <a href="/cgi-bin/koha/reserve/request.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" -->">On Hold</a>
207             <!-- TMPL_ELSE -->
208             <!-- TMPL_IF NAME="red" -->
209             <input type="checkbox" name="items[]" value="<!-- TMPL_VAR NAME="itemnumber" -->" checked="checked" />
210             <!-- TMPL_ELSE -->
211             <input type="checkbox" name="items[]" value="<!-- TMPL_VAR NAME="itemnumber" -->" />
212             <!-- /TMPL_IF -->
213             <input type="checkbox" name="all_items[]" value="<!-- TMPL_VAR NAME="itemnumber" -->" checked="checked" style="display: none;" />
214             <!-- /TMPL_IF -->
215             </td>
216             <td><a href="/cgi-bin/koha/circ/returns.pl?barcode=<!-- TMPL_VAR NAME="barcode" -->">Check In</a></td>
217                         <!-- TMPL_IF NAME="renew_failed" -->
218                         <td>Renewal Failed</td>
219                         <!-- /TMPL_IF -->
220         </tr>
221         <!-- /tmpl_loop -->
222         <tr>
223             <td colspan="5">Total replacement cost:</td>
224             <td><!-- TMPL_VAR NAME="totalprice" --></td>
225             <td colspan="2">&nbsp;</td>
226         </tr>
227         </table>
228         <div>
229         <input type="submit" name="renew_checked" value="Renew checked items" />
230         <input type="submit" name="renew_all" value="Renew all" />
231         </div>
232     </form><!-- TMPL_ELSE --><p>Patron has nothing checked out.</p><!-- /TMPL_IF -->
233         </div>
234         
235 <div id="patrons-items-reserved" class="yui-g">
236         <h2>Patron current holds</h2>
237 <!-- TMPL_IF NAME="reservloop" -->
238 <form action="/cgi-bin/koha/reserve/modrequest.pl" method="post">
239         <input type="hidden" name="from" value="borrower" />
240         <table>
241                 <tr>
242                         <th>Hold date</th>
243                         <th>Barcode</th>
244                         <th>Title</th>
245                         <th>Author</th>
246                         <th>Localisation</th>
247                         <th>&nbsp;</th>
248                 </tr>
249                 <!-- TMPL_LOOP NAME="reservloop" -->
250                 <tr class="<!-- TMPL_VAR NAME="color" -->">
251                                         <td>
252                                                 <!-- TMPL_VAR NAME="reservedate" -->
253                                         </td>
254                                         <td>
255                                                 <!-- TMPL_IF name="barcodereserv" -->
256                                                 <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" -->" onclick="openWindow(this, 'Item', 480, 640); return false;"><!-- TMPL_VAR NAME="barcodereserv" --></a>
257                                                 <!-- /TMPL_IF -->
258                                                 <!-- TMPL_IF NAME="waitingposition" -->
259                                          Queue for this item :
260                                                 <b> <!-- TMPL_VAR NAME="waitingposition" --> </b>
261                                                 <!-- /TMPL_IF -->
262                                         </td>
263                                         <td>
264                                                 <a href="/cgi-bin/koha/reserve/request.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" -->"><!-- TMPL_VAR NAME="title" --></a> (<b> <!-- TMPL_VAR NAME="itemtype" --> </b>) 
265
266                                                 <!-- TMPL_IF name="waiting" -->
267                                                 <i>This item is available</i>
268                                                 <!-- /TMPL_IF -->
269                                                 <!-- TMPL_IF name="transfered" -->
270                                                 <i>This item has been transfered from library : 
271                                                 <!-- TMPL_VAR NAME="frombranch" --> the : <!-- TMPL_VAR NAME="datesent" --> </i>
272                                                 <!-- /TMPL_IF -->
273
274                                                 <!-- TMPL_IF name="nottransfered" -->
275                                                 <i>This item hasn't been transfered yet from library : <!-- TMPL_VAR NAME="nottransferedby" --></i>
276                                                 <!-- /TMPL_IF -->
277                                 
278                                         </td>
279                                         <td><!-- TMPL_VAR NAME="author" --></td>
280                                         <td><!-- TMPL_VAR NAME="itemcallnumber" --></td>
281                                         <td><select name="rank-request">
282                         <option value="n">No</option>
283                         <option value="del">Yes</option>
284                         </select>
285                 <input type="hidden" name="biblionumber" value="<!-- TMPL_VAR name="biblionumber" -->" />
286                 <input type="hidden" name="borrowernumber" value="<!-- TMPL_VAR name="borrowernumber" -->" /></td>
287                         </tr>
288                 <!-- /TMPL_LOOP -->
289         </table>
290                         <p><input type="submit" class="cancel" name="submit" value="Cancel Marked Requests" /></p>
291         </form>
292         <!-- TMPL_ELSE -->
293         <p>Patron has nothing on hold.</p>
294         <!-- /TMPL_IF -->
295         </div>
296
297 <!-- /TMPL_IF --> <!-- unknowuser -->
298
299 </div>
300 </div>
301 <div class="yui-b">
302 <!-- TMPL_INCLUDE NAME="members-menu.inc" -->
303 </div>
304 </div>
305 <!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->