Owen Leonard
9ea7fbcb30
This patch adds HTML comments to Template::Toolkit include files which contain <script> tags so that it is clear where the embedded scripts can be found in the code. To test, apply the patch and view source on the following pages to verify the presence of the comments: Acquisitions home page: - acquisitions-toolbar.inc - validtor-strings.inc - js_includes.inc - format-price.inc Acquisitions -> Add order from new record, Acquisitions -> Receive order: - additem.js.inc Cataloging -> Add/Edit item: - columns_settings.inc - strings.inc - select2.inc - calendar.inc - str/cataloging_additem.inc Authorities home page: - authorities_js.inc Bibliographic detail page: - catalog-strings.inc Cataloging -> Advanced editor: - cateditor-ui.inc - cateditor-widgets-marc21.inc Administration -> Item types: - greybox.inc ILL requests: - ill-list-table-strings.inc Web installer - installer-intranet-bottom.inc Web installer -> Onboarding - installer-strings.inc Lists -> List contents -> Merge records - merge-record-strings.inc Patrons -> Patron -> Change password - password_check.inc - str/members-menu.inc Patrons -> Patron -> Print summary - slip-print.inc Circulation -> Check out - timepicker.inc Administration -> System preferences: - str/tinymce_i18n.inc - wysiwyg-systempreferences.inc Cataloging -> Z39.50 Search: - z3950_search.inc Signed-off-by: Frédéric Demians <f.demians@tamil.fr> Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
44 lines
2 KiB
PHP
44 lines
2 KiB
PHP
[% USE scalar %]
|
|
[% USE Koha %]
|
|
[% USE Categories %]
|
|
<!-- str/members-menu.inc -->
|
|
<script>
|
|
var MSG_CONFIRM_RENEW_PATRON = _("Are you sure you want to renew this patron's registration?");
|
|
var MSG_CONFIRM_UPDATE_CHILD = _("Are you sure you want to update this child to an Adult category? This cannot be undone.");
|
|
var MSG_DATE_FORMAT_US = _("Dates of birth should be entered in the format 'MM/DD/YYYY'");
|
|
var MSG_DATE_FORMAT_ISO = _("Dates of birth should be entered in the format 'YYYY-MM-DD'");
|
|
var MSG_DATE_FORMAT_METRIC = _("Dates of birth should be entered in the format 'DD/MM/YYYY'");
|
|
var MSG_DATE_FORMAT_DMYDOT = _("Dates of birth should be entered in the format 'DD.MM.YYYY'");
|
|
|
|
var advsearch = "[% advsearch | html %]";
|
|
var destination = "[% destination | html %]";
|
|
|
|
var CAN_user_borrowers_edit_borrowers = "[% CAN_user_borrowers_edit_borrowers | html %]";
|
|
|
|
var dateformat = "[% Koha.Preference('dateformat') | html %]";
|
|
|
|
var borrowernumber;
|
|
var number_of_adult_categories = 0;
|
|
[% IF patron %]
|
|
borrowernumber = "[% patron.borrowernumber | html %]";
|
|
[% IF patron.is_child %]
|
|
[% SET adult_categories = Categories.scalar.all(category_type => 'A') %]
|
|
[% SET number_of_adult_categories = adult_categories.count %]
|
|
number_of_adult_categories = [% number_of_adult_categories | html %]
|
|
[% END %]
|
|
[% END %]
|
|
|
|
[% IF ( patron.image ) %]
|
|
$("body").on("click", "#delpicture", function(){
|
|
return confirm(_("Are you sure you want to delete this patron image? This cannot be undone."));
|
|
});
|
|
$('#manage-patron-image').find("input[value*=Upload]").click(function(){
|
|
if($("#uploadfile").val() == ""){
|
|
alert(_("Please choose a file to upload"));
|
|
return false;
|
|
}
|
|
return confirm(_("Are you sure you want to replace the current patron image? This cannot be undone."));
|
|
});
|
|
[% END %]
|
|
</script>
|
|
<!-- / str/members-menu.inc -->
|