6 var MSG_CONFIRM_RENEW_PATRON = _("Are you sure you want to renew this patron's registration?");
7 var MSG_CONFIRM_UPDATE_CHILD = _("Are you sure you want to update this child to an Adult category? This cannot be undone.");
8 var MSG_DATE_FORMAT_US = _("Dates of birth should be entered in the format 'MM/DD/YYYY'");
9 var MSG_DATE_FORMAT_ISO = _("Dates of birth should be entered in the format 'YYYY-MM-DD'");
10 var MSG_DATE_FORMAT_METRIC = _("Dates of birth should be entered in the format 'DD/MM/YYYY'");
11 var MSG_DATE_FORMAT_DMYDOT = _("Dates of birth should be entered in the format 'DD.MM.YYYY'");
13 var advsearch = "[% advsearch | html %]";
14 var destination = "[% destination | html %]";
16 var CAN_user_borrowers_edit_borrowers = "[% CAN_user_borrowers_edit_borrowers | html %]";
18 var dateformat = "[% Koha.Preference('dateformat') | html %]";
21 var number_of_adult_categories = 0;
23 borrowernumber = "[% patron.borrowernumber | html %]";
24 [% IF patron.is_child %]
25 [% SET adult_categories = Categories.scalar.all(category_type => 'A') %]
26 [% SET number_of_adult_categories = adult_categories.count %]
27 number_of_adult_categories = [% number_of_adult_categories | html %]
31 [% IF ( patron.image ) %]
32 $("body").on("click", "#delpicture", function(){
33 return confirm(_("Are you sure you want to delete this patron image? This cannot be undone."));
35 $('#manage-patron-image').find("input[value*=Upload]").click(function(){
36 if($("#uploadfile").val() == ""){
37 alert(_("Please choose a file to upload"));
40 return confirm(_("Are you sure you want to replace the current patron image? This cannot be undone."));