Bugzilla – Attachment 90045 Details for
Bug 22979
Remove type attribute from script tags: Authorities
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 22979: Remove type attribute from script tags: Authorities
Bug-22979-Remove-type-attribute-from-script-tags-A.patch (text/plain), 4.75 KB, created by
Owen Leonard
on 2019-05-23 17:45:51 UTC
(
hide
)
Description:
Bug 22979: Remove type attribute from script tags: Authorities
Filename:
MIME Type:
Creator:
Owen Leonard
Created:
2019-05-23 17:45:51 UTC
Size:
4.75 KB
patch
obsolete
>From 5b0664c88a490511d9f00dfe9ccce4e4d1558ad7 Mon Sep 17 00:00:00 2001 >From: Owen Leonard <oleonard@myacpl.org> >Date: Thu, 23 May 2019 15:54:07 +0000 >Subject: [PATCH] Bug 22979: Remove type attribute from script tags: > Authorities > >This patch removes the "type" attribute from <script> tags in several >authorities templates. Also removed: Obsolete "//<![CDATA[ //]]>" >markers. > >To test, apply the patch and confirm that examples of affected pages >work properly without any JavaScript errors in the browser console: > > - Authorities -> Search -> View authority record > - Authorities -> Search -> Edit authority record > - Cataloging -> New record > - Trigger the authority search form by clicking the plugin link next > to a tag which has been linked to an authority type (e.g. 100a -> > Personal name). > - Search for an authority record. > - Select an authority record. > >Validating the HTML source of any of these pages should return no errors >related to the "type" attribute. >--- > koha-tmpl/intranet-tmpl/prog/en/modules/authorities/auth_finder.tt | 2 +- > koha-tmpl/intranet-tmpl/prog/en/modules/authorities/authorities.tt | 4 +--- > .../prog/en/modules/authorities/blinddetail-biblio-search.tt | 2 +- > koha-tmpl/intranet-tmpl/prog/en/modules/authorities/detail.tt | 2 +- > .../prog/en/modules/authorities/searchresultlist-auth.tt | 4 ++-- > 5 files changed, 6 insertions(+), 8 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/authorities/auth_finder.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/authorities/auth_finder.tt >index 493703b..621e5d7 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/authorities/auth_finder.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/authorities/auth_finder.tt >@@ -13,7 +13,7 @@ > [% INCLUDE 'auth-finder-search.inc' %] > > [% MACRO jsinclude BLOCK %] >- <script type="text/javascript"> >+ <script> > var index = "[% index | html %]"; > var authtypecode = "[% authtypecode | html %]"; > </script> >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/authorities/authorities.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/authorities/authorities.tt >index d16e587..51f4b2a 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/authorities/authorities.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/authorities/authorities.tt >@@ -6,8 +6,7 @@ > [% Asset.js("lib/hc-sticky.js") | $raw %] > [% Asset.js("js/cataloging.js") | $raw %] > >-<script type="text/javascript"> >-//<![CDATA[ >+<script> > $(window).load(function(){ > $("#loading").hide(); > }); >@@ -157,7 +156,6 @@ function confirmnotdup(redirect){ > $("#confirm_not_duplicate").attr("value","1"); > Check(); > } >-//]]> > </script> > [% Asset.css("css/addbiblio.css") | $raw %] > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/authorities/blinddetail-biblio-search.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/authorities/blinddetail-biblio-search.tt >index 2b022d6..b9635b3 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/authorities/blinddetail-biblio-search.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/authorities/blinddetail-biblio-search.tt >@@ -16,7 +16,7 @@ > </div> > > [% MACRO jsinclude BLOCK %] >- <script type="text/javascript"> >+ <script> > $(document).ready(function(){ > [% IF rancor %] > function RancorReplaceField( new_text, ind_1, ind_2 ){ >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/authorities/detail.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/authorities/detail.tt >index 0739df4..9fddd71 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/authorities/detail.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/authorities/detail.tt >@@ -104,7 +104,7 @@ > [% IF ( displayhierarchy ) %] > [% Asset.js("lib/jquery/plugins/jquery.jstree.js") | $raw %] > [% END %] >- <script type="text/javascript"> >+ <script> > $(document).ready(function() { > $('#authoritiestabs').tabs(); > [% IF ( displayhierarchy ) %] >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/authorities/searchresultlist-auth.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/authorities/searchresultlist-auth.tt >index b50ebbc..21c6e24 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/authorities/searchresultlist-auth.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/authorities/searchresultlist-auth.tt >@@ -87,12 +87,12 @@ > </div> > > [% MACRO jsinclude BLOCK %] >- <script type="text/javascript"> >+ <script> > var index = "[% index | html %]"; > var authtypecode = "[% authtypecode | html %]"; > </script> > [% Asset.js("js/auth-finder-search.js") | $raw %] >- <script type="text/javascript"> >+ <script> > > function jumpfull(page){ > window.open(page,'','width=100,height=100,resizable=yes,toolbar=false,scrollbars=yes,top'); >-- >2.1.4
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 22979
:
90045
|
90057
|
90126