Letters / alert system, continuing...
[wip/koha-chris_n.git] / koha-tmpl / intranet-tmpl / default / en / members / moremember.tmpl
1 <!-- TMPL_INCLUDE NAME="members-top.inc" -->
2
3 <div id="mainbloc">
4         <h1><!-- TMPL_VAR NAME="firstname" --> <!-- TMPL_VAR NAME="surname" --></h1>
5         <div class="bloc25">
6                 <h2 class="members">Membership record</h2>
7                 <!-- TMPL_VAR NAME="title" --> <!-- TMPL_VAR NAME="othernames" --> <!-- TMPL_VAR NAME="surname" --> <!-- TMPL_IF NAME="IS_ADULT" -->(<!-- TMPL_VAR NAME="firstname" -->, <!-- TMPL_VAR NAME="initials" -->)<!-- /TMPL_IF -->
8                 <p><label class="label100">Card number: </label><!-- TMPL_VAR NAME="cardnumber" --><br>
9                 <label class="label100">Postal Address: </label><!-- TMPL_VAR NAME="streetaddress" -->, <!-- TMPL_VAR NAME="zipcode" --> <!-- TMPL_VAR NAME="city" --><br>
10                 <!-- TMPL_UNLESS name="I" --><label class="label100">Home Address: </label><!-- TMPL_VAR NAME="physstreet" -->, <!-- TMPL_VAR NAME="homezipcode" --> <!-- TMPL_VAR NAME="streetcity" --><br>
11                 <label class="label100">Phone home: </label><!-- TMPL_VAR NAME="phone" --><br><!-- /TMPL_UNLESS -->
12                 <label class="label100">Phone daytime: </label><!-- TMPL_VAR NAME="phoneday" --><br>
13                 <label class="label100">Fax: </label><!-- TMPL_VAR NAME="faxnumber" --><br>
14                 <label class="label100">E-mail: </label><a href="mailto:<!-- TMPL_VAR NAME="emailaddress" -->"><!-- TMPL_VAR NAME="emailaddress" --></a><br>
15                 <label class="label100">Text messaging: </label><!-- TMPL_VAR NAME="textmessaging" --><br>
16                 <label class="label100">Membership Number: </label><!-- TMPL_VAR NAME="borrowernumber" --><br>
17                 <label class="label100">Membership Category: </label><!-- TMPL_VAR NAME="categorycode" --><br>
18                 <label class="label100">Joined: </label><!-- TMPL_VAR NAME="dateenrolled" -->,<br>
19                 <label class="label100"> Expires:</label><!-- TMPL_VAR NAME="expiry" --><br>
20                 <label class="label100">Joining branch: </label><!-- TMPL_VAR NAME="branchcode" -->
21                 </p>
22                 <p>
23                 <!-- TMPL_IF NAME="printethnicityline" -->
24                         <label class="label100">Ethnicity: </label><!-- TMPL_VAR NAME="ethnicity" -->, <!-- TMPL_VAR NAME="ethnotes" --><br>
25                 <!-- /TMPL_IF -->
26                 <!-- TMPL_UNLESS name="I" -->
27                         <label class="label100">DoB: </label><!-- TMPL_VAR NAME="dateofbirth" --><br>
28                         <label class="label100">Sex: </label><!-- TMPL_VAR NAME="sex" --><br>
29                 <!-- /TMPL_UNLESS -->
30                 <label class="label100">Contact: </label><!-- TMPL_VAR NAME="contactname" --><br>
31                 <label class="label100">Phone: </label><!-- TMPL_VAR NAME="altphone" --><br>
32                 <!-- TMPL_UNLESS name="I" -->
33                         <label class="label100">Relationship: </label><!-- TMPL_VAR NAME="altrelationship" --><br>
34                 <!-- /TMPL_UNLESS -->
35                 <label class="label100">Notes: </label><!-- TMPL_VAR NAME="altnotes" -->
36                 <!-- TMPL_IF NAME="sort1" -->
37                         <p><label class="label100">Sort field 1 : </label><!-- TMPL_VAR NAME="sort1" --></p>
38                 <!-- /TMPL_IF -->
39                 <!-- TMPL_IF NAME="sort2" -->
40                         <p><label class="label100">Sort field 2 : </label><!-- TMPL_VAR NAME="sort2" --></p>
41                 <!-- /TMPL_IF -->
42                 </p>
43                 <p>
44                 <!-- TMPL_UNLESS name="I" -->
45                         <!-- TMPL_IF NAME="isguarantee" -->
46                                 Guarantees:<br><!-- TMPL_LOOP NAME="guaranteeloop" --><a href="/cgi-bin/koha/members/moremember.pl?bornum=<!-- TMPL_VAR NAME="borrowernumber" -->"><!-- TMPL_VAR NAME="name" --> - <!-- TMPL_VAR NAME="cardnumber" --></a><br><!-- /TMPL_LOOP -->
47                         <!-- TMPL_ELSE -->
48                                 Guarantor:
49                                 <!-- TMPL_IF NAME="guarantorborrowernumber" -->
50                                         <a href="/cgi-bin/koha/members/moremember.pl?bornum=<!-- TMPL_VAR NAME="guarantorborrowernumber" -->"><!-- TMPL_VAR NAME="guarantorcardnumber" --></a><br>
51                                 <!-- TMPL_ELSE -->
52                                         No guarantor<br>
53                                 <!-- /TMPL_IF -->
54                         <!-- /TMPL_IF -->
55                 <!-- /TMPL_UNLESS -->
56                 </p>
57                 <p>
58                         <label class="label100">General Notes: </label>
59                         <!-- TMPL_VAR NAME="borrowernotes" -->
60                 </p>
61                 <p>
62                          <label class="label100">OPAC login : </label><!-- TMPL_VAR name="userid" -->
63                          <!-- TMPL_IF name="password" -->(password defined)<!-- TMPL_ELSE -->(no password)<!-- /TMPL_IF -->
64                 </p>
65                 <p>
66                 <!-- TMPL_IF NAME="independantbranches"--> 
67                         <!-- TMPL_IF NAME="samebranch"--> 
68                                 <!-- TMPL_IF NAME="I" -->
69                                         <a href="/cgi-bin/koha/members/imemberentry.pl?bornum=<!-- TMPL_VAR NAME="bornum" -->" class="button">Modify</a>
70                                 <!-- TMPL_ELSE -->
71                                         <a href="/cgi-bin/koha/members/memberentry.pl?borrowernumber=<!-- TMPL_VAR NAME="bornum" -->" class="button">Modify</a>
72                                 <!-- /TMPL_IF -->
73                                 <a href="javascript:confirm_deletion()" class="button">Delete</a>
74                                 <a href="/cgi-bin/koha/circ/circulation.pl?findborrower=<!-- TMPL_VAR NAME="cardnumber" -->" class="button">Issue books</a>
75                                 <a href="/cgi-bin/koha/members/member-password.pl?member=<!-- TMPL_VAR NAME="bornum" -->" class="button">Change Password</a>
76                                 </p>
77                                 <br/>
78                                 <p>
79                                 <!-- TMPL_IF NAME="IS_ADULT" -->
80                                         <a href="/cgi-bin/koha/members/jmemberentry.pl?type=Add&bornum=<!-- TMPL_VAR NAME="borrowernumber" -->" class="button">Add Child</a>
81                                 <!-- /TMPL_IF -->
82                                 <a href="/cgi-bin/koha/members/member-flags.pl?member=<!-- TMPL_VAR NAME="bornum" -->" class="button">Modify User Flags</a>
83                         <!-- /TMPL_IF -->
84                 <!-- TMPL_ELSE --> 
85                         <!-- TMPL_IF NAME="I" -->
86                                 <a href="/cgi-bin/koha/members/imemberentry.pl?bornum=<!-- TMPL_VAR NAME="bornum" -->" class="button">Modify</a>
87                         <!-- TMPL_ELSE -->
88                                 <a href="/cgi-bin/koha/members/memberentry.pl?borrowernumber=<!-- TMPL_VAR NAME="bornum" -->" class="button">Modify</a>
89                         <!-- /TMPL_IF -->
90                         <a href="javascript:confirm_deletion()" class="button">Delete</a>
91                         <a href="/cgi-bin/koha/circ/circulation.pl?findborrower=<!-- TMPL_VAR NAME="cardnumber" -->" class="button">Issue books</a>
92                         <a href="/cgi-bin/koha/members/member-password.pl?member=<!-- TMPL_VAR NAME="bornum" -->" class="button">Change Password</a>
93                         </p>
94                         <br/>
95                         <p>
96                         <!-- TMPL_IF NAME="IS_ADULT" -->
97                                 <a href="/cgi-bin/koha/members/jmemberentry.pl?type=Add&bornum=<!-- TMPL_VAR NAME="borrowernumber" -->" class="button">Add Child</a>
98                         <!-- /TMPL_IF -->
99                         <a href="/cgi-bin/koha/members/member-flags.pl?member=<!-- TMPL_VAR NAME="bornum" -->" class="button">Modify User Flags</a>
100                 <!-- /TMPL_IF -->
101                 <a href="/cgi-bin/koha/members/moremember.pl?bornum=<!-- TMPL_VAR NAME="borrowernumber" -->&amp;print=page" class="button">Print Page</a> <a href="/cgi-bin/koha/members/moremember.pl?bornum=<!-- TMPL_VAR NAME="borrowernumber" -->&amp;print=slip" class="button">Print Slip</a>
102                 </p>
103         </div>
104         
105 <!-- TMPL_IF NAME="flagged" --> <div class="bloc25">
106                 <h2 class="members">Member Flags</h2>
107                 <ul>
108                 <!-- TMPL_IF NAME="debarred" --><li>Member is debarred.</li><!-- /TMPL_IF -->
109                 <!-- TMPL_IF NAME="gonenoaddress" --><li>Member's address is in doubt.</li><!-- /TMPL_IF -->
110                 <!-- TMPL_IF NAME="lost" --><li>Member's card has been reported lost.</li><!-- /TMPL_IF -->
111                 </ul>
112         </div><!-- /TMPL_IF -->
113
114         <div class="bloc25">
115                 <h2 class="members">Fines &amp; charges</h2>
116                 <!-- TMPL_IF NAME="totaldue" -->
117                         Total due <!-- TMPL_VAR NAME="totaldue"-->
118                 <TMPL_ELSE>
119                         No debts
120                 </TMPL_IF>
121                 <p>
122                 <!-- TMPL_IF NAME="independantbranches"--> 
123                         <!-- TMPL_IF NAME="samebranch"--> 
124                                 <a class="button" href="/cgi-bin/koha/boraccount.pl?bornum=<!-- TMPL_VAR NAME="bornum" -->">
125                                         View Account
126                                 </a>
127                                 <a class="button" href="/cgi-bin/koha/pay.pl?bornum=<!-- TMPL_VAR NAME="bornum" -->">
128                                         Pay Fines
129                                 </a>
130                         <!-- /TMPL_IF --> 
131                 <!-- TMPL_ELSE --> 
132                         <a class="button" href="/cgi-bin/koha/boraccount.pl?bornum=<!-- TMPL_VAR NAME="bornum" -->">
133                                 View Account
134                         </a>
135                         <a class="button" href="/cgi-bin/koha/pay.pl?bornum=<!-- TMPL_VAR NAME="bornum" -->">
136                                 Pay Fines
137                         </a>
138                 <!-- /TMPL_IF --> 
139                 </p>
140         </div>
141         <div class="bloc25">
142                 <h2 class="members">Items requested</h2>
143                         <!-- TMPL_IF NAME="reserveloop" -->
144                         <form action="/cgi-bin/koha/modrequest.pl" method="post">
145                         <table>
146                                 <tr>
147                                         <th>Title</th>
148                                         <th>Requested</th>
149                                         <th>Remove</th>
150                                 </tr>
151                                         <!-- TMPL_LOOP NAME="reserveloop" -->
152                                         <tr>
153                                                 <td><input type="hidden" name="from" value="borrower">
154                                                         <a href="/cgi-bin/koha/request.pl?bib=<!-- TMPL_VAR NAME="biblionumber" -->"><!-- TMPL_VAR NAME="btitle" --></a>
155                                                         <!-- TMPL_IF NAME="volumeddesc" -->
156                                                                 <!-- TMPL_VAR NAME="volumeddesc" -->
157                                                                 <!-- TMPL_VAR NAME="itemtype" -->
158                                                         <!-- /TMPL_IF -->
159                                                 </td>
160                                                 <td><!-- TMPL_VAR NAME="reservedate2" --></td>
161                                                 <td>
162                                                         <select name="rank-request">
163                                                         <option value="n">No
164                                                         <option value="del">Yes
165                                                         </select><input type="hidden" name="biblio" value="<!-- TMPL_VAR NAME="biblionumber" -->">
166                                                 <input type="hidden" name="borrowernumber" value="<!-- TMPL_VAR NAME="bornum" -->">
167                                                 </td>
168                                                 
169                                         </tr>
170                                         <!-- /TMPL_LOOP -->
171                                         <tr>
172                                                 <td colspan="5" align="right">
173                                                 <!-- TMPL_IF NAME="independantbranches"--> 
174                                                         <!-- TMPL_IF NAME="samebranch"--> 
175                                                                 <!-- TMPL_IF NAME="reserveloop" -->
176                                                                         <input type="submit" name="submit" value="Update" class="button">
177                                                                 <!-- /TMPL_IF -->
178                                                         <!-- /TMPL_IF --> 
179                                                 <!-- TMPL_ELSE --> 
180                                                         <!-- TMPL_IF NAME="reserveloop" -->
181                                                                 <input type="submit" name="submit" value="Update" class="button">
182                                                         <!-- /TMPL_IF -->
183                                                 <!-- /TMPL_IF --> 
184
185                                                 </td>
186                                         </tr>
187                                 </table>
188                                 </form>
189                         <!-- TMPL_ELSE -->
190                                 None
191                         <!-- /TMPL_IF -->
192         </div>
193
194         <div class="bloc25">
195                 <a class="button" href="/cgi-bin/koha/readingrec.pl?bornum=<!-- TMPL_VAR NAME="bornum" -->">Reading Record</a>
196         </div>
197
198         <div class="bloc25">
199                 <h2 class="members">Items currently on issue</h2>
200                 <!-- TMPL_IF NAME="issueloop" -->
201                         <form action="../renewscript.pl" method="post">
202                         <input type="hidden" name="bornum" value="<!-- TMPL_VAR NAME="bornum" -->">
203
204                         <table>
205                         <tr>
206                                 <th>Title</th>
207                                 <th>Due</th>
208                                 <th>Itemtype</th>
209                                 <th>Charge</th>
210                                 <!-- TMPL_IF NAME="independantbranches"--> 
211                                         <!-- TMPL_IF NAME="samebranch"--> 
212                                                 <th>Renew</th>
213                                         <!-- /TMPL_IF--> 
214                                 <!-- TMPL_ELSE --> 
215                                         <th>Renew</th>
216                                 <!-- /TMPL_IF--> 
217                         </tr>
218
219                         <!-- TMPL_LOOP NAME="issueloop" -->
220                         <tr>
221                                 <td><!-- TMPL_IF NAME="red" --><p class="problem"><!-- TMPL_ELSE --> <p><!-- /TMPL_IF -->
222                                 <!-- TMPL_VAR NAME="title" --> <!-- TMPL_IF name="itemcallnumber" --> <i>(<!-- TMPL_VAR name="itemcallnumber" -->)</i> <!-- /TMPL_IF -->
223                                 <a href="/cgi-bin/koha/moredetail.pl?item=<!-- TMPL_VAR NAME="itemnumber" -->&amp;bib=<!-- TMPL_VAR NAME="biblionumber" -->&amp;bi=<!-- TMPL_VAR NAME="biblioitemnumber" -->">
224                                         <!-- TMPL_VAR NAME="barcode" -->
225                                 </a></p>
226                                 </td>
227                                 <td><!-- TMPL_IF NAME="red" --><p class="problem"><!-- TMPL_ELSE --> <p><!-- /TMPL_IF --><!-- TMPL_VAR NAME="date_due" --></p></td>
228                                 <td><!-- TMPL_VAR NAME="itemtype" --></td>
229                                 <td><!-- TMPL_VAR NAME="charge" --></td>
230                                 <!-- TMPL_IF NAME="independantbranches"--> 
231                                         <!-- TMPL_IF NAME="samebranch"--> 
232                                                 <td>
233                                                 <!-- TMPL_IF NAME="norenew" -->
234                                                         <a href="/cgi-bin/koha/request.pl?bib=<!-- TMPL_VAR NAME="biblionumber" -->">On Request - no renewals</a>
235                                                 <!-- TMPL_ELSE -->
236                                                         <input type="radio" name="renew_item_<!-- TMPL_VAR NAME="itemnumber" -->" value="y">Y
237                                                         <input type="radio" name="renew_item_<!-- TMPL_VAR NAME="itemnumber" -->" value="n">N
238                                                 <!-- /TMPL_IF -->
239                                                 </td>
240                                         <!-- /TMPL_IF--> 
241                                 <!-- TMPL_ELSE --> 
242                                         <td>
243                                         <!-- TMPL_IF NAME="norenew" -->
244                                                 <a href="/cgi-bin/koha/request.pl?bib=<!-- TMPL_VAR NAME="biblionumber" -->">On Request - no renewals</a>
245                                         <!-- TMPL_ELSE -->
246                                                 <input type="radio" name="renew_item_<!-- TMPL_VAR NAME="itemnumber" -->" value="y">Y
247                                                 <input type="radio" name="renew_item_<!-- TMPL_VAR NAME="itemnumber" -->" value="n">N
248                                         <!-- /TMPL_IF -->
249                                         </td>
250                                 <!-- /TMPL_IF -->
251                         </tr>
252                         <!-- /TMPL_LOOP -->
253                         </table>
254                         <!-- TMPL_IF NAME="independantbranches"--> 
255                                 <!-- TMPL_IF NAME="samebranch"--> 
256                                         <input type="submit" class="button" value="Renew Items">
257                                 <!-- /TMPL_IF--> 
258                         <!-- TMPL_ELSE --> 
259                                 <input type="submit" class="button" value="Renew Items">
260                         <!-- /TMPL_IF -->
261                 </form>
262                 <!-- TMPL_ELSE -->
263                         None
264                 <!-- /TMPL_IF -->
265         </div>
266
267                 <div class="bloc25">
268                 <h2 class="members">Alert subscriptions</h2>
269                         <table>
270                         <tr>
271                                 <th>Type</th>
272                                 <th>on</th>
273                         </tr>
274
275                         <!-- TMPL_LOOP NAME="alertloop" -->
276                                 <tr>
277                                         <td><!-- TMPL_IF name="issue" -->Serial issue<!-- /TMPL_IF --></td>
278                                         <td><!-- TMPL_VAR name="relatedto" --></td>
279                                 </tr>
280                         <!-- /TMPL_LOOP -->
281                         </table>
282                 </div>
283
284         
285 </div>
286 <script language="JavaScript" type="text/javascript">
287 function confirm_deletion() {
288         var is_confirmed = confirm('do you confirm deletetion ?');
289         if (is_confirmed) {
290                 window.location="/cgi-bin/koha/members/deletemem.pl?member=<!-- TMPL_VAR NAME="bornum" -->";
291         }
292 }
293 </script>
294 <!-- endmenu -->
295
296 <!-- TMPL_INCLUDE NAME="members-bottom.inc" -->