Bug 20102: Remove attribute "text/css" for <style> element used in staff client templates
authorOwen Leonard <oleonard@myacpl.org>
Thu, 29 Nov 2018 17:53:37 +0000 (17:53 +0000)
committerroot <root@f1ebe1bec408>
Tue, 19 Feb 2019 13:52:15 +0000 (13:52 +0000)
This patch modifies staff client templates to remove the "type"
attribute from <style> tags. The attribute is no longer valid.

To test, apply the patch and confirm the changes to the templates. The
appearance of the staff client should be unchanged.

Validating pages from the staff client should not return any errors
related to the <style> "type" attribute.

Signed-off-by: Jose-Mario Monteiro-Santos <jose-mario.monteiro-santos@inLibro.com>

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

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>

24 files changed:
koha-tmpl/intranet-tmpl/prog/en/includes/doc-head-close.inc
koha-tmpl/intranet-tmpl/prog/en/modules/acqui/basket.tt
koha-tmpl/intranet-tmpl/prog/en/modules/acqui/basketgroup.tt
koha-tmpl/intranet-tmpl/prog/en/modules/acqui/booksellers.tt
koha-tmpl/intranet-tmpl/prog/en/modules/acqui/duplicate_orders.tt
koha-tmpl/intranet-tmpl/prog/en/modules/acqui/edifactmsgs.tt
koha-tmpl/intranet-tmpl/prog/en/modules/admin/branch_transfer_limits.tt
koha-tmpl/intranet-tmpl/prog/en/modules/admin/categories.tt
koha-tmpl/intranet-tmpl/prog/en/modules/admin/classsources.tt
koha-tmpl/intranet-tmpl/prog/en/modules/batch/print-notices.tt
koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/imageviewer.tt
koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/moredetail.tt
koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/merge.tt
koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/value_builder/unimarc_field_210c_bis.tt
koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/z3950_auth_search.tt
koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/z3950_search.tt
koha-tmpl/intranet-tmpl/prog/en/modules/circ/article-requests.tt
koha-tmpl/intranet-tmpl/prog/en/modules/circ/view_holdsqueue.tt
koha-tmpl/intranet-tmpl/prog/en/modules/clubs/templates-add-modify.tt
koha-tmpl/intranet-tmpl/prog/en/modules/serials/serials-search.tt
koha-tmpl/intranet-tmpl/prog/en/modules/tools/batchMod-del.tt
koha-tmpl/intranet-tmpl/prog/en/modules/tools/batchMod-edit.tt
koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-basket.tt
koha-tmpl/opac-tmpl/bootstrap/en/modules/sci/sci-main.tt

index c2d2f48..99cbd60 100644 (file)
@@ -24,7 +24,7 @@
 [% IF ( login ) %]
     [% Asset.css("css/login.css") | $raw %]
 [% END %]
-[% IF ( IntranetUserCSS ) %]<style type="text/css">[% IntranetUserCSS | $raw %]</style>[% END %]
+[% IF ( IntranetUserCSS ) %]<style>[% IntranetUserCSS | $raw %]</style>[% END %]
 
 [% KohaPlugins.get_plugins_intranet_head | $raw %]
 
index 291fa7f..bc27cbf 100644 (file)
@@ -24,7 +24,7 @@
 <title>Koha &rsaquo; Acquisitions &rsaquo; [% UNLESS ( basketno ) %]New [% END %]Basket [% basketname | html %] ([% basketno | html %]) for [% booksellername | html %]</title>
 [% Asset.css("css/datatables.css") | $raw %]
 [% INCLUDE 'doc-head-close.inc' %]
-<style type="text/css">
+<style>
     .sortmsg {font-size: 80%;}
 </style>
 </head>
index 3be27fc..798282e 100644 (file)
@@ -17,7 +17,7 @@
 [% Asset.js("lib/yui/animation/animation-min.js") | $raw %]
 [% Asset.js("lib/yui/dragdrop/dragdrop-min.js") | $raw %]
 [% Asset.js("lib/yui/element/element-min.js") | $raw %]
-<style type="text/css">
+<style>
 /*margin and padding on body element
   can introduce errors in determining
   element position and are not recommended;
index 881094f..81fface 100644 (file)
@@ -5,7 +5,7 @@
 [% INCLUDE 'doc-head-open.inc' %]
 <title>Koha &rsaquo; Search for vendor [% supplier | html %]</title>
 [% INCLUDE 'doc-head-close.inc' %]
-<style type="text/css">
+<style>
 #vendors td{
        vertical-align: top;
 }
index d15f259..28ea6d7 100644 (file)
@@ -11,7 +11,7 @@ Basket [% basket.basketno | html %] &rsaquo; Duplicate existing orders
 </title>
 [% INCLUDE 'doc-head-close.inc' %]
 [% Asset.css("css/datatables.css") | $raw %]
-<style type="text/css">
+<style>
     .picked_to_duplicate > td { background-color: #bcdb89 !important; }
     span.hint { margin-left: 1em; }
 </style>
index 5700d68..c78e29f 100644 (file)
@@ -6,7 +6,7 @@
 <title>Koha &rsaquo; Acquisitions &rsaquo; EDIFACT messages</title>
 [% Asset.css("css/datatables.css") | $raw %]
 [% INCLUDE 'doc-head-close.inc' %]
-<style type="text/css">
+<style>
 #EDI_modal { width : 80%; } @media (max-width: 767px) { #EDI_modal { margin: 0; width : auto; } }
 </style>
 </head>
index 82d1ab8..5aa9404 100644 (file)
@@ -6,7 +6,7 @@
 <title>Koha &rsaquo; Administration &rsaquo; Library checkin and transfer policy</title>
 [% INCLUDE 'doc-head-close.inc' %]
 [% Asset.css("css/datatables.css") | $raw %]
-<style type="text/css">td { text-align: center; } .sorted { min-width: 50%; }</style>
+<style>td { text-align: center; } .sorted { min-width: 50%; }</style>
 </head>
 
 <body id="admin_branch_transfer_limits" class="admin">
index d50e406..d1b3dc8 100644 (file)
@@ -11,7 +11,7 @@
 </title>
 [% INCLUDE 'doc-head-close.inc' %]
 [% Asset.css("css/datatables.css") | $raw %]
-<style type="text/css">#enrolmentmessage.hint { display : none; }</style>
+<style>#enrolmentmessage.hint { display : none; }</style>
 </head>
 
 <body id="admin_categorie" class="admin">
index cdc1a5b..9f8a375 100644 (file)
@@ -16,7 +16,7 @@
 
 </title>
 [% INCLUDE 'doc-head-close.inc' %]
-<style type="text/css">
+<style>
     #button_add,
     .split_regex,
     .split_callnumber
index 7151a77..e72a3c9 100644 (file)
@@ -2,7 +2,7 @@
 [% USE raw %]
     <title>Print Notices for [% today | html %]</title>
     <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
-    <style type="text/css">
+    <style>
         <!-- 
         .message { page-break-after: always }
         pre { font-family: monospace }
index ef18b46..6693a59 100644 (file)
@@ -5,7 +5,7 @@
 <title>Koha &rsaquo; Catalog &rsaquo; Details for [% biblio.title | html %] [% FOREACH subtitl IN subtitle %] [% subtitl.subfield | html %][% END %]</title>
 [% INCLUDE 'doc-head-close.inc' %]
 [% IF ( LocalCoverImages == 1 ) %]
-<style type="text/css">
+<style>
 #largeCoverImg {
     border : 1px solid #CCCCCC;
     display : block;
index dcf37b7..2e10ef9 100644 (file)
@@ -7,7 +7,7 @@
 [% INCLUDE 'doc-head-open.inc' %]
 <title>Koha &rsaquo; Catalog &rsaquo; Item details for [% title | html %] [% FOREACH subtitl IN subtitle %] [% subtitl.subfield | html %][% END %]</title>
 [% INCLUDE 'doc-head-close.inc' %]
-<style type="text/css">h3{padding-top: 1em; border-top: 2px solid #CCCCCC;}#exportLabelexportModal_{border-top: 0px;}</style>
+<style>h3{padding-top: 1em; border-top: 2px solid #CCCCCC;}#exportLabelexportModal_{border-top: 0px;}</style>
 </head>
 <body id="catalog_moredetail" class="catalog">
 [% USE KohaDates %]
index 586a495..3e6c884 100644 (file)
@@ -6,7 +6,7 @@
 [% INCLUDE 'doc-head-open.inc' %]
 <title>Koha &rsaquo; Cataloging &rsaquo; Merging records</title>
 [% INCLUDE 'doc-head-close.inc' %]
-<style type="text/css">
+<style>
 div.record ul, div.record li { float:none; display:block; }
 div#result { margin-top: 1em; }
 /* We use this style "against" the li ui-tabs-nav style automatically applied */
index c989fec..6f14f6e 100644 (file)
@@ -2,7 +2,7 @@
 [% INCLUDE 'doc-head-open.inc' %]
 <title>Koha &rsaquo; UNIMARC field 210c builder</title>
 [% INCLUDE 'doc-head-close.inc' %]
-<style type="text/css">
+<style>
     #custom-doc { width:37.85em;*width:36.93em;min-width:492px; margin:auto; text-align:left; }
 </style>
 </head>
index 0251ba4..62e09aa 100644 (file)
@@ -9,7 +9,7 @@
     [% END %]
 [% INCLUDE 'doc-head-close.inc' %]
 [% Asset.css("css/datatables.css") | $raw %]
-<style type="text/css">
+<style>
     #marcPreview { width : 90%; top: 5%; } .modal-body { max-height: 380px; } .modal-header { padding: 0 14px; } @media (max-width: 767px) { #marcPreview { margin: 0; width : auto; } }
 </style>
 
index 3e074c4..512c16b 100644 (file)
@@ -6,7 +6,7 @@
 <title>Koha &rsaquo; Z39.50/SRU search results</title>
 [% INCLUDE 'doc-head-close.inc' %]
 [% Asset.css("css/datatables.css") | $raw %]
-<style type="text/css">
+<style>
 #dataPreview { width : 90%; top: 5%; } .modal-body { max-height: 380px; } .modal-header { padding: 0 14px; } @media (max-width: 767px) { #dataPreview { margin: 0; width : auto; } }
 </style>
 </head>
index 5ccfea7..8719e51 100644 (file)
@@ -6,7 +6,7 @@
 [% INCLUDE 'doc-head-open.inc' %]
 <title>Koha &rsaquo; Circulation &rsaquo; Article requests</title>
 [% INCLUDE 'doc-head-close.inc' %]
-<style type="text/css"> p { margin-top: 0; } [id^="article-menu-"] { display: none; } [id^="article-menu-"]:before { content: "|"; }</style>
+<style> p { margin-top: 0; } [id^="article-menu-"] { display: none; } [id^="article-menu-"]:before { content: "|"; }</style>
 </head>
 
 [% BLOCK actions %]
index 5c2b1dd..bc45a96 100644 (file)
@@ -11,7 +11,7 @@
 [% INCLUDE 'doc-head-open.inc' %]
 <title>Koha &rsaquo; Circulation &rsaquo; Holds queue</title>
 [% INCLUDE 'doc-head-close.inc' %]
-<style type="text/css"> p { margin-top: 0; }</style>
+<style> p { margin-top: 0; }</style>
 [% Asset.css("css/datatables.css") | $raw %]
 </head>
 
index 063c55a..15ed36d 100644 (file)
@@ -9,7 +9,7 @@
     [% END %]
 </title>
 [% INCLUDE 'doc-head-close.inc' %]
-<style type="text/css">
+<style>
     .club-field,
     .enrollment-field {
         border-top: 1px solid #DDD;
index 4c9e69f..7b281e3 100644 (file)
@@ -10,7 +10,7 @@
 <title>Koha &rsaquo; Serials [% biblionumber | html %]</title>
 [% INCLUDE 'doc-head-close.inc' %]
 [% Asset.css("css/datatables.css") | $raw %]
-<style type="text/css">input.dt-filter { width : 100%; font-size : 85%; }</style>
+<style>input.dt-filter { width : 100%; font-size : 85%; }</style>
 </head>
 
 <body id="ser_serials-home" class="ser">
index 64721ce..4ddaf40 100644 (file)
@@ -6,7 +6,7 @@
 [% INCLUDE 'doc-head-close.inc' %]
 [% Asset.css("css/datatables.css") | $raw %]
 <!--[if IE]>
-<style type="text/css">#selections { display: none; }</style>
+<style>#selections { display: none; }</style>
 <![endif]-->
 </head>
 <body id="tools_batchMod-del" class="tools">
index 049a92f..78ebc4f 100644 (file)
@@ -40,9 +40,9 @@ $(document).ready(function(){
 //]]>
 </script>
 <!--[if IE]>
-<style type="text/css">#selections { display: none; }</style>
+<style>#selections { display: none; }</style>
 <![endif]-->
-<style type="text/css">input[type=checkbox]{ margin : 0 .5em; }</style>
+<style>input[type=checkbox]{ margin : 0 .5em; }</style>
 [% Asset.css("css/addbiblio.css") | $raw %]
 
 [% INCLUDE 'select2.inc' %]
index 1fea75f..062a05b 100644 (file)
@@ -7,7 +7,7 @@
 [% INCLUDE 'doc-head-open.inc' %]
 <title>[% IF ( LibraryNameTitle ) %][% LibraryNameTitle | html %][% ELSE %]Koha online[% END %] catalog &rsaquo; Your cart</title>
 [% INCLUDE 'doc-head-close.inc' %]
-[% BLOCK cssinclude %]<style type="text/css">.item-status, .dt-buttons { display: inline; } @media print { body { height: 99%; } }</style>[% END %]
+[% BLOCK cssinclude %]<style>.item-status, .dt-buttons { display: inline; } @media print { body { height: 99%; } }</style>[% END %]
 </head>
 [% INCLUDE 'bodytag.inc' bodyid='basket' %]
     <div class="main">
index d9fb7a5..e8e5c2d 100644 (file)
@@ -34,8 +34,8 @@
 [% Asset.css("lib/jquery/jquery-ui.css") | $raw %]
 [% Asset.css("lib/font-awesome/css/font-awesome.min.css") | $raw %]
 [% Asset.css("css/sci.css") | $raw %]
-[% IF ( Koha.Preference('OPACUserCSS') ) %]<style type="text/css">[% Koha.Preference('OPACUserCSS') | $raw %]</style>[% END %]
-[% IF ( Koha.Preference('SelfCheckInUserCSS') ) %]<style type="text/css">[% Koha.Preference('SelfCheckInUserCSS') | $raw %]</style>[% END %]
+[% IF ( Koha.Preference('OPACUserCSS') ) %]<style>[% Koha.Preference('OPACUserCSS') | $raw %]</style>[% END %]
+[% IF ( Koha.Preference('SelfCheckInUserCSS') ) %]<style>[% Koha.Preference('SelfCheckInUserCSS') | $raw %]</style>[% END %]
 <!--[if lt IE 9]>
     <script src="[% interface | html %]/[% theme | html %]/lib/respond.min.js"></script>
 <![endif]-->