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>
28 lines
710 B
PHP
28 lines
710 B
PHP
<!-- z3950_search.inc -->
|
|
<script>
|
|
|
|
var MSG_CHOOSE_Z3950 = _("Please choose at least one external target");
|
|
|
|
[% IF ( total_pages ) %]
|
|
var interface = "[% interface | html %]";
|
|
var theme = "[% theme | html %]";
|
|
var MSG_LOADING = _("Loading");
|
|
|
|
function validate_goto_page(){
|
|
var page = $('#goto_page').val();
|
|
if(isNaN(page)) {
|
|
alert(_("The page entered is not a number."));
|
|
return false;
|
|
}
|
|
else if(page < 1 || page > [% total_pages | html %] ) {
|
|
alert(_("The page should be a number between 1 and %s.").format([% total_pages | html %]));
|
|
return false;
|
|
}
|
|
else {
|
|
return true;
|
|
}
|
|
}
|
|
[% END %]
|
|
|
|
</script>
|
|
<!-- / z3950_search.inc -->
|