Koha/koha-tmpl/intranet-tmpl/prog/en/modules/authorities/auth_finder.tt
Owen Leonard 22eba6b957 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.

Signed-off-by: Hayley Mapley <hayleymapley@catalyst.net.nz>

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>

https://bugs.koha-community.org/show_bug.cgi?id=22797

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
2019-05-30 10:26:22 +00:00

23 lines
602 B
Text

[% USE raw %]
[% USE Asset %]
[% SET footerjs = 1 %]
[% INCLUDE 'doc-head-open.inc' %]
<title>Koha &rsaquo; Cataloging authority plugin</title>
[% INCLUDE 'doc-head-close.inc' %]
</head>
<body id="auth_auth_finder" class="auth">
<div class="container-fluid">
<h1>Authority search</h1>
[% INCLUDE 'auth-finder-search.inc' %]
[% MACRO jsinclude BLOCK %]
<script>
var index = "[% index | html %]";
var authtypecode = "[% authtypecode | html %]";
</script>
[% Asset.js("js/auth-finder-search.js") | $raw %]
[% END %]
[% INCLUDE 'intranet-bottom.inc' popup_window = 1 %]