Lines 94-106
Link Here
|
94 |
[% IF ( check_member ) %] |
94 |
[% IF ( check_member ) %] |
95 |
<div class="dialog alert"> |
95 |
<div class="dialog alert"> |
96 |
<h3>Duplicate patron record?</h3> |
96 |
<h3>Duplicate patron record?</h3> |
97 |
<p><a href="#" onclick="Dopop('moremember.pl?print=brief&borrowernumber=[% check_member | uri %]');return false;" ><i class="fa fa-window-restore"></i> View existing record</a></p> |
97 |
<p><a class="popup_patronview" href="/cgi-bin/koha/members/moremember.pl?print=brief&borrowernumber=[% check_member | uri %]"><i class="fa fa-window-restore"></i> View existing record</a></p> |
98 |
<button id="duplicate" type="submit" class="new"> |
98 |
<button id="duplicate" type="submit" class="new"> <i class="fa fa-pencil"></i> It is a duplicate. Edit existing record </button> |
99 |
<i class="fa fa-pencil"></i> It is a duplicate. Edit existing record |
99 |
<button type="submit" id="not-duplicate" class="new"> <i class="fa fa-plus"></i> Not a duplicate. Save as new record </button> |
100 |
</button> |
|
|
101 |
<button type="submit" id="not-duplicate" class="new"> |
102 |
<i class="fa fa-plus"></i> Not a duplicate. Save as new record |
103 |
</button> |
104 |
</div> |
100 |
</div> |
105 |
[% END %] |
101 |
[% END %] |
106 |
|
102 |
|
Lines 291-297
Link Here
|
291 |
[% END %] |
287 |
[% END %] |
292 |
Date of birth: |
288 |
Date of birth: |
293 |
</label> |
289 |
</label> |
294 |
<input type="text" id="dateofbirth" name="dateofbirth" size="20" onchange="write_age();" value="[% dateofbirth | html UNLESS opduplicate %]" class="datepicker" /> |
290 |
<input type="text" id="dateofbirth" name="dateofbirth" size="20" value="[% dateofbirth | html UNLESS opduplicate %]" class="datepicker" /> |
295 |
[% IF ( mandatorydateofbirth ) %] |
291 |
[% IF ( mandatorydateofbirth ) %] |
296 |
<span class="required">Required</span> |
292 |
<span class="required">Required</span> |
297 |
[% END %] |
293 |
[% END %] |
Lines 753-759
Link Here
|
753 |
|
749 |
|
754 |
<li> |
750 |
<li> |
755 |
<label for="categorycode_entry" class="required">Category: </label> |
751 |
<label for="categorycode_entry" class="required">Category: </label> |
756 |
<select id="categorycode_entry" name="categorycode" onchange="update_category_code(this);"> |
752 |
<select id="categorycode_entry" name="categorycode"> |
757 |
[% FOREACH typeloo IN typeloop %] |
753 |
[% FOREACH typeloo IN typeloop %] |
758 |
[% FOREACH categoryloo IN typeloo.categoryloop %] |
754 |
[% FOREACH categoryloo IN typeloo.categoryloop %] |
759 |
[% IF ( loop.first ) %] |
755 |
[% IF ( loop.first ) %] |
Lines 871-881
Link Here
|
871 |
[% END %] |
867 |
[% END %] |
872 |
Registration date: |
868 |
Registration date: |
873 |
</label> |
869 |
</label> |
874 |
[% IF ( dateformat == "metric" ) %] |
870 |
<input type="text" id="from" name="dateenrolled" maxlength="10" size="10" value="[% dateenrolled | html %]" class="datepickerfrom" /> |
875 |
<input type="text" id="from" name="dateenrolled" maxlength="10" size="10" onchange="CheckDate(document.form.dateenrolled);check_manip_date('verify');" value="[% dateenrolled | html %]" class="datepickerfrom" /> |
|
|
876 |
[% ELSE %] |
877 |
<input type="text" id="from" name="dateenrolled" maxlength="10" size="10" value="[% dateenrolled | html %]" class="datepickerfrom" /> |
878 |
[% END %] |
879 |
[% IF ( mandatorydateenrolled ) %] |
871 |
[% IF ( mandatorydateenrolled ) %] |
880 |
<span class="required">Required</span> |
872 |
<span class="required">Required</span> |
881 |
[% END %] |
873 |
[% END %] |
Lines 898-916
Link Here
|
898 |
[% END %] |
890 |
[% END %] |
899 |
Expiry date (leave blank for auto calc): |
891 |
Expiry date (leave blank for auto calc): |
900 |
</label> |
892 |
</label> |
901 |
[% IF ( dateformat == "metric" ) %] |
893 |
[% UNLESS ( opadd ) %] |
902 |
[% UNLESS ( opadd ) %] |
894 |
<input type="text" id="to" name="dateexpiry" maxlength="10" size="10" value="[% dateexpiry | html UNLESS opduplicate %]" class="datepickerto" /> |
903 |
<input type="text" id="to" name="dateexpiry" maxlength="10" size="10" onchange="CheckDate(document.form.dateexpiry);check_manip_date('verify');" value="[% dateexpiry | html UNLESS opduplicate %]" class="datepickerto" /> |
|
|
904 |
[% ELSE %] |
905 |
<input type="text" id="to" name="dateexpiry" maxlength="10" size="10" onchange="CheckDate(document.form.dateexpiry);check_manip_date('verify');" class="datepickerto" /> |
906 |
[% END %] |
907 |
[% ELSE %] |
895 |
[% ELSE %] |
908 |
[% UNLESS ( opadd ) %] |
896 |
<input type="text" id="to" name="dateexpiry" maxlength="10" size="10" value="[% dateexpiry | html %]" class="datepickerto" /> |
909 |
<input type="text" id="to" name="dateexpiry" maxlength="10" size="10" value="[% dateexpiry | html UNLESS opduplicate %]" class="datepickerto" /> |
897 |
[% END %] |
910 |
[% ELSE %] |
|
|
911 |
<input type="text" id="to" name="dateexpiry" maxlength="10" size="10" value="[% dateexpiry | html %]" class="datepickerto" /> |
912 |
[% END %] |
913 |
[% END # /IF ( dateformat == "metric" ) %] |
914 |
[% IF ( mandatorydateexpiry ) %] |
898 |
[% IF ( mandatorydateexpiry ) %] |
915 |
<span class="required">Required</span> |
899 |
<span class="required">Required</span> |
916 |
[% END %] |
900 |
[% END %] |
Lines 1197-1208
Link Here
|
1197 |
<ol> |
1181 |
<ol> |
1198 |
<li> |
1182 |
<li> |
1199 |
<label for="debarred_comment">Comment: </label> |
1183 |
<label for="debarred_comment">Comment: </label> |
1200 |
<input type="text" id="debarred_comment" name="debarred_comment" onchange="$('#add_debarment').val(1);" /> |
1184 |
<input type="text" id="debarred_comment" name="debarred_comment" /> |
1201 |
</li> |
1185 |
</li> |
1202 |
<li> |
1186 |
<li> |
1203 |
<label for="debarred_expiration">Expiration: </label> |
1187 |
<label for="debarred_expiration">Expiration: </label> |
1204 |
<input name="debarred_expiration" id="debarred_expiration" size="10" value="" class="datepicker" onchange="$('#add_debarment').val(1);" type="text" /> |
1188 |
<input name="debarred_expiration" id="debarred_expiration" size="10" value="" class="datepicker" type="text" /> |
1205 |
<a href='javascript:void(0)' onclick="$('#debarred_expiration').val('');">Clear date</a> |
1189 |
<a href="#" id="clear_debarred_expiration">Clear date</a> |
1206 |
</li> |
1190 |
</li> |
1207 |
</ol> |
1191 |
</ol> |
1208 |
<p> |
1192 |
<p> |
Lines 1290-1298
Link Here
|
1290 |
<textarea rows="2" cols="30" id="[% patron_attribute.form_id | html %]" name="[% patron_attribute.form_id | html %]">[% patron_attribute.value | html %]</textarea> |
1274 |
<textarea rows="2" cols="30" id="[% patron_attribute.form_id | html %]" name="[% patron_attribute.form_id | html %]">[% patron_attribute.value | html %]</textarea> |
1291 |
[% END # /IF ( patron_attribute.use_dropdown ) %] |
1275 |
[% END # /IF ( patron_attribute.use_dropdown ) %] |
1292 |
<input type="hidden" id="[% patron_attribute.form_id | html %]_code" name="[% patron_attribute.form_id | html %]_code" value="[% patron_attribute.code | html %]" /> |
1276 |
<input type="hidden" id="[% patron_attribute.form_id | html %]_code" name="[% patron_attribute.form_id | html %]_code" value="[% patron_attribute.code | html %]" /> |
1293 |
<a href="#" onclick="clear_entry(this); return false;"><i class="fa fa-fw fa-trash"></i> Clear</a> |
1277 |
<a href="#" class="clear_attribute"><i class="fa fa-fw fa-trash"></i> Clear</a> |
1294 |
[% IF ( patron_attribute.repeatable ) %] |
1278 |
[% IF ( patron_attribute.repeatable ) %] |
1295 |
<a href="#" onclick="clone_entry(this); return false;"><i class="fa fa-fw fa-plus"></i> New</a> |
1279 |
<a href="#" class="clone_attribute"><i class="fa fa-fw fa-plus"></i> New</a> |
1296 |
[% END %] |
1280 |
[% END %] |
1297 |
</li> |
1281 |
</li> |
1298 |
[% END # /FOREACH patron_attribute %] |
1282 |
[% END # /FOREACH patron_attribute %] |
Lines 1470-1475
Link Here
|
1470 |
$("input[name='nodouble']").val('1'); |
1454 |
$("input[name='nodouble']").val('1'); |
1471 |
$('#entryform').submit(); |
1455 |
$('#entryform').submit(); |
1472 |
}); |
1456 |
}); |
|
|
1457 |
|
1458 |
$(".popup_patronview").on("click", function(e){ |
1459 |
e.preventDefault(); |
1460 |
var url = $(this).attr("href"); |
1461 |
openWindow( url, "patronview" ); |
1462 |
}); |
1463 |
|
1464 |
$("#dateofbirth").on("change", function(){ |
1465 |
write_age(); |
1466 |
}); |
1467 |
|
1468 |
$("#debarred_comment, #debarred_expiration").on("change", function(){ |
1469 |
$("#add_debarment").val(1); |
1470 |
}); |
1471 |
|
1472 |
$("#clear_debarred_expiration").on("click", function(e){ |
1473 |
e.preventDefault(); |
1474 |
$('#debarred_expiration').val(""); |
1475 |
}); |
1476 |
|
1477 |
$(".clear_attribute").on("click", function(e){ |
1478 |
e.preventDefault(); |
1479 |
clear_entry( this ); |
1480 |
}); |
1481 |
|
1482 |
$(".clone_attribute").on("click", function(e){ |
1483 |
e.preventDefault(); |
1484 |
clone_entry( this ); |
1485 |
}); |
1486 |
|
1487 |
$("#categorycode_entry").on("change", function(){ |
1488 |
update_category_code(this); |
1489 |
}); |
1473 |
}); |
1490 |
}); |
1474 |
|
1491 |
|
1475 |
var MSG_SEPARATOR = _("Separator must be / in field %s"); |
1492 |
var MSG_SEPARATOR = _("Separator must be / in field %s"); |
1476 |
- |
|
|