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>
[% INCLUDE 'auth-finder-search.inc' %]
[% MACRO jsinclude BLOCK %]
[% INCLUDE 'auth-finder-search.inc' %]
[% MACRO jsinclude BLOCK %]
- <script type="text/javascript">
var index = "[% index | html %]";
var authtypecode = "[% authtypecode | html %]";
</script>
var index = "[% index | html %]";
var authtypecode = "[% authtypecode | html %]";
</script>
[% Asset.js("lib/hc-sticky.js") | $raw %]
[% Asset.js("js/cataloging.js") | $raw %]
[% Asset.js("lib/hc-sticky.js") | $raw %]
[% Asset.js("js/cataloging.js") | $raw %]
-<script type="text/javascript">
-//<![CDATA[
$(window).load(function(){
$("#loading").hide();
});
$(window).load(function(){
$("#loading").hide();
});
$("#confirm_not_duplicate").attr("value","1");
Check();
}
$("#confirm_not_duplicate").attr("value","1");
Check();
}
</script>
[% Asset.css("css/addbiblio.css") | $raw %]
</script>
[% Asset.css("css/addbiblio.css") | $raw %]
</div>
[% MACRO jsinclude BLOCK %]
</div>
[% MACRO jsinclude BLOCK %]
- <script type="text/javascript">
$(document).ready(function(){
[% IF rancor %]
function RancorReplaceField( new_text, ind_1, ind_2 ){
$(document).ready(function(){
[% IF rancor %]
function RancorReplaceField( new_text, ind_1, ind_2 ){
[% IF ( displayhierarchy ) %]
[% Asset.js("lib/jquery/plugins/jquery.jstree.js") | $raw %]
[% END %]
[% IF ( displayhierarchy ) %]
[% Asset.js("lib/jquery/plugins/jquery.jstree.js") | $raw %]
[% END %]
- <script type="text/javascript">
$(document).ready(function() {
$('#authoritiestabs').tabs();
[% IF ( displayhierarchy ) %]
$(document).ready(function() {
$('#authoritiestabs').tabs();
[% IF ( displayhierarchy ) %]
</div>
[% MACRO jsinclude BLOCK %]
</div>
[% MACRO jsinclude BLOCK %]
- <script type="text/javascript">
var index = "[% index | html %]";
var authtypecode = "[% authtypecode | html %]";
</script>
[% Asset.js("js/auth-finder-search.js") | $raw %]
var index = "[% index | html %]";
var authtypecode = "[% authtypecode | html %]";
</script>
[% Asset.js("js/auth-finder-search.js") | $raw %]
- <script type="text/javascript">
function jumpfull(page){
window.open(page,'','width=100,height=100,resizable=yes,toolbar=false,scrollbars=yes,top');
function jumpfull(page){
window.open(page,'','width=100,height=100,resizable=yes,toolbar=false,scrollbars=yes,top');