Lines 10-15
Link Here
|
10 |
//<![CDATA[ |
10 |
//<![CDATA[ |
11 |
$(document).ready(function() { |
11 |
$(document).ready(function() { |
12 |
|
12 |
|
|
|
13 |
$(".hidefield").hide(); |
14 |
$("#toggle_hidden_fields").prop("checked", false); |
15 |
|
16 |
$("#toggle_hidden_fields").on("change",function(e){ |
17 |
if ($("#toggle_hidden_fields").prop("checked") == true){ |
18 |
$(".hidefield").show(); |
19 |
} else { |
20 |
$(".hidefield").hide(); |
21 |
} |
22 |
}); |
23 |
|
13 |
$("#saverecord").css({ 'margin-left': 0 }); |
24 |
$("#saverecord").css({ 'margin-left': 0 }); |
14 |
var original_offset = $("#toolbar").position().top; |
25 |
var original_offset = $("#toolbar").position().top; |
15 |
var additional_height = $("#filters").height(); |
26 |
var additional_height = $("#filters").height(); |
Lines 207-212
$(document).ready(function() {
Link Here
|
207 |
</div> |
218 |
</div> |
208 |
[% END %] |
219 |
[% END %] |
209 |
|
220 |
|
|
|
221 |
[% SET fields_to_hide = Koha.Preference('HideFieldsAddPatronForm') %] |
222 |
|
223 |
[% IF Koha.Preference('HideFieldsAddPatronForm') %] |
224 |
<p id="selections"> |
225 |
<input type="checkbox" id="toggle_hidden_fields" checked="checked" title="These fields are hidden by default by the HideFieldsAddPatronForm system preference"><strong>Show hidden fields:</strong> |
226 |
[% FOREACH field IN fields_to_hide.split(',') %] |
227 |
[% SWITCH field %] |
228 |
[% CASE 'identity' %] Organization/Patron identity | |
229 |
[% CASE 'guarantor' %] Guarantor information | |
230 |
[% CASE 'primary_address' %] Main address | |
231 |
[% CASE 'primary_contact' %] Contact | |
232 |
[% CASE 'alt_address' %] Alternate address | |
233 |
[% CASE 'alt_contact' %] Alternate contact | |
234 |
[% CASE 'lib_mgmt' %] Library management | |
235 |
[% CASE 'lib_setup' %] Library set-up | |
236 |
[% CASE 'login' %] OPAC/Staff login | |
237 |
[% CASE 'flags' %] Patron account flags | |
238 |
[% CASE 'debarments' %] Patron restrictions | |
239 |
[% CASE 'housebound' %] Housebound roles | |
240 |
[% CASE 'additional' %] Additional attributes and identifiers | |
241 |
[% CASE 'messaging' %] Patron messaging preferences | |
242 |
[% END %] |
243 |
[% END %] |
244 |
</p> |
245 |
[% END %] |
210 |
|
246 |
|
211 |
<div id="toolbar" class="btn-toolbar"> |
247 |
<div id="toolbar" class="btn-toolbar"> |
212 |
[% UNLESS ( check_member ) %] |
248 |
[% UNLESS ( check_member ) %] |
Lines 251-259
$(document).ready(function() {
Link Here
|
251 |
|
287 |
|
252 |
[% IF ( step_1 ) %] |
288 |
[% IF ( step_1 ) %] |
253 |
[%UNLESS notitle && nosurname && nofirstname && nodateofbirth && noinitials && noothernames &&nosex %] |
289 |
[%UNLESS notitle && nosurname && nofirstname && nodateofbirth && noinitials && noothernames &&nosex %] |
254 |
<fieldset class="rows" id="memberentry_identity"> |
290 |
[% IF fields_to_hide.search('identity') %] |
|
|
291 |
<fieldset class="rows hidefield" id="memberentry_identity"> |
292 |
[% ELSE %] |
293 |
<fieldset class="rows" id="memberentry_identity"> |
294 |
[% END %] |
255 |
<legend id="identity_lgd">[% IF ( I ) %]Organization [% ELSE %]Patron [% END %]identity</legend> |
295 |
<legend id="identity_lgd">[% IF ( I ) %]Organization [% ELSE %]Patron [% END %]identity</legend> |
256 |
<ol> |
296 |
<ol> |
257 |
[% UNLESS ( I ) %] |
297 |
[% UNLESS ( I ) %] |
258 |
[% UNLESS notitle %] |
298 |
[% UNLESS notitle %] |
259 |
[% IF Koha.Preference('BorrowersTitles') %] |
299 |
[% IF Koha.Preference('BorrowersTitles') %] |
Lines 388-394
$(document).ready(function() {
Link Here
|
388 |
[% UNLESS step_6 %] |
428 |
[% UNLESS step_6 %] |
389 |
<input type="hidden" name="branchcode" value="[% branchcode %]" /> |
429 |
<input type="hidden" name="branchcode" value="[% branchcode %]" /> |
390 |
[% END %] |
430 |
[% END %] |
391 |
<fieldset id="memberentry_guarantor" class="rows"> |
431 |
[% IF fields_to_hide.search('guarantor') %] |
|
|
432 |
<fieldset id="memberentry_guarantor" class="rows hidefield"> |
433 |
[% ELSE %] |
434 |
<fieldset id="memberentry_guarantor" class="rows"> |
435 |
[% END %] |
392 |
<legend id="guarantor_lgd">Guarantor information</legend> |
436 |
<legend id="guarantor_lgd">Guarantor information</legend> |
393 |
<ol> |
437 |
<ol> |
394 |
[% IF ( P ) %] |
438 |
[% IF ( P ) %] |
Lines 484-498
$(document).ready(function() {
Link Here
|
484 |
|
528 |
|
485 |
[% END %] |
529 |
[% END %] |
486 |
[% UNLESS noaddress && noaddress2 && nocity && nostate && nozipcode && nocountry %] |
530 |
[% UNLESS noaddress && noaddress2 && nocity && nostate && nozipcode && nocountry %] |
|
|
531 |
[% IF fields_to_hide.search('primary_address') %] |
532 |
<fieldset class="hidefield"> |
533 |
[% ELSE %] |
487 |
[% IF Koha.Preference( 'AddressFormat' ) %] |
534 |
[% IF Koha.Preference( 'AddressFormat' ) %] |
488 |
[% INCLUDE "member-main-address-style-${ Koha.Preference( 'AddressFormat' ) }.inc" %] |
535 |
[% INCLUDE "member-main-address-style-${ Koha.Preference( 'AddressFormat' ) }.inc" %] |
489 |
[% ELSE %] |
536 |
[% ELSE %] |
490 |
[% INCLUDE 'member-main-address-style-us.inc' %] |
537 |
[% INCLUDE 'member-main-address-style-us.inc' %] |
491 |
[% END %] |
538 |
[% END %] |
|
|
539 |
[% END %] |
540 |
[% IF fields_to_hide.search('primary_address') %]</fieldset>[% END %] |
492 |
[% END # nostreet && nocity etc group%] |
541 |
[% END # nostreet && nocity etc group%] |
493 |
|
542 |
|
494 |
[% UNLESS nophone && nophonepro && nomobile && noemail && noemailpro && nofax %] |
543 |
[% UNLESS nophone && nophonepro && nomobile && noemail && noemailpro && nofax %] |
|
|
544 |
[% IF fields_to_hide.search('primary_contact') %] |
545 |
<fieldset class="rows hidefield" id="memberentry_contact"> |
546 |
[% ELSE %] |
495 |
<fieldset class="rows" id="memberentry_contact"> |
547 |
<fieldset class="rows" id="memberentry_contact"> |
|
|
548 |
[% END %] |
496 |
<legend id="contact_lgd">Contact</legend><ol> |
549 |
<legend id="contact_lgd">Contact</legend><ol> |
497 |
[% UNLESS nophone %] |
550 |
[% UNLESS nophone %] |
498 |
<li> |
551 |
<li> |
Lines 577-603
$(document).ready(function() {
Link Here
|
577 |
[% IF ( step_6 ) %] |
630 |
[% IF ( step_6 ) %] |
578 |
|
631 |
|
579 |
[% UNLESS noB_address && noB_address2 && noB_city && noB_zipcode && noB_state && noB_country &&nocontactnote && noB_phone && noB_email %] |
632 |
[% UNLESS noB_address && noB_address2 && noB_city && noB_zipcode && noB_state && noB_country &&nocontactnote && noB_phone && noB_email %] |
|
|
633 |
[% IF fields_to_hide.search('alt_address') %] |
634 |
<fieldset class="hidefield"> |
635 |
[% ELSE %] |
580 |
[% IF Koha.Preference( 'AddressFormat' ) %] |
636 |
[% IF Koha.Preference( 'AddressFormat' ) %] |
581 |
[% INCLUDE "member-alt-address-style-${ Koha.Preference( 'AddressFormat' ) }.inc" %] |
637 |
[% INCLUDE "member-alt-address-style-${ Koha.Preference( 'AddressFormat' ) }.inc" %] |
582 |
[% ELSE %] |
638 |
[% ELSE %] |
583 |
[% INCLUDE 'member-alt-address-style-us.inc' %] |
639 |
[% INCLUDE 'member-alt-address-style-us.inc' %] |
584 |
[% END %] |
640 |
[% END %] |
|
|
641 |
[% END %] |
642 |
[% IF fields_to_hide.search('alt_address') %]</fieldset>[% END %] |
585 |
[% END # UNLESS noB_address && noB_city && noB_state && noB_phone && noB_email %] |
643 |
[% END # UNLESS noB_address && noB_city && noB_state && noB_phone && noB_email %] |
586 |
[% END %] |
644 |
[% END %] |
587 |
[% IF ( step_2 ) %] |
645 |
[% IF ( step_2 ) %] |
588 |
[% UNLESS noaltcontactsurname && noaltcontactfirstname && noaltcontactaddress1 && noaltcontactaddress2 && noaltcontactaddress3 && noaltcontactstate && noaltcontactzipcode && noaltcontactcountry && noaltcontactphone %] |
646 |
[% UNLESS noaltcontactsurname && noaltcontactfirstname && noaltcontactaddress1 && noaltcontactaddress2 && noaltcontactaddress3 && noaltcontactstate && noaltcontactzipcode && noaltcontactcountry && noaltcontactphone %] |
|
|
647 |
[% IF fields_to_hide.search('alt_contact') %] |
648 |
<fieldset class="hidefield"> |
649 |
[% ELSE %] |
589 |
[% IF Koha.Preference( 'AddressFormat' ) %] |
650 |
[% IF Koha.Preference( 'AddressFormat' ) %] |
590 |
[% INCLUDE "member-alt-contact-style-${ Koha.Preference( 'AddressFormat' ) }.inc" %] |
651 |
[% INCLUDE "member-alt-contact-style-${ Koha.Preference( 'AddressFormat' ) }.inc" %] |
591 |
[% ELSE %] |
652 |
[% ELSE %] |
592 |
[% INCLUDE 'member-alt-contact-style-us.inc' %] |
653 |
[% INCLUDE 'member-alt-contact-style-us.inc' %] |
593 |
[% END %] |
654 |
[% END %] |
|
|
655 |
[% END %] |
656 |
[% IF fields_to_hide.search('alt_contact') %]</fieldset>[% END %] |
594 |
[% END # UNLESS noaltcontactsurname && noaltcontactfirstname etc %] |
657 |
[% END # UNLESS noaltcontactsurname && noaltcontactfirstname etc %] |
595 |
|
658 |
|
596 |
[% END %] |
659 |
[% END %] |
597 |
[% IF ( step_3 ) %] |
660 |
[% IF ( step_3 ) %] |
598 |
|
661 |
|
599 |
[% SET autoMemberNum = Koha.Preference('autoMemberNum') %] |
662 |
[% SET autoMemberNum = Koha.Preference('autoMemberNum') %] |
600 |
<fieldset class="rows" id="memberentry_library_management"> |
663 |
[% IF fields_to_hide.search('lib_mgmt') %] |
|
|
664 |
<fieldset class="rows hidefield" id="memberentry_library_management"> |
665 |
[% ELSE %] |
666 |
<fieldset class="rows" id="memberentry_library_management"> |
667 |
[% END %] |
601 |
<legend id="library_management_lgd">Library management</legend><ol> |
668 |
<legend id="library_management_lgd">Library management</legend><ol> |
602 |
[% UNLESS nocardnumber %] |
669 |
[% UNLESS nocardnumber %] |
603 |
<li> |
670 |
<li> |
Lines 723-729
$(document).ready(function() {
Link Here
|
723 |
</ol> |
790 |
</ol> |
724 |
</fieldset> |
791 |
</fieldset> |
725 |
[% UNLESS nodateenrolled && noopacnote && noborrowernotes %] |
792 |
[% UNLESS nodateenrolled && noopacnote && noborrowernotes %] |
726 |
<fieldset class="rows" id="memberentry_subscription"> |
793 |
[% IF fields_to_hide.search('lib_setup') %] |
|
|
794 |
<fieldset class="rows hidefield" id="memberentry_subscription"> |
795 |
[% ELSE %] |
796 |
<fieldset class="rows" id="memberentry_subscription"> |
797 |
[% END %] |
727 |
<legend id="library_setup_lgd">Library set-up</legend><ol> |
798 |
<legend id="library_setup_lgd">Library set-up</legend><ol> |
728 |
[% UNLESS nodateenrolled %] |
799 |
[% UNLESS nodateenrolled %] |
729 |
<li> |
800 |
<li> |
Lines 802-808
$(document).ready(function() {
Link Here
|
802 |
[% END # hide fieldset %] |
873 |
[% END # hide fieldset %] |
803 |
|
874 |
|
804 |
[% UNLESS nouserid && nopassword %] |
875 |
[% UNLESS nouserid && nopassword %] |
805 |
<fieldset class="rows" id="memberentry_userid"> |
876 |
[% IF fields_to_hide.search('login') %] |
|
|
877 |
<fieldset class="rows hidefield" id="memberentry_userid"> |
878 |
[% ELSE %] |
879 |
<fieldset class="rows" id="memberentry_userid"> |
880 |
[% END %] |
806 |
<legend id="opac_staff_login_lgd">OPAC/Staff login</legend><ol> |
881 |
<legend id="opac_staff_login_lgd">OPAC/Staff login</legend><ol> |
807 |
[% UNLESS nouserid %] |
882 |
[% UNLESS nouserid %] |
808 |
<li> |
883 |
<li> |
Lines 924-930
$(document).ready(function() {
Link Here
|
924 |
[% END # hide fieldset %][% END %] |
999 |
[% END # hide fieldset %][% END %] |
925 |
<!--this zones are not necessary in modif mode --> |
1000 |
<!--this zones are not necessary in modif mode --> |
926 |
[% UNLESS ( opadd || opduplicate ) %] |
1001 |
[% UNLESS ( opadd || opduplicate ) %] |
927 |
<fieldset class="rows" id="memberentry_account_flags"> |
1002 |
[% IF fields_to_hide.search('flags') %] |
|
|
1003 |
<fieldset class="rows hidefield" id="memberentry_account_flags"> |
1004 |
[% ELSE %] |
1005 |
<fieldset class="rows" id="memberentry_account_flags"> |
1006 |
[% END %] |
928 |
<legend id="account_flags_lgd">Patron account flags</legend> |
1007 |
<legend id="account_flags_lgd">Patron account flags</legend> |
929 |
<ol class="radio"> |
1008 |
<ol class="radio"> |
930 |
[% FOREACH flagloo IN flagloop %] |
1009 |
[% FOREACH flagloo IN flagloop %] |
Lines 957-963
$(document).ready(function() {
Link Here
|
957 |
</ol> |
1036 |
</ol> |
958 |
</fieldset> |
1037 |
</fieldset> |
959 |
|
1038 |
|
|
|
1039 |
[% IF fields_to_hide.search('restrictions') %] |
1040 |
<fieldset class="rows hidefield" id="memberentry_restrictions"> |
1041 |
[% ELSE %] |
960 |
<fieldset class="rows" id="memberentry_restrictions"> |
1042 |
<fieldset class="rows" id="memberentry_restrictions"> |
|
|
1043 |
[% END %] |
961 |
<legend id="restrictions_lgd">Patron restrictions</legend> |
1044 |
<legend id="restrictions_lgd">Patron restrictions</legend> |
962 |
|
1045 |
|
963 |
[% IF ( debarments ) %] |
1046 |
[% IF ( debarments ) %] |
Lines 1021-1027
$(document).ready(function() {
Link Here
|
1021 |
|
1104 |
|
1022 |
[% IF ( step_4 ) %] |
1105 |
[% IF ( step_4 ) %] |
1023 |
[% IF Koha.Preference('HouseboundModule') %] |
1106 |
[% IF Koha.Preference('HouseboundModule') %] |
|
|
1107 |
[% IF fields_to_hide.search('housebound') %] |
1108 |
<fieldset class="rows hidefield" id="memberentry_housebound_roles"> |
1109 |
[% ELSE %] |
1024 |
<fieldset class="rows" id="memberentry_housebound_roles"> |
1110 |
<fieldset class="rows" id="memberentry_housebound_roles"> |
|
|
1111 |
[% END %] |
1025 |
<legend id="housebound_roles">Housebound roles</legend> |
1112 |
<legend id="housebound_roles">Housebound roles</legend> |
1026 |
<ol class="radio"> |
1113 |
<ol class="radio"> |
1027 |
<li> |
1114 |
<li> |
Lines 1070-1076
$(document).ready(function() {
Link Here
|
1070 |
</fieldset> |
1157 |
</fieldset> |
1071 |
[% END # hide fieldset %] |
1158 |
[% END # hide fieldset %] |
1072 |
[% IF ( ExtendedPatronAttributes ) %][% UNLESS ( no_patron_attribute_types ) %] |
1159 |
[% IF ( ExtendedPatronAttributes ) %][% UNLESS ( no_patron_attribute_types ) %] |
|
|
1160 |
[% IF fields_to_hide.search('additional') %] |
1161 |
<fieldset class="rows hidefield" id="memberentry_patron_attributes"> |
1162 |
[% ELSE %] |
1073 |
<fieldset class="rows" id="memberentry_patron_attributes"> |
1163 |
<fieldset class="rows" id="memberentry_patron_attributes"> |
|
|
1164 |
[% END %] |
1074 |
<legend id="patron_attributes_lgd">Additional attributes and identifiers</legend> |
1165 |
<legend id="patron_attributes_lgd">Additional attributes and identifiers</legend> |
1075 |
<input type="hidden" name="setting_extended_patron_attributes" value="1" /> |
1166 |
<input type="hidden" name="setting_extended_patron_attributes" value="1" /> |
1076 |
[% FOREACH pa_loo IN patron_attributes %] |
1167 |
[% FOREACH pa_loo IN patron_attributes %] |
Lines 1114-1120
$(document).ready(function() {
Link Here
|
1114 |
[% END %][% END %][% END %] |
1205 |
[% END %][% END %][% END %] |
1115 |
|
1206 |
|
1116 |
[% IF ( step_5 ) %][% IF ( EnhancedMessagingPreferences ) %] |
1207 |
[% IF ( step_5 ) %][% IF ( EnhancedMessagingPreferences ) %] |
|
|
1208 |
[% IF fields_to_hide.search('messaging') %] |
1209 |
<fieldset class="rows hidefield" id="memberentry_messaging_prefs"> |
1210 |
[% ELSE %] |
1117 |
<fieldset class="rows" id="memberentry_messaging_prefs"> |
1211 |
<fieldset class="rows" id="memberentry_messaging_prefs"> |
|
|
1212 |
[% END %] |
1118 |
<legend id="patron_messaging_prefs_lgd">Patron messaging preferences</legend> |
1213 |
<legend id="patron_messaging_prefs_lgd">Patron messaging preferences</legend> |
1119 |
[% IF ( opadd ) %] |
1214 |
[% IF ( opadd ) %] |
1120 |
<!-- handle changing prefs if creating new patron and changing |
1215 |
<!-- handle changing prefs if creating new patron and changing |
1121 |
- |
|
|