Bug 20053: Drop type attribute "text/javascript" in OPAC templates
This patch is a reimplementation of the original from Indranil Das Gupta and the QA follow-up from Julian Maurice. Original test plan: Conformance rules for HTML5 is generating warnings for <script> element with type="text/javascript" attribute when the OPAC page is checked with W3C Validator. This patch removes the cause of these warnings. Test plan ========= 1/ Paste the URL to your OPAC page (if it is hosted) to W3C Validator and watch about 10+ warnings being generated by the validator. 2/ Apply patch and re-submit the page to the Validator. The warnings would be gone. Signed-off-by: Jon Knight <J.P.Knight@lboro.ac.uk> Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org> Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
This commit is contained in:
parent
564e9ce1ee
commit
3e91d99a15
48 changed files with 79 additions and 78 deletions
|
@ -1,5 +1,5 @@
|
|||
[% USE Koha %]
|
||||
<script type="text/javascript">
|
||||
<script>
|
||||
//<![CDATA[
|
||||
var debug = "[% debug %]";
|
||||
var dformat = "[% dateformat %]";
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
[% USE ColumnsSettings %]
|
||||
|
||||
<script type="text/javascript">
|
||||
<script>
|
||||
function KohaTable(selector, dt_parameters, columns_settings) {
|
||||
var id = 0;
|
||||
var hidden_ids = [];
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
[% USE Asset %]
|
||||
[% Asset.js("lib/jquery/plugins/jquery.dataTables.min.js") %]
|
||||
<script type="text/javascript">
|
||||
<script>
|
||||
//<![CDATA[
|
||||
var MSG_DT_FIRST = _("First");
|
||||
var MSG_DT_LAST = _("Last");
|
||||
|
|
|
@ -49,7 +49,7 @@
|
|||
<!--[if lt IE 9]>
|
||||
<script src="[% interface %]/[% theme %]/lib/respond.min.js"></script>
|
||||
<![endif]-->
|
||||
<script type="text/javascript">
|
||||
<script>
|
||||
function _(s) { return s } // dummy function for gettext
|
||||
</script>
|
||||
[% Asset.js("lib/modernizr.min.js") %]
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
[% USE Asset %]
|
||||
<script type="text/javascript">
|
||||
<script>
|
||||
var GB_ROOT_DIR = "[% interface %]/[% theme %]/lib/greybox/";
|
||||
</script>
|
||||
[% Asset.js("lib/greybox/AJS.js") %]
|
||||
|
|
|
@ -81,13 +81,13 @@
|
|||
<!-- JavaScript includes -->
|
||||
[% Asset.js("lib/jquery/jquery.js") %]
|
||||
[% Asset.js("lib/jquery/jquery-ui.js") %]
|
||||
<script type="text/javascript">
|
||||
<script>
|
||||
// Resolve name collision between jQuery UI and Twitter Bootstrap
|
||||
$.widget.bridge('uitooltip', $.ui.tooltip);
|
||||
</script>
|
||||
[% Asset.js("lib/bootstrap/js/bootstrap.min.js") %]
|
||||
[% Asset.js("js/global.js") %]
|
||||
<script type="text/javascript">
|
||||
<script>
|
||||
Modernizr.load([
|
||||
// Test need for polyfill
|
||||
{
|
||||
|
@ -103,7 +103,7 @@ $.widget.bridge('uitooltip', $.ui.tooltip);
|
|||
$.fn.modal.Constructor.prototype.enforceFocus = function () {};
|
||||
</script>
|
||||
[% IF ( OPACAmazonCoverImages || SyndeticsCoverImages ) %]
|
||||
<script type="text/javascript">//<![CDATA[
|
||||
<script>//<![CDATA[
|
||||
var NO_AMAZON_IMAGE = _("No cover image available");
|
||||
//]]>
|
||||
</script>
|
||||
|
@ -115,7 +115,7 @@ $.widget.bridge('uitooltip', $.ui.tooltip);
|
|||
[% Asset.js("lib/emoji-picker/js/jquery.emojiarea.js") %]
|
||||
[% Asset.js("lib/emoji-picker/js/emoji-picker.js") %]
|
||||
|
||||
<script type="text/javascript">
|
||||
<script>
|
||||
//<![CDATA[
|
||||
var MSG_CONFIRM_AGAIN = _("Warning: Cannot be undone. Please confirm once again")
|
||||
var MSG_DELETE_SEARCH_HISTORY = _("Are you sure you want to delete your search history?");
|
||||
|
@ -183,13 +183,13 @@ $.widget.bridge('uitooltip', $.ui.tooltip);
|
|||
[% ELSIF ( Koha.Preference( 'virtualshelves' ) == 1 ) %]
|
||||
[% Asset.js("js/basket.js") %]
|
||||
[% ELSE %]
|
||||
<script type="text/javascript">var readCookie;</script>
|
||||
<script>var readCookie;</script>
|
||||
[% END %]
|
||||
|
||||
[% IF Koha.Preference( 'opacuserlogin' ) == 1 %][% IF Koha.Preference( 'TagsEnabled' ) == 1 %][% Asset.js("js/tags.js") %][% END %][% ELSE %][% END %]
|
||||
[% IF ( GoogleJackets ) %]
|
||||
[% Asset.js("js/google-jackets.js") %]
|
||||
<script type="text/javascript">
|
||||
<script>
|
||||
//<![CDATA[
|
||||
var NO_GOOGLE_JACKET = _("No cover image available");
|
||||
//]]>
|
||||
|
@ -197,7 +197,7 @@ $.widget.bridge('uitooltip', $.ui.tooltip);
|
|||
[% END %]
|
||||
[% IF ( Koha.Preference('Coce') && Koha.Preference('CoceProviders') ) %]
|
||||
[% Asset.js("js/coce.js") %]
|
||||
<script type="text/javascript">
|
||||
<script>
|
||||
//<![CDATA[
|
||||
var NO_COCE_JACKET = _("No cover image available");
|
||||
//]]>
|
||||
|
@ -206,7 +206,7 @@ $.widget.bridge('uitooltip', $.ui.tooltip);
|
|||
|
||||
[% IF OpenLibraryCovers || OpenLibrarySearch %]
|
||||
[% Asset.js("js/openlibrary.js") %]
|
||||
<script type="text/javascript">
|
||||
<script>
|
||||
//<![CDATA[
|
||||
var NO_OL_JACKET = _("No cover image available");
|
||||
var OL_PREVIEW = _("Preview");
|
||||
|
@ -216,7 +216,7 @@ $.widget.bridge('uitooltip', $.ui.tooltip);
|
|||
|
||||
[% IF OPACLocalCoverImages %]
|
||||
[% Asset.js("js/localcovers.js") %]
|
||||
<script type="text/javascript">
|
||||
<script>
|
||||
//<![CDATA[
|
||||
var NO_LOCAL_JACKET = _("No cover image available");
|
||||
//]]>
|
||||
|
@ -225,7 +225,7 @@ $.widget.bridge('uitooltip', $.ui.tooltip);
|
|||
|
||||
[% IF ( BakerTaylorEnabled ) %]
|
||||
[% Asset.js("js/bakertaylorimages.js") %]
|
||||
<script type="text/javascript">
|
||||
<script>
|
||||
//<![CDATA[
|
||||
var NO_BAKERTAYLOR_IMAGE = _("No cover image available");
|
||||
$(window).load(function(){
|
||||
|
@ -235,12 +235,12 @@ $.widget.bridge('uitooltip', $.ui.tooltip);
|
|||
</script>
|
||||
[% END %]
|
||||
[% IF ( GoogleIndicTransliteration ) %]
|
||||
<script type="text/javascript" src="https://www.google.com/jsapi"></script>
|
||||
<script src="https://www.google.com/jsapi"></script>
|
||||
[% Asset.js("js/googleindictransliteration.js") %]
|
||||
[% END %]
|
||||
|
||||
[% IF Koha.Preference( 'OpacNewsLibrarySelect' ) %]
|
||||
<script type="text/javascript">
|
||||
<script>
|
||||
$("#news-branch-select").change(function() {
|
||||
$( "#news-branch-select" ).submit();
|
||||
});
|
||||
|
@ -248,7 +248,7 @@ $.widget.bridge('uitooltip', $.ui.tooltip);
|
|||
[% END %]
|
||||
|
||||
[% Asset.js("lib/jquery/plugins/jquery.cookie.min.js") %]
|
||||
<script type="text/javascript">
|
||||
<script>
|
||||
$(document).ready(function() {
|
||||
if($('#searchsubmit').length) {
|
||||
$(document).on("click", '#searchsubmit', function(e) {
|
||||
|
@ -270,7 +270,7 @@ $(document).ready(function() {
|
|||
</script>
|
||||
[% PROCESS jsinclude %]
|
||||
[% IF ( OPACUserJS ) %]
|
||||
<script type="text/javascript">
|
||||
<script>
|
||||
//<![CDATA[
|
||||
[% OPACUserJS %]
|
||||
//]]>
|
||||
|
@ -279,7 +279,7 @@ $(document).ready(function() {
|
|||
[% IF SCO_login %]
|
||||
[% SET SCOUserJS = Koha.Preference('SCOUserJS') %]
|
||||
[% IF ( SCOUserJS ) %]
|
||||
<script type="text/javascript">
|
||||
<script>
|
||||
//<![CDATA[
|
||||
[% SCOUserJS %]
|
||||
//]]>
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
[% USE Koha %]
|
||||
[% BLOCK add_password_check %]
|
||||
<script type="text/javascript">
|
||||
<script>
|
||||
var pwd_title = "";
|
||||
var pattern_title = "";
|
||||
var new_password_node_name = "[% new_password %]";
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
<script type="text/javascript">
|
||||
<script>
|
||||
[% IF ( Koha.Preference('IntranetSlipPrinterJS') ) %]
|
||||
[% Koha.Preference('IntranetSlipPrinterJS') %]
|
||||
[% ELSE %]
|
||||
|
|
|
@ -68,7 +68,7 @@
|
|||
</table>
|
||||
[% END %]
|
||||
|
||||
<script type="text/javascript">
|
||||
<script>
|
||||
function loadEnrollmentForm( id ) {
|
||||
$("body").css("cursor", "progress");
|
||||
$('#opac-user-clubs').load('/cgi-bin/koha/clubs/enroll.pl?borrowernumber=[% borrower.borrowernumber %]&id=' + id, function() {
|
||||
|
|
|
@ -36,7 +36,7 @@
|
|||
</form>
|
||||
</div>
|
||||
|
||||
<script type="text/javascript">
|
||||
<script>
|
||||
function addEnrollment() {
|
||||
$("body").css("cursor", "progress");
|
||||
$.ajax({
|
||||
|
|
|
@ -169,7 +169,7 @@
|
|||
|
||||
[% INCLUDE 'opac-bottom.inc' %]
|
||||
[% BLOCK jsinclude %]
|
||||
<script type="text/javascript">
|
||||
<script>
|
||||
//<![CDATA[
|
||||
[% IF ( OPACXSLTDetailsDisplay ) %]
|
||||
$(document).ready(function(){
|
||||
|
|
|
@ -186,7 +186,7 @@
|
|||
[% INCLUDE 'opac-bottom.inc' %]
|
||||
[% BLOCK jsinclude %]
|
||||
[% INCLUDE 'datatables.inc' %]
|
||||
<script type="text/javascript">
|
||||
<script>
|
||||
$( document ).ready(function() {
|
||||
|
||||
$("#finestable").dataTable($.extend(true, {}, dataTablesDefaults, {
|
||||
|
|
|
@ -399,7 +399,7 @@
|
|||
[% BLOCK jsinclude %]
|
||||
[% Asset.js("lib/jquery/plugins/jquery.deserialize.min.js") %]
|
||||
[% Asset.js("lib/jquery/plugins/jquery.cookie.min.js") %]
|
||||
<script type="text/javascript">//<![CDATA[
|
||||
<script>//<![CDATA[
|
||||
$(document).ready(function() {
|
||||
$('#advsearches').tabs();
|
||||
jQuery.cookie.json = true;
|
||||
|
|
|
@ -65,7 +65,7 @@
|
|||
[% INCLUDE 'opac-bottom.inc' %]
|
||||
[% BLOCK jsinclude %]
|
||||
[% Asset.js("lib/jquery/plugins/jquery.jstree.js") %]
|
||||
<script type="text/javascript">
|
||||
<script>
|
||||
//<![CDATA[
|
||||
$(document).ready(function() {
|
||||
[% IF ( displayhierarchy ) %]
|
||||
|
|
|
@ -131,7 +131,7 @@
|
|||
[% IF ( displayhierarchy ) %]
|
||||
[% Asset.js("lib/jquery/plugins/jquery.jstree.js") %]
|
||||
[% END %]
|
||||
<script type="text/javascript">
|
||||
<script>
|
||||
//<![CDATA[
|
||||
$(document).ready(function() {
|
||||
$('#authdescriptions').tabs();
|
||||
|
|
|
@ -213,7 +213,7 @@
|
|||
|
||||
[% INCLUDE 'opac-bottom.inc' %]
|
||||
[% BLOCK jsinclude %]
|
||||
<script type="text/javascript">
|
||||
<script>
|
||||
//<![CDATA[
|
||||
// Hide circular 'Log in to Your Account' link in opac-auth.pl
|
||||
$(document).ready(function() {
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
[% USE Koha %]
|
||||
[% USE KohaDates %]
|
||||
[% USE Asset %]
|
||||
[% SET TagsInputEnabled = ( ( Koha.Preference( 'opacuserlogin' ) == 1 ) && TagsEnabled && TagsInputOnList ) %]
|
||||
|
||||
[% INCLUDE 'doc-head-open.inc' %]
|
||||
|
@ -297,9 +298,9 @@
|
|||
[% INCLUDE 'opac-bottom.inc' %]
|
||||
|
||||
[% BLOCK jsinclude %]
|
||||
<script type="text/javascript" src="[% interface %]/[% theme %]/lib/jquery/plugins/jquery.checkboxes.min.js"></script>
|
||||
[% Asset.js("lib/jquery/plugins/jquery.checkboxes.min.js") %]
|
||||
[% INCLUDE 'datatables.inc' %]
|
||||
<script type="text/javascript">
|
||||
<script>
|
||||
//<![CDATA[
|
||||
|
||||
[% IF ( TagsInputEnabled && loggedinusername ) %]
|
||||
|
|
|
@ -105,7 +105,7 @@
|
|||
[% INCLUDE 'opac-bottom.inc' %]
|
||||
[% BLOCK jsinclude %]
|
||||
[% INCLUDE 'datatables.inc' %]
|
||||
<script type="text/javascript">
|
||||
<script>
|
||||
$(document).ready(function() {
|
||||
$("#course-items-table").dataTable($.extend(true, {}, dataTablesDefaults, {
|
||||
"sDom": '<"top"flp>rt<"clear">',
|
||||
|
|
|
@ -62,7 +62,7 @@
|
|||
[% INCLUDE 'opac-bottom.inc' %]
|
||||
[% BLOCK jsinclude %]
|
||||
[% INCLUDE 'datatables.inc' %]
|
||||
<script type="text/javascript">
|
||||
<script>
|
||||
$(document).ready(function() {
|
||||
$("#course_reserves_table").dataTable($.extend(true, {}, dataTablesDefaults, {
|
||||
"sDom": '<"top"flp>rt<"clear">',
|
||||
|
|
|
@ -578,7 +578,7 @@
|
|||
<li id="tab_reviews"> <a href="#reviews">Reviews</a></li>
|
||||
[% IF ( LibraryThingForLibrariesID ) %]
|
||||
<li id="tab_LTFLreviews">
|
||||
<script src="https://www.librarything.com/forlibraries/widget.js?id=[% LibraryThingForLibrariesID %]" type="text/javascript"></script>
|
||||
<script src="https://www.librarything.com/forlibraries/widget.js?id=[% LibraryThingForLibrariesID %]"></script>
|
||||
<noscript>This page contains enriched content visible when JavaScript is enabled or by clicking <a href="https://www.librarything.com/forlibraries/noscript.php?id=[% LibraryThingForLibrariesID %]&accessibility=1">here</a>.</noscript>
|
||||
</li>
|
||||
[% END %]
|
||||
|
@ -1162,17 +1162,17 @@
|
|||
</div> <!-- / .row-fluid -->
|
||||
<div class="row-fluid">
|
||||
[% IF ( LibraryThingForLibrariesID ) %]
|
||||
<script src="https://ltfl.librarything.com/forlibraries/widget.js?systype=koha&id=[% LibraryThingForLibrariesID %]" type="text/javascript"></script>
|
||||
<script src="https://ltfl.librarything.com/forlibraries/widget.js?systype=koha&id=[% LibraryThingForLibrariesID %]"></script>
|
||||
<noscript>This page contains enriched content visible when JavaScript is enabled or by clicking
|
||||
<a href="https://www.librarything.com/forlibraries/noscript.php?id=[% LibraryThingForLibrariesID %]&accessibility=1">here</a>.</noscript>
|
||||
[% END %]
|
||||
|
||||
[% IF ( NovelistSelectProfile && normalized_isbn ) %]
|
||||
<script type="text/javascript" src="https://imageserver.ebscohost.com/novelistselect/ns2init.js"></script>
|
||||
<script src="https://imageserver.ebscohost.com/novelistselect/ns2init.js"></script>
|
||||
[% END %]
|
||||
|
||||
[% IF ( Babeltheque ) %]
|
||||
<script type="text/javascript" src="[% Babeltheque_url_js %]"></script>
|
||||
<script src="[% Babeltheque_url_js %]"></script>
|
||||
[% END %]
|
||||
</div> <!-- / .row-fluid -->
|
||||
</div> <!-- / .container-fluid -->
|
||||
|
@ -1382,18 +1382,18 @@
|
|||
[% INCLUDE 'datatables.inc' %]
|
||||
[% INCLUDE 'columns_settings.inc' %]
|
||||
[% IF ( SocialNetworks ) %]
|
||||
<script type="text/javascript" src="https://apis.google.com/js/plusone.js">
|
||||
<script src="https://apis.google.com/js/plusone.js"></script>
|
||||
//<![CDATA[
|
||||
{lang: '[% lang %]'}
|
||||
//]]>
|
||||
</script>
|
||||
<script type="text/javascript">!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src="//platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script>
|
||||
<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src="//platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script>
|
||||
[% END %]
|
||||
[% IF ( OpacStarRatings != 'disable' ) %][% Asset.js("lib/jquery/plugins/jquery.rating.js") %][% END %]
|
||||
|
||||
[% IF ( OpacHighlightedWords ) %][% Asset.js("lib/jquery/plugins/jquery.highlight-3.js") %][% END %]
|
||||
|
||||
<script type="text/javascript">
|
||||
<script>
|
||||
//<![CDATA[
|
||||
|
||||
[% IF ( OpacBrowseResults && busc ) %]
|
||||
|
@ -1865,7 +1865,7 @@
|
|||
</script>
|
||||
|
||||
[% IF OPACPopupAuthorsSearch %]
|
||||
<script type="text/javascript">
|
||||
<script>
|
||||
//<![CDATA[
|
||||
function showAuthors(element){
|
||||
var authornumber = $(element).attr("data-count");
|
||||
|
|
|
@ -70,7 +70,7 @@
|
|||
</fieldset>
|
||||
</form>
|
||||
[% IF ( modal ) %]
|
||||
<script type="text/javascript">
|
||||
<script>
|
||||
//<![CDATA[
|
||||
$(document).ready(function(){
|
||||
$("#userdownloadshelf form").on("submit",function(e){
|
||||
|
@ -104,7 +104,7 @@
|
|||
</div> <!-- / .main -->
|
||||
[% INCLUDE 'opac-bottom.inc' %]
|
||||
[% BLOCK jsinclude %]
|
||||
<script type="text/javascript">
|
||||
<script>
|
||||
//<![CDATA[
|
||||
$(document).ready(function(){
|
||||
$("#userdownloadshelf form").on("submit",function(e){
|
||||
|
|
|
@ -137,7 +137,7 @@
|
|||
[% INCLUDE 'opac-bottom.inc' %]
|
||||
[% BLOCK jsinclude %]
|
||||
[% INCLUDE 'datatables.inc' %]
|
||||
<script type="text/javascript">
|
||||
<script>
|
||||
//<![CDATA[
|
||||
$(document).ready(function(){
|
||||
showlayer([% yearmin %]);
|
||||
|
|
|
@ -50,7 +50,7 @@
|
|||
</div>
|
||||
[% BLOCK jsinclude %]
|
||||
[% INCLUDE 'datatables.inc' %]
|
||||
<script type="text/javascript">
|
||||
<script>
|
||||
$(document).ready(function (){
|
||||
$("table").dataTable($.extend(true, {}, dataTablesDefaults, {
|
||||
'bFilter': false,
|
||||
|
|
|
@ -219,7 +219,7 @@
|
|||
|
||||
[% BLOCK jsinclude %]
|
||||
[% INCLUDE 'datatables.inc' %]
|
||||
<script type="text/javascript">
|
||||
<script>
|
||||
//<![CDATA[
|
||||
$("#illrequestlist").dataTable($.extend(true, {}, dataTablesDefaults, {
|
||||
"aoColumnDefs": [
|
||||
|
|
|
@ -116,7 +116,7 @@
|
|||
|
||||
[% INCLUDE 'opac-bottom.inc' %]
|
||||
[% BLOCK jsinclude %]
|
||||
<script type="text/javascript">
|
||||
<script>
|
||||
//<![CDATA[
|
||||
$(document).ready(function(){
|
||||
$("#largeCoverImg").attr("src","[% interface %]/[% theme %]/images/loading.gif");
|
||||
|
|
|
@ -937,7 +937,7 @@
|
|||
[% Asset.js("lib/jquery/plugins/jquery.validate.min.js") %]
|
||||
[% PROCESS 'password_check.inc' %]
|
||||
[% PROCESS 'add_password_check' new_password => 'borrower_password' %]
|
||||
<script type="text/javascript">
|
||||
<script>
|
||||
//<![CDATA[
|
||||
$(document).ready(function() {
|
||||
[% IF action == 'edit' && !OPACPatronDetails %]
|
||||
|
|
|
@ -171,7 +171,7 @@
|
|||
|
||||
[% INCLUDE 'opac-bottom.inc' %]
|
||||
[% BLOCK jsinclude %]
|
||||
<script type="text/javascript">//<![CDATA[
|
||||
<script>//<![CDATA[
|
||||
$(document).ready(function(){
|
||||
$(".none").click(function(){
|
||||
if($(this).attr("checked")){
|
||||
|
|
|
@ -62,7 +62,7 @@
|
|||
[% BLOCK jsinclude %]
|
||||
[% Asset.js("js/overdrive.js") %]
|
||||
[% Asset.js("lib/jquery/plugins/jquery.rating.js") %]
|
||||
<script type="text/javascript">
|
||||
<script>
|
||||
var querystring = "[% q |replace( "'", "\'" ) |replace( '\n', '\\n' ) |replace( '\r', '\\r' ) |html %]";
|
||||
var results_per_page = [% OPACnumSearchResults %];
|
||||
|
||||
|
|
|
@ -90,7 +90,7 @@
|
|||
[% Asset.js("lib/jquery/plugins/jquery.validate.min.js") %]
|
||||
[% PROCESS 'password_check.inc' %]
|
||||
[% PROCESS 'add_password_check' new_password => 'Newkey' %]
|
||||
<script type="text/javascript">
|
||||
<script>
|
||||
$(document).ready(function() {
|
||||
$("#mainform").validate({
|
||||
rules: {
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
[% INCLUDE 'doc-head-close.inc' %]
|
||||
[% BLOCK cssinclude %][% END %]
|
||||
[% BLOCK jsinclude %]
|
||||
<script type="text/javascript" language="javascript">
|
||||
<script>
|
||||
$(function() {
|
||||
$("#CheckAll").click(function(){
|
||||
$("[name=deleteRequest]").attr('checked', true);
|
||||
|
|
|
@ -178,7 +178,7 @@
|
|||
[% INCLUDE 'opac-bottom.inc' %]
|
||||
[% BLOCK jsinclude %]
|
||||
[% INCLUDE 'datatables.inc' %]
|
||||
<script type="text/javascript">
|
||||
<script>
|
||||
//<![CDATA[
|
||||
$(document).ready(function(){
|
||||
[% IF ( GoogleJackets ) %]KOHA.Google.GetCoverFromIsbn();[% END %]
|
||||
|
|
|
@ -186,7 +186,7 @@
|
|||
[% INCLUDE 'opac-bottom.inc' %]
|
||||
|
||||
[% BLOCK jsinclude %]
|
||||
<script type="text/javascript">
|
||||
<script>
|
||||
// <![CDATA[
|
||||
allow_submit = false;
|
||||
$('#place-article-request').on('submit', function( event ){
|
||||
|
|
|
@ -434,7 +434,7 @@
|
|||
[% INCLUDE 'opac-bottom.inc' %]
|
||||
[% BLOCK jsinclude %]
|
||||
[% INCLUDE 'calendar.inc' %]
|
||||
<script type="text/javascript">
|
||||
<script>
|
||||
// <![CDATA[
|
||||
var MSG_NO_ITEM_SELECTED = _("Expecting a specific item selection.");
|
||||
|
||||
|
|
|
@ -280,7 +280,7 @@ href="/cgi-bin/koha/opac-rss.pl?[% query_cgi %][% limit_cgi |html %]" />
|
|||
[% INCLUDE 'opac-bottom.inc' %]
|
||||
[% BLOCK jsinclude %]
|
||||
[% Asset.js("lib/jquery/plugins/jquery.checkboxes.min.js") %]
|
||||
<script type="text/javascript">
|
||||
<script>
|
||||
//<![CDATA[
|
||||
|
||||
var q_array = new Array(); // will hold the search terms, if possible
|
||||
|
|
|
@ -589,13 +589,13 @@
|
|||
[% INCLUDE 'opac-bottom.inc' %]
|
||||
[% BLOCK jsinclude %]
|
||||
[% IF ( LibraryThingForLibrariesID ) %]
|
||||
<script src="https://ltfl.librarything.com/forlibraries/widget.js?id=[% LibraryThingForLibrariesID %]&systype=koha" type="text/javascript"></script>
|
||||
<script src="https://ltfl.librarything.com/forlibraries/widget.js?id=[% LibraryThingForLibrariesID %]&systype=koha"></script>
|
||||
[% END %]
|
||||
[% IF ( OpacStarRatings == 'all' || Koha.Preference('Babeltheque') ) %][% Asset.js("lib/jquery/plugins/jquery.rating.js") %][% END %]
|
||||
[% IF ( OverDriveEnabled ) %][% Asset.js("js/overdrive.js") %][% END %]
|
||||
[% Asset.js("lib/jquery/plugins/jquery.checkboxes.min.js") %]
|
||||
[% IF ( OpacHighlightedWords ) %][% Asset.js("lib/jquery/plugins/jquery.highlight-3.js") %]
|
||||
[% END %]<script type="text/javascript">
|
||||
[% END %]<script>
|
||||
//<![CDATA[
|
||||
[% IF ( Koha.Preference( 'opacuserlogin' ) == 1 ) && ( Koha.Preference( 'RequestOnOpac' ) == 1 ) %]
|
||||
function holdMultiple() {
|
||||
|
|
|
@ -64,7 +64,7 @@
|
|||
|
||||
[% INCLUDE 'opac-bottom.inc' is_popup=1 %]
|
||||
[% BLOCK jsinclude %]
|
||||
<script type="text/javascript">
|
||||
<script>
|
||||
//<![CDATA[
|
||||
$(document).ready(function() {
|
||||
[% IF WINDOW_CLOSE %]
|
||||
|
|
|
@ -67,6 +67,6 @@
|
|||
[% INCLUDE 'opac-bottom.inc' %]
|
||||
[% BLOCK jsinclude %]
|
||||
[% INCLUDE 'datatables.inc' %]
|
||||
<script type="text/javascript">
|
||||
<script>
|
||||
</script>
|
||||
[% END %]
|
||||
|
|
|
@ -217,7 +217,7 @@
|
|||
[% BLOCK jsinclude %]
|
||||
[% INCLUDE 'datatables.inc' %]
|
||||
[% Asset.js("lib/jquery/plugins/jquery.checkboxes.min.js") %]
|
||||
<script type="text/javascript">
|
||||
<script>
|
||||
//<![CDATA[
|
||||
var MSG_CONFIRM_DELETE_HISTORY = _("Are you sure you want to delete selected search history entries?");
|
||||
$(document).ready(function() {
|
||||
|
|
|
@ -91,7 +91,7 @@
|
|||
</div> <!-- / .main -->
|
||||
[% INCLUDE 'opac-bottom.inc' %]
|
||||
[% BLOCK jsinclude %]
|
||||
<script type="text/javascript">
|
||||
<script>
|
||||
//<![CDATA[
|
||||
$(document).ready(function(){
|
||||
$("#share_list").on('submit', function(e) {
|
||||
|
|
|
@ -753,7 +753,7 @@
|
|||
[% INCLUDE 'opac-bottom.inc' %]
|
||||
[% BLOCK jsinclude %]
|
||||
[% Asset.js("lib/jquery/plugins/jquery.checkboxes.min.js") %]
|
||||
<script type="text/javascript">
|
||||
<script>
|
||||
//<![CDATA[
|
||||
var MSG_REMOVE_FROM_LIST = _("Are you sure you want to remove these items from the list?");
|
||||
var MSG_REMOVE_ONE_FROM_LIST = _("Are you sure you want to remove this item from the list?");
|
||||
|
|
|
@ -184,7 +184,7 @@
|
|||
|
||||
[% INCLUDE 'opac-bottom.inc' %]
|
||||
[% BLOCK jsinclude %]
|
||||
<script type="text/javascript">
|
||||
<script>
|
||||
//<![CDATA[
|
||||
$(document).ready(function(){
|
||||
[% IF ( GoogleJackets ) %]KOHA.Google.GetCoverFromIsbn();[% END %]
|
||||
|
|
|
@ -276,7 +276,7 @@
|
|||
[% BLOCK jsinclude %]
|
||||
[% Asset.js("lib/jquery/plugins/jquery.checkboxes.min.js") %]
|
||||
[% INCLUDE 'datatables.inc' %]
|
||||
<script type="text/javascript">
|
||||
<script>
|
||||
//<![CDATA[
|
||||
[% IF ( loggedinusername ) %]
|
||||
function enableCheckboxActions(){
|
||||
|
|
|
@ -178,7 +178,7 @@
|
|||
[% INCLUDE 'opac-bottom.inc' %]
|
||||
[% BLOCK jsinclude %]
|
||||
[% INCLUDE 'datatables.inc' %]
|
||||
<script type="text/javascript">
|
||||
<script>
|
||||
//<![CDATA[
|
||||
function checkboxesChecked() {
|
||||
if ($("#deletetags input:checkbox:checked").length > 0) {
|
||||
|
|
|
@ -97,7 +97,7 @@
|
|||
[% INCLUDE 'opac-bottom.inc' %]
|
||||
[% BLOCK jsinclude %]
|
||||
[% INCLUDE 'datatables.inc' %]
|
||||
<script type="text/javascript">
|
||||
<script>
|
||||
//<![CDATA[
|
||||
$(function() {
|
||||
$("#topissuest").dataTable($.extend(true, {}, dataTablesDefaults, {
|
||||
|
|
|
@ -885,7 +885,7 @@
|
|||
[% BLOCK jsinclude %]
|
||||
[% INCLUDE 'calendar.inc' %]
|
||||
[% INCLUDE 'datatables.inc' %]
|
||||
<script type="text/JavaScript">
|
||||
<script>
|
||||
//<![CDATA[
|
||||
var MSG_CONFIRM_DELETE_ARTREQ = _("Are you sure you want to cancel this article request?");
|
||||
var MSG_CONFIRM_DELETE_HOLD = _("Are you sure you want to cancel this hold?");
|
||||
|
@ -1034,7 +1034,7 @@
|
|||
</script>
|
||||
[% IF Koha.Preference('OverDriveCirculation') %]
|
||||
[% Asset.js("js/overdrive.js") %]
|
||||
<script type="text/JavaScript">
|
||||
<script>
|
||||
$(document).ready(function() {
|
||||
[% IF ( overdrive_error ) %]
|
||||
KOHA.OverDriveCirculation.display_error("#opac-user-overdrive", "[% overdrive_error.dquote %]");
|
||||
|
|
|
@ -38,7 +38,7 @@
|
|||
<!--[if lt IE 9]>
|
||||
<script src="[% interface %]/[% theme %]/lib/respond.min.js"></script>
|
||||
<![endif]-->
|
||||
<script type="text/javascript">
|
||||
<script>
|
||||
function _(s) { return s } // dummy function for gettext
|
||||
</script>
|
||||
[% Asset.js("lib/modernizr.min.js") %]
|
||||
|
@ -196,7 +196,7 @@
|
|||
[% INCLUDE 'opac-bottom.inc' %]
|
||||
[% BLOCK jsinclude %]
|
||||
[% INCLUDE 'datatables.inc' %]
|
||||
<script type="text/javascript">
|
||||
<script>
|
||||
|
||||
function mungeHistory() {
|
||||
// prevent back button from allowing form resubmission
|
||||
|
@ -269,5 +269,5 @@
|
|||
}
|
||||
</script>
|
||||
|
||||
[% IF ( Koha.Preference('SelfCheckInUserJS') ) %]<script type="text/javascript">[% Koha.Preference('SelfCheckInUserJS') %]</script>[% END %]
|
||||
[% IF ( Koha.Preference('SelfCheckInUserJS') ) %]<script>[% Koha.Preference('SelfCheckInUserJS') %]</script>[% END %]
|
||||
[% END %]
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
<!--[if lt IE 9]>
|
||||
<script src="[% interface %]/[% theme %]/lib/respond.min.js"></script>
|
||||
<![endif]-->
|
||||
<script type="text/javascript">
|
||||
<script>
|
||||
function _(s) { return s } // dummy function for gettext
|
||||
</script>
|
||||
[% Asset.js("lib/modernizr.min.js") %]
|
||||
|
@ -62,5 +62,5 @@ The Submit button only needs to be clicked if you enter the barcode manually.</p
|
|||
|
||||
[% INCLUDE 'opac-bottom.inc' %]
|
||||
[% BLOCK jsinclude %]
|
||||
[% IF ( SCOUserJS ) %]<script type="text/javascript">[% SCOUserJS %]</script>[% END %]
|
||||
[% IF ( SCOUserJS ) %]<script>[% SCOUserJS %]</script>[% END %]
|
||||
[% END %]
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
<!--[if lt IE 9]>
|
||||
<script src="[% interface %]/[% theme %]/lib/respond.min.js"></script>
|
||||
<![endif]-->
|
||||
<script type="text/javascript">
|
||||
<script>
|
||||
function _(s) { return s } // dummy function for gettext
|
||||
</script>
|
||||
[% Asset.js("lib/modernizr.min.js") %]
|
||||
|
@ -333,7 +333,7 @@
|
|||
[% INCLUDE 'opac-bottom.inc' %]
|
||||
[% BLOCK jsinclude %]
|
||||
[% INCLUDE 'datatables.inc' %]
|
||||
<script type="text/javascript">
|
||||
<script>
|
||||
//<![CDATA[
|
||||
function mungeHistory() {
|
||||
// prevent back button from allowing form resubmission
|
||||
|
@ -420,5 +420,5 @@
|
|||
//]]>
|
||||
</script>
|
||||
|
||||
[% IF ( Koha.Preference('SCOUserJS') ) %]<script type="text/javascript">[% Koha.Preference('SCOUserJS') %]</script>[% END %]
|
||||
[% IF ( Koha.Preference('SCOUserJS') ) %]<script>[% Koha.Preference('SCOUserJS') %]</script>[% END %]
|
||||
[% END %]
|
||||
|
|
Loading…
Reference in a new issue