memberentryC.tmpl:add test to modify link name
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / members / moremember.tmpl
1 <!-- TMPL_INCLUDE NAME="doc-head-open.inc" -->Member Details<!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
2
3 <!-- TMPL_INCLUDE NAME="menus.inc" -->
4 <!-- TMPL_INCLUDE NAME="menu-members.inc" -->
5
6 <h1><!-- TMPL_VAR NAME="firstname" --> <!-- TMPL_VAR NAME="surname" --> (<!-- TMPL_VAR NAME="cardnumber" -->)</h1>
7
8 <ul>
9         <!-- TMPL_UNLESS name="guarantorborrowernumber" -->
10         <a href="/cgi-bin/koha/members/memberentry.pl?op=add&guarantorid=<!-- TMPL_VAR NAME="borrowernumber" -->&category_type=C">Add child</a> 
11         <!-- /TMPL_UNLESS -->
12         <a href="/cgi-bin/koha/members/memberentry.pl?op=modify&borrowernumber=<!-- TMPL_VAR NAME="bornum" -->&category_type=<!-- TMPL_VAR NAME="category_type"-->">
13
14                 Edit this Record
15         </a> 
16         <a href="/cgi-bin/koha/members/member-password.pl?member=<!-- TMPL_VAR NAME=bornum -->">
17                 Change Member's Password
18         </a> 
19         <a href="/cgi-bin/koha/members/member-flags.pl?member=<!-- TMPL_VAR NAME=bornum -->">
20                 Modify Member's Privileges
21         </a> 
22         <a href="javascript:confirm_deletion()">
23                 Delete this Member
24         </a> 
25         <a href="/cgi-bin/koha/members/boraccount.pl?bornum=<!-- TMPL_VAR NAME="bornum" -->">
26                 View Account
27         </a> 
28         <a href="/cgi-bin/koha/members/pay.pl?bornum=<!-- TMPL_VAR NAME="bornum" -->">
29                 Pay Fines
30         </a> 
31         <a href="/cgi-bin/koha/members/readingrec.pl?bornum=<!-- TMPL_VAR NAME="bornum" -->">
32                 Member's Reading Record
33         </a>
34 </ul>
35
36 <!-- TMPL_IF NAME="flagged" -->
37         <ul>
38                 <!-- TMPL_IF NAME="debarred" -->
39                         <li>Patron is debarred 
40                         <form class="inline compact" action="/cgi-bin/koha/members/setdebar.pl" method="post">
41                                 <input type="hidden" name="borrowernumber" value="<!-- TMPL_VAR NAME="borrowernumber" -->" />
42                                 <input type="hidden" name="status" value="0" />
43                                 <input type="submit" value="Lift Debarment" />
44                         </form>
45                         </li>
46                 <!-- /TMPL_IF -->
47                 <!-- TMPL_IF NAME="gonenoaddress" --><li>Patron's address is in doubt.</li><!-- /TMPL_IF -->
48                 <!-- TMPL_IF NAME="lost" --><li>Patron's card has been reported lost.</li><!-- /TMPL_IF -->
49         </ul>
50
51 <!-- /TMPL_IF -->
52
53 <fieldset>
54 <legend>Borrower Information</legend>
55         <p><label>Title:</label><!-- TMPL_VAR NAME="title" --></p>
56         <p><label>First Name:</label><!-- TMPL_VAR NAME="firstname" --></p>
57         <p><label>Last Name: </label><!-- TMPL_VAR NAME="surname" --></p>
58         <p><label>Othernames: </label><!-- TMPL_VAR NAME="othernames" --></p>
59         <p><label>Initials: </label><!-- TMPL_VAR NAME="initials" --></p>
60         <p><label>Address: </label><!-- TMPL_VAR NAME="address" --></p>
61         <p><label>City: </label><!-- TMPL_VAR NAME="city" --></p>
62         <p><label>Zip Code: </label><!-- TMPL_VAR NAME="zipcode" --></p>
63         <!-- TMPL_UNLESS NAME="I"-->
64         <p><label>alt address: </label><!-- TMPL_VAR NAME="B_address" --></p>
65         <p><label>alt city: </label><!-- TMPL_VAR NAME="B_city" --></p>
66         <p><label>alt zipcode: </label><!-- TMPL_VAR NAME="B_zipcode" --></p>
67         <!-- /TMPL_UNLESS -->
68         <p><label>Home Phone: </label><!-- TMPL_VAR NAME="phone" --></p>
69         <p><label>Cell phone: </label><!-- TMPL_VAR NAME="mobile" --></p>
70         <p><label>Fax: </label><!-- TMPL_VAR NAME="fax" --></p>
71         <p><label>E-mail Address:</label><!-- TMPL_VAR NAME="email" --></p>
72         <!-- TMPL_UNLESS name="I" -->
73         <p><label>Date of Birth:</label><!-- TMPL_VAR NAME="dateofbirth" --></p>
74         <p><label>Sex:</label><!-- TMPL_VAR NAME="sex" --></p>
75         <!-- /TMPL_UNLESS -->
76 </fieldset>
77 <fieldset>
78         <legend>Library use</legend>
79         <p><label>Member Number:</label><!-- TMPL_VAR NAME="borrowernumber" --></p>
80         <p><label>Category:</label><!-- TMPL_VAR NAME="categorycode" --></p>
81         <p><label>Registration Date:</label><!-- TMPL_VAR NAME="dateenrolled" --></p>
82         <p><label>Expiration Date: </label><!-- TMPL_VAR NAME="dateexpiry" --></p>
83         <p><label>Registration Branch:</label><!-- TMPL_VAR NAME="branchname" --></p>
84
85         <!-- TMPL_IF NAME="printethnicityline" -->
86         <p><label>Ethnicity:</label><!-- TMPL_VAR NAME="ethnicity" --></p>
87         <p><label>Ethnicity Notes: </label><!-- TMPL_VAR NAME="ethnotes" --></p>
88         <!-- /TMPL_IF -->
89
90         <p><label>Sort field 1: </label><!-- TMPL_VAR NAME="sort1" --></p>
91         <p><label>Sort field 2:</label><!-- TMPL_VAR NAME="sort2" --></p>
92         <p><label>OPAC login: </label><!-- TMPL_VAR name="userid" --></p>
93         <p><label>OPAC Password: </label><!-- TMPL_VAR NAME="password" --></p> 
94         <p><label>Circulation Notes:</label><!-- TMPL_VAR name="borrowernotes" --></p>
95         <p><label>Patron Message:</label><!-- TMPL_VAR NAME="opacnote" --></p>
96 </fieldset>
97 <fieldset>
98         <legend>Alternate contact</legend>
99         <!-- TMPL_UNLESS name="I" -->
100         <p><label>Name:</label><!-- TMPL_VAR NAME="contactname" --></p>
101         <p><label>Phone: </label><!-- TMPL_VAR NAME="B_phone" --></p>
102         <p><label>Relationship:</label><!-- TMPL_VAR NAME="relationship" --></p>
103         <p><label>Notes: </label><!-- TMPL_VAR NAME="contactnote" --></p>
104         <!-- /TMPL_UNLESS -->
105         <!-- TMPL_UNLESS name="I" -->
106                 <!-- TMPL_IF name="isguarantee" -->
107                         <!-- TMPL_IF NAME="guaranteeloop" -->
108                                 <p><label>Guarantees:</label><ul><!-- tmpl_loop name="guaranteeloop" --><li><a href="/cgi-bin/koha/members/moremember.pl?bornum=<!-- TMPL_VAR NAME="borrowernumber" -->"><!-- TMPL_VAR NAME=name --> - <!-- TMPL_VAR NAME="cardnumber" --></a></li><!-- /tmpl_loop --></ul></p>
109                         <!-- /TMPL_IF -->
110                 <!-- TMPL_ELSE -->
111                         <!-- TMPL_IF name="guarantorborrowernumber" -->
112                                 <p><label>Guarantor:</label><a href="/cgi-bin/koha/members/moremember.pl?bornum=<!-- TMPL_VAR NAME="guarantorborrowernumber" -->"><!-- TMPL_VAR NAME="guarantorcardnumber" --></a></p>
113                         <!-- /TMPL_IF -->
114                 <!-- /TMPL_IF -->
115         <!-- /TMPL_UNLESS -->
116 </fieldset>
117 <fieldset>
118         <legend>Fines &amp; Charges</legend>
119         <!-- TMPL_IF name="totaldue" -->
120                 <p>Total Due: <!-- TMPL_VAR NAME="totaldue" --></p>
121         <!-- TMPL_ELSE -->
122                 <p>No Outstanding Charges</p>
123         <!-- /TMPL_IF -->
124 </fieldset>
125 <fieldset>
126         <legend>Items On Loan</legend>
127         <form action="/cgi-bin/koha/reserve/renewscript.pl" method="post">
128                 <input type="hidden" name="bornum" value="<!-- TMPL_VAR NAME="bornum" -->" />
129         <table>
130                 <tr>
131                         <th scope="col">Title</th>
132                         <th scope="col">Due</th>
133                         <th scope="col">Itemtype</th>
134                         <th scope="col">Charge</th>
135                         <th scope="col">Price</th>
136                         <th scope="col">Renew</th>
137                         <th scope="col">Return</th>
138                 </tr>
139         
140                 <!-- tmpl_loop name="issueloop" -->
141                   <!-- TMPL_IF NAME="toggle" -->
142                 <tr class="highlight">
143                   <!-- TMPL_ELSE -->
144                 <tr>
145                   <!-- /TMPL_IF -->
146                         <td>
147                                 <!-- TMPL_IF name="red" --><span class="overdue"><!-- /TMPL_IF -->
148                                 <!-- TMPL_VAR NAME="title" --><!-- TMPL_IF name="red" --></span><!-- /TMPL_IF -->
149                                 <a href="/cgi-bin/koha/detail.pl?item=<!-- TMPL_VAR NAME="itemnumber" -->&amp;bib=<!-- TMPL_VAR NAME="biblionumber" -->&amp;bi=<!-- TMPL_VAR NAME="biblioitemnumber" -->">
150                                         <!-- TMPL_VAR NAME="barcode" -->
151                                 </a>
152                         </td>
153                         <td><!-- TMPL_VAR NAME="date_due" --></td>
154                         <td>
155                                         <!-- TMPL_VAR NAME="itemtype_description" -->
156                                         <!-- TMPL_IF NAME="itemtype_image" -->
157                                         <img src="<!-- TMPL_VAR NAME="itemtype_image" -->" />
158                                         <!-- /TMPL_IF -->
159                                         </td>
160                         <td><!-- TMPL_VAR NAME="charge" --></td>
161                         <td><!-- TMPL_VAR NAME="replacementprice" --></td>
162                         <td>
163                         <!-- TMPL_IF name="norenew" -->
164                                 <a href="/cgi-bin/koha/request.pl?bib=<!-- TMPL_VAR NAME="biblionumber" -->">Reserved</a>
165                         <!-- TMPL_ELSE -->
166                         <input type="checkbox"
167                                                         name="items[]"
168                                                         value="<!-- TMPL_VAR NAME="itemnumber" -->"
169                                         <!-- TMPL_IF NAME="red" -->
170                                                 checked="checked"
171                                         <!-- /TMPL_IF -->
172                         />
173                         <input type="checkbox"
174                                         name="all_items[]"
175                                         value="<!-- TMPL_VAR NAME="itemnumber" -->"
176                                 checked="checked"
177                                         style="display: none;"
178                         />
179                         <!-- /TMPL_IF -->
180                         </td>
181                         <td><a href="/cgi-bin/koha/circ/returns.pl?barcode=<!-- TMPL_VAR NAME="barcode" -->">Return</a></td>
182                 </tr>
183                 <!-- /tmpl_loop -->
184                 <tr><td colspan="3">Total Replacement Cost:</td><td><!-- TMPL_VAR NAME="totalprice" --></td><td colspan="2">&nbsp;</td></tr>
185                 </table>
186                         <div id="action">
187                         <input type="submit" name="renew_checked" value="Renew Checked Items" />
188                         <input type="submit" name="renew_all" value="Renew All" />
189                         </div>
190         </form>
191 </fieldset>
192 <fieldset>
193         <legend>Reserves</legend>
194         <form action="/cgi-bin/koha/modrequest.pl" method="post">
195                 <input type="hidden" name="from" value="borrower" />
196                 <table>
197                 <tr>
198                         <th scope="row">Title</th>
199                         <th scope="row">Requested</th>
200                         <th scope="row">Remove</th>
201                 </tr>
202         
203                 <!-- TMPL_LOOP name="reserveloop" -->
204                   <!-- TMPL_IF NAME="toggle" -->
205                 <tr class="highlight">
206                   <!-- TMPL_ELSE -->
207                 <tr>
208                   <!-- /TMPL_IF -->
209                         <td>
210                                 <a href="/cgi-bin/koha/request.pl?bib=<!-- TMPL_VAR NAME="biblionumber" -->"><!-- TMPL_VAR NAME="btitle" --></a>
211                                 <!-- TMPL_IF name="volumeddesc" -->
212                                         <!-- TMPL_VAR NAME="volumeddesc" -->
213                                         <!-- TMPL_VAR NAME="itemtype" -->
214                                 <!-- /TMPL_IF -->
215                         </td>
216                         <td><!-- TMPL_VAR NAME="reservedate2" --></td>
217                         <td>
218                                 <select name="rank-request">
219                                 <option value="n">No</option>
220                                 <option value="del">Yes</option>
221                                 </select>
222                         </td>
223                         <input type="hidden" name="biblio" value="<!-- TMPL_VAR NAME="biblionumber" -->" />
224                         <input type="hidden" name="borrowernumber" value="<!-- TMPL_VAR NAME="bornum" -->" />
225                 </tr>
226                 <!-- /tmpl_loop -->
227         </table>
228         <!-- TMPL_IF name="reserveloop" -->
229                 <input type="submit" class="cancel" name="submit" value="Cancel Marked Requests" />
230         <!-- /TMPL_IF -->
231         </form>
232 </fieldset>
233 <script language="JavaScript" type="text/javascript">
234 function confirm_deletion() {
235         var is_confirmed = confirm('Do you confirm deletion ?');
236         if (is_confirmed) {
237                         window.location="/cgi-bin/koha/members/deletemem.pl?member=<!-- TMPL_VAR NAME="bornum" -->";
238         }
239 }
240 function confirm_reregistration() {
241         var is_confirmed = confirm('Do you confirm re_registration ?');
242         if (is_confirmed) {
243         window.location="/cgi-bin/koha/members/moremember.pl?bornum=<!-- TMPL_VAR NAME="bornum" -->&reregistration=y";
244         }
245 }
246 </script>
247 <!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->