To update the image for [% patron.title | html %] [% patron.surname | html %], select a new image file and click 'Upload.'
Click the 'Delete' button to remove the current image.
- [% ELSE %]
-
-
[% patron.title %] [% patron.firstname | html %] [% patron.surname | html %] does not currently have an image available. To import an image for [% patron.title %] [% patron.surname | html %], enter the name of an image file to upload.
- [% END %]
-
Only PNG, GIF, JPEG, XPM formats are supported.
-
+
+ [% IF ( patron.image ) %]
+
+
Manage patron image
+
Edit
+
+ [% ELSE %]
+
+
Upload patron image
+
Add
+
+ [% END %]
+
[% # /div#manage-patron-image %]
[% END %]
[% END %]
[% IF Koha.Preference('HouseboundModule') %]
-
-
Housebound roles
-
-
- -
- Chooser:
- [% IF ( housebound_role.housebound_chooser == 1 ) %]
- Yes
- [% ELSE %]
- No
- [% END %]
-
- -
- Deliverer:
- [% IF ( housebound_role.housebound_deliverer == 1 ) %]
- Yes
- [% ELSE %]
- No
- [% END %]
-
-
-
-
-
+
+ [% IF ( housebound_role.housebound_chooser == 1 OR housebound_role.housebound_deliverer == 1 ) %]
+
+
Housebound roles
+
Edit
+
+
+
+ -
+ Chooser:
+ [% IF ( housebound_role.housebound_chooser == 1 ) %]
+ Yes
+ [% ELSE %]
+ No
+ [% END %]
+
+ -
+ Deliverer:
+ [% IF ( housebound_role.housebound_deliverer == 1 ) %]
+ Yes
+ [% ELSE %]
+ No
+ [% END %]
+
+
+
+ [% ELSE %]
+
+
Housebound roles
+
Add
+
+ [% END %]
+
[% #/ div#houseboundroles %]
[% END %]
[% IF ( ExtendedPatronAttributes ) %]
[% UNLESS ( no_patron_attribute_types ) %]
-
-
Additional attributes and identifiers
- [% FOREACH attribute IN attributes_loop %]
- [% IF attribute.class %]
-
- [% ELSE %]
-
+
+ [% IF ( attributes_loop ) %]
+
+
Additional attributes and identifiers
+
Edit
+
+ [% FOREACH attribute IN attributes_loop %]
+ [% IF attribute.class %]
+
+ [% ELSE %]
+
+ [% END %]
+
[% attribute.lib %]
+
+ [% FOREACH item IN attribute.items %]
+ -
+ [% item.description %]:
+ [% IF ( item.value_description ) %]
+ [% item.value_description %]
+ [% ELSE %]
+ [% item.value| html_line_break %]
+ [% END %]
+
+ [% END %]
+
+
[% END %]
-
[% attribute.lib %]
-
- [% FOREACH item IN attribute.items %]
- -
- [% item.description %]:
- [% IF ( item.value_description ) %]
- [% item.value_description %]
- [% ELSE %]
- [% item.value| html_line_break %]
- [% END %]
-
- [% END %]
-
+
+
+ [% ELSE %]
+
+
Additional attributes and identifiers
+
Add
[% END %]
-
-
+
[% # /div#patron-extended-attributes %]
[% END %]
[% END %]
[% IF ( EnhancedMessagingPreferences ) %]
-
-
Patron messaging preferences
+
+
+
Patron messaging preferences
+
Edit
+
[% INCLUDE 'messaging-preference-form.inc' %]
[% IF ( SMSSendDriver ) %]
@@ -352,17 +386,17 @@
[% END %]
-
-
+
[% # /div#patron-messaging-prefs %]
[% END %]
[% # /div.yui-u.first %]
-
-
Library use
+
[% # /div#patron-library-details %]
-
-
-
Alternate address
+
+ [% IF ( patron.B_phone || patron.B_email || patron.contactnote || patron.B_address || patron.B_address2 || patron.B_city || patron.B_zipcode || patron.B_country ) %]
+
+
Alternate address
+
Edit
+
+
+
+ [% IF Koha.Preference( 'AddressFormat' ) %]
+ [% INCLUDE "member-display-alt-address-style-${ Koha.Preference( 'AddressFormat' ) }.inc" %]
+ [% ELSE %]
+ [% INCLUDE 'member-display-alt-address-style-us.inc' %]
+ [% END %]
+
+
+
+
+ [% IF ( patron.B_phone ) %]
+ -
+ Phone:
+ [% patron.B_phone |html %]
+
+ [% END %]
+
+ [% IF ( patron.B_email ) %]
+ -
+ Email:
+ [% B_email |html %]
+
+ [% END %]
- [% IF Koha.Preference( 'AddressFormat' ) %]
- [% INCLUDE "member-display-alt-address-style-${ Koha.Preference( 'AddressFormat' ) }.inc" %]
+ [% IF ( patron.contactnote ) %]
+ -
+ Contact note:
+ [% patron.contactnote |html %]
+
+ [% END %]
+
+
[% ELSE %]
- [% INCLUDE 'member-display-alt-address-style-us.inc' %]
+
+
Alternate address
+
Add
+
[% END %]
-
-
-
- [% IF ( patron.B_phone ) %]
- -
- Phone:
- [% patron.B_phone |html %]
-
- [% END %]
- [% IF ( patron.B_email ) %]
- -
- Email:
- [% B_email |html %]
-
- [% END %]
- [% IF ( patron.contactnote ) %]
- -
- Contact note:
- [% patron.contactnote |html %]
-
- [% END %]
-
-
[% # /div#patron-alternate-address %]
-
-
[% # /div.yui-u %]
[% # /div.yui-g %]
@@ -846,6 +906,18 @@
$("#view_restrictions").on("click",function(){
$('#debarments-tab-link').click();
});
+
+ $("#show-picture-upload").on("click", function(e){
+ e.preventDefault();
+ $(this).toggle();
+ $("#picture-upload").toggle();
+ });
+
+ $("#cancel-picture-upload").on("click", function(e){
+ e.preventDefault();
+ $("#picture-upload, #show-picture-upload").toggle();
+ });
+
});
function uncheck_sibling(me){
nodename=me.getAttribute("name");
--