Bug 32969: Remove references to jQueryUI assets and style in the OPAC

This patch removes the jQueryUI assets from Bootstrap OPAC files and
removes the links to those assets from the templates. References in CSS
to jQueryUI-related elements are also removed.

To test, apply the patch and rebuild the OPAC CSS.

Test various pages in the OPAC to confirm that there are no visible
changes. The browser console should not warn of missing files.

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

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
(cherry picked from commit 6f383fe586)
Signed-off-by: Matt Blenkinsop <matt.blenkinsop@ptfs-europe.com>
This commit is contained in:
Owen Leonard 2023-02-15 15:36:23 +00:00 committed by Martin Renvoize
parent fe8c0505fa
commit bd0f629009
No known key found for this signature in database
GPG Key ID: 422B469130441A0F
9 changed files with 0 additions and 319 deletions

View File

@ -653,260 +653,6 @@ div.dt-button-collection button.dt-button.buttons-print:not( .disabled )::before
}
}
/* jQuery UI standard tabs */
.ui-tabs-nav .ui-tabs-active a,
.ui-tabs-nav a:hover,
.ui-tabs-nav a:focus,
.ui-tabs-nav a:active,
.ui-tabs-nav span.a {
background: none repeat scroll 0 0 transparent;
outline: 0 none;
}
.ui-widget,
.ui-widget a,
.ui-widget input,
.ui-widget select,
.ui-widget textarea,
.ui-widget button {
font-size: inherit;
}
ul {
&.ui-tabs-nav {
li {
list-style: none;
}
}
}
.ui-tabs {
.ui-tabs-nav {
li {
background: #F0F3F3 none;
border-color: #D8D8D8;
margin-right: .4em;
&.ui-tabs-active {
background-color: #FFF;
border: 1px solid #D8D8D8;
border-bottom: 0;
a {
color: #727272;
font-weight: bold;
}
&.ui-state-hover {
background: #FFF none;
&.ui-state-active {
background: #FFF none;
}
}
}
&.ui-state-default.ui-state-hover {
background: #F3F3F3 none;
}
}
}
.ui-tabs-panel {
border: 1px solid #D8D8D8;
margin-bottom: 1em;
}
&.ui-widget-content {
background: transparent none;
border: 0;
}
.ui-state-default {
a {
&:link {
color: #006699;
}
&:visited {
color: #006699;
}
}
}
.ui-state-hover a {
&:link {
color: #990033;
}
&:visited {
color: #990033;
}
}
}
.ui-tabs-nav {
&.ui-widget-header {
background: none;
border: 0;
}
}
.ui-corner-top {
border-radius: 0;
}
.statictabs {
ul {
background: none repeat scroll 0 0 transparent;
border: 0 none;
border-radius: 4px;
color: #222222;
font-size: 100%;
font-weight: bold;
line-height: 1.3;
list-style: none outside none;
margin: 0;
outline: 0 none;
padding: .2em .2em 0;
text-decoration: none;
&::before {
content: "";
display: table;
}
&::after {
clear: both;
content: "";
display: table;
}
}
li {
background: none repeat scroll 0 0 #E6F0F2;
border: 1px solid #B9D8D9;
border-bottom: 0 none !important;
border-top-left-radius: 4px;
border-top-right-radius: 4px;
color: #555555;
float: left;
font-weight: normal;
list-style: none outside none;
margin-bottom: 0;
margin-right: .4em;
padding: 0;
position: relative;
top: 1px;
white-space: nowrap;
&.active {
background-color: #FFFFFF;
color: #212121;
font-weight: normal;
padding-bottom: 1px;
a {
background: none repeat scroll 0 0 transparent;
color: #000000;
cursor: text;
font-weight: bold;
outline: 0 none;
}
}
a {
color: darken( $links, 5% );
cursor: pointer;
float: left;
padding: .5em 1em;
text-decoration: none;
&:hover {
background-color: #EDF4F5;
border-top-left-radius: 4px;
border-top-right-radius: 4px;
color: #538200;
}
}
}
.tabs-container {
background: none repeat scroll 0 0 transparent;
border: 1px solid #B9D8D9;
border-bottom-left-radius: 4px;
border-bottom-right-radius: 4px;
color: #222222;
display: block;
padding: 1em 1.4em;
}
}
/* End jQueryUI tab styles */
/* jQueryUI Core */
.ui-widget-content {
background: #FFFFFF none;
border: 1px solid #AAA;
color: #222222;
}
.ui-widget-header {
background: #E6F0F2 none;
border: 1px solid #AAA;
color: #222222;
font-weight: bold;
}
.ui-state-default,
.ui-widget-content .ui-state-default,
.ui-widget-header .ui-state-default {
background: #F4F8F9 none;
border: 1px solid #AAA;
color: #555555;
font-weight: normal;
}
.ui-state-hover,
.ui-widget-content .ui-state-hover,
.ui-widget-header .ui-state-hover,
.ui-state-focus,
.ui-widget-content .ui-state-focus,
.ui-widget-header .ui-state-focus {
background: #E6F0F2 none;
border: 1px solid #AAA;
color: #212121;
font-weight: normal;
}
.ui-state-active,
.ui-widget-content .ui-state-active,
.ui-widget-header .ui-state-active {
background: #FFFFFF none;
border: 1px solid #AAAAAA;
color: #212121;
font-weight: normal;
}
.ui-state-highlight,
.ui-widget-content .ui-state-highlight,
.ui-widget-header .ui-state-highlight {
background: #FBF9EE;
border: 1px solid #FCEFA1;
color: #363636;
}
.ui-state-error,
.ui-widget-content .ui-state-error,
.ui-widget-header .ui-state-error {
background: #FEF1EC;
border: 1px solid #CD0A0A;
color: #CD0A0A;
}
/* end jQueryUI core */
/* Bootstrap Tabs */
.tab-content {
@ -987,12 +733,6 @@ ul {
}
}
.ui-widget {
.closebtn {
font-size: 1.5rem;
}
}
button {
&.remove {
&:hover {

View File

@ -10,11 +10,6 @@
@media only screen and ( min-width: 0 ) and ( max-width: 440px ) {
/* Screens bewteen 0 and 390 pixels wide */
.ui-tabs .ui-tabs-nav li a,
.statictabs li a {
padding: .1em .5em;
}
.input-fluid {
width: 90%;
}
@ -69,18 +64,6 @@
.search_operator {
text-align: center;
}
.ui-tabs .ui-tabs-nav {
padding: 0;
}
.ui-tabs .ui-tabs-nav li,
.ui-tabs .ui-tabs-nav li a,
.ui-tabs .ui-tabs-nav .ui-tabs-anchor {
display: block;
float: none;
margin: 0;
}
}
@media only screen and ( max-width: 608px ) {
@ -207,11 +190,6 @@
font-weight: bold;
}
.ui-tabs .ui-tabs-panel {
padding: .5em;
}
.ui-tabs-panel,
.tabs-container,
#opac-user-views,
#opac-user-readingrec,

View File

@ -1542,10 +1542,6 @@ nav {
display: none;
}
.ui-tooltip-content p {
margin: .3em 0;
}
#social_networks {
margin-top: .5em;

View File

@ -221,8 +221,6 @@ body#basket p {
#action,
#addshelf,
#bibliodescriptions .ui-tabs-nav,
#maincontent > .row-fluid > .span2,
#export,
#facetcontainer,
#members,
@ -230,7 +228,6 @@ body#basket p {
#opac-main-search,
#opaccredits,
#moresearches,
#opac-user-views .ui-tabs-nav,
#remove-selected,
#selections-toolbar,
#toolbar,
@ -315,10 +312,6 @@ a#ISBDview {
display: none;
}
.ui-tabs-panel {
border: none !important;
}
#addcomment {
display: none;
}

View File

@ -10,11 +10,6 @@
[% END %]
<link rel="shortcut icon" href="[% IF ( Koha.Preference('OpacFavicon') ) %][% Koha.Preference('OpacFavicon') | url %][% ELSE %][% interface | url %]/[% theme | url %]/images/favicon.ico[% END %]" type="image/x-icon" />
<link rel="apple-touch-icon" href="[% IF ( Koha.Preference('OpacFavicon') ) %][% Koha.Preference('OpacFavicon') | url %][% ELSE %][% interface | url %]/[% theme | url %]/images/favicon.ico[% END %]" type="image/x-icon" />
[% IF ( bidi ) %]
[% Asset.css("lib/jquery/jquery-ui-rtl-1.13.1.min.css") | $raw %]
[% ELSE %]
[% Asset.css("lib/jquery/jquery-ui-1.13.1.min.css") | $raw %]
[% END %]
[% IF ( Koha.Preference('opaclayoutstylesheet') && Koha.Preference('opaclayoutstylesheet') != "opac.css" ) %]
[% SET opaclayoutstylesheet = Koha.Preference('opaclayoutstylesheet') %]
[% ELSE %]

View File

@ -120,7 +120,6 @@
<!-- JavaScript includes -->
[% Asset.js("lib/jquery/jquery-3.6.0.min.js") | $raw %]
[% Asset.js("lib/jquery/jquery-migrate-3.3.2.min.js") | $raw %]
[% Asset.js("lib/jquery/jquery-ui-1.13.1.min.js") | $raw %]
[% Asset.js("lib/bootstrap/js/bootstrap.bundle.min.js") | $raw %]
[% Asset.js("lib/fontfaceobserver.min.js") | $raw %]
[% Asset.js("lib/enquire.min.js") | $raw %]

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long