Bugzilla – Attachment 136487 Details for
Bug 31040
jsTree image being used outside of jsTree plugin
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 31040: jsTree image being used outside of jsTree plugin
Bug-31040-jsTree-image-being-used-outside-of-jsTre.patch (text/plain), 7.64 KB, created by
Owen Leonard
on 2022-06-24 11:57:28 UTC
(
hide
)
Description:
Bug 31040: jsTree image being used outside of jsTree plugin
Filename:
MIME Type:
Creator:
Owen Leonard
Created:
2022-06-24 11:57:28 UTC
Size:
7.64 KB
patch
obsolete
>From 287a74742844d39f844d0c69cda622882a4db2a4 Mon Sep 17 00:00:00 2001 >From: Owen Leonard <oleonard@myacpl.org> >Date: Fri, 24 Jun 2022 11:44:09 +0000 >Subject: [PATCH] Bug 31040: jsTree image being used outside of jsTree plugin > >This patch corrects OPAC templates which tried to use a jsTree image >asset which is missing following the jsTree upgrade (see Bug 11873). >Templates should use /images/spinner-small.gif instead. > >To test, apply the patch and enable OpenLibrarySearch and populate >OverDrive and RecordedBooks preferences with credentials (they don't >have to be valid). > >Perform a catalog search in the OPAC. When the search results page first >loads you should see messages about the services being queried: > >Searching OpenLibrary... >Searching RecordedBoks... >Searching OverDrive... > >Each should show a working "spinner" image while the queries are being >performed. If you have valid OverDrive credentials you can try clicking >through to the OverDrive search results page to confirm that the image >is working on that page too. >--- > koha-tmpl/opac-tmpl/bootstrap/en/includes/opac-bottom.inc | 2 +- > .../opac-tmpl/bootstrap/en/modules/opac-overdrive-search.tt | 2 +- > .../bootstrap/en/modules/opac-recordedbooks-search.tt | 2 +- > koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-results.tt | 6 +++--- > koha-tmpl/opac-tmpl/bootstrap/js/recordedbooks.js | 2 +- > 5 files changed, 7 insertions(+), 7 deletions(-) > >diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/includes/opac-bottom.inc b/koha-tmpl/opac-tmpl/bootstrap/en/includes/opac-bottom.inc >index 2d61b53590..1ba49b3aeb 100644 >--- a/koha-tmpl/opac-tmpl/bootstrap/en/includes/opac-bottom.inc >+++ b/koha-tmpl/opac-tmpl/bootstrap/en/includes/opac-bottom.inc >@@ -272,7 +272,7 @@ > > [% IF Koha.Preference('RecordedBooksClientSecret') && Koha.Preference('RecordedBooksLibraryID') %] > <script> >- var SPINNER_THROBBER = "[% interface | html %]/lib/jquery/plugins/themes/classic/throbber.gif"; >+ var SPINNER_THROBBER = "[% interface | html %]/[% theme | html %]/images/spinner-small.gif"; > </script> > [% END %] > >diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-overdrive-search.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-overdrive-search.tt >index ae67690b2d..96fee654df 100644 >--- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-overdrive-search.tt >+++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-overdrive-search.tt >@@ -113,7 +113,7 @@ > } > > function search( offset ) { >- $( '#overdrive-status' ).html( _("Searching OverDrive...") + ' <img class="throbber" src="[% interface | html %]/lib/jquery/plugins/themes/classic/throbber.gif" /></span>' ); >+ $( '#overdrive-status' ).html( _("Searching OverDrive...") + ' <img class="throbber" src="[% interface | html %]/[% theme | html %]/images/spinner-small.gif" /></span>' ); > > KOHA.OverDrive.Search( "[% Koha.Preference('OverDriveLibraryID') | html %]", querystring, results_per_page, offset, function( data ) { > if ( data.error ) { >diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-recordedbooks-search.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-recordedbooks-search.tt >index 7f149f019f..027bebd381 100644 >--- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-recordedbooks-search.tt >+++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-recordedbooks-search.tt >@@ -74,7 +74,7 @@ > var results_per_page = [% OPACnumSearchResults || 20 | html %]; > > function search( page ) { >- $( '#recordedbooks-status' ).html( MSG_SEARCHING.format("RecordedBooks") + ' <img class="throbber" src="[% interface | html %]/lib/jquery/plugins/themes/classic/throbber.gif" /></span>' ); >+ $( '#recordedbooks-status' ).html( MSG_SEARCHING.format("RecordedBooks") + ' <img class="throbber" src="[% interface | html %]/[% theme | html %]/images/spinner-small.gif" /></span>' ); > > KOHA.RecordedBooks.search( querystring, results_per_page, page, function( data ) { > if ( data.error ) { >diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-results.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-results.tt >index b71ad4ed86..7bf913b5c1 100644 >--- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-results.tt >+++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-results.tt >@@ -812,7 +812,7 @@ > }); > [% END # /IF OpacHighlightedWords %] > [% IF ( OverDriveEnabled ) %] >- var $overdrive_results = $( '<div id="overdrive-results">' + MSG_SEARCHING.format('OverDrive') + ' <img class="throbber" src="[% interface | html %]/lib/jquery/plugins/themes/classic/throbber.gif" /></div>' ); >+ var $overdrive_results = $( '<div id="overdrive-results">' + MSG_SEARCHING.format('OverDrive') + ' <img class="throbber" src="[% interface | html %]/[% theme | html %]/images/spinner-small.gif" /></div>' ); > $( '#numresults' ) .after( $overdrive_results ); > //Clean querystring, first we remove CCL entities, then decode HTML entities, then swap double quotes for single quotes > //as the overdrive API treats double quotes as a search term and returns extra results >@@ -833,7 +833,7 @@ > } ); > [% END # /IF OverDriveEnabled %] > [% IF ( RecordedBooksEnabled ) %] >- var $recordedbooks_results = $( '<div id="recordedbooks-results">' + MSG_SEARCHING.format('RecordedBooks') + ' <img class="throbber" src="[% interface | html %]/lib/jquery/plugins/themes/classic/throbber.gif" /></div>' ); >+ var $recordedbooks_results = $( '<div id="recordedbooks-results">' + MSG_SEARCHING.format('RecordedBooks') + ' <img class="throbber" src="[% interface | html %]/[% theme | html %]/images/spinner-small.gif" /></div>' ); > $( '#numresults' ) .after( $recordedbooks_results ); > KOHA.RecordedBooks.search( querystring, [% OPACnumSearchResults || "null" | html %], null, function( data ) { > if ( data.error ) { >@@ -850,7 +850,7 @@ > } ); > [% END # /IF RecordedBooksEnabled %] > [% IF ( OpenLibrarySearch ) %] >- var $openlibrary_results = $( '<div id="openlibrary-results">' + MSG_SEARCHING.format('OpenLibrary' ) + ' <img class="throbber" src="[% interface | html %]/lib/jquery/plugins/themes/classic/throbber.gif" /></div>' ); >+ var $openlibrary_results = $( '<div id="openlibrary-results">' + MSG_SEARCHING.format('OpenLibrary' ) + ' <img class="throbber" src="[% interface | html %]/[% theme | html %]/images/spinner-small.gif" /></div>' ); > $( '#numresults' ) .after( $openlibrary_results ); > KOHA.OpenLibrary.search( querystring, null, function( data ) { > if ( data.error ) { >diff --git a/koha-tmpl/opac-tmpl/bootstrap/js/recordedbooks.js b/koha-tmpl/opac-tmpl/bootstrap/js/recordedbooks.js >index f3f7e8e708..773a970dc5 100644 >--- a/koha-tmpl/opac-tmpl/bootstrap/js/recordedbooks.js >+++ b/koha-tmpl/opac-tmpl/bootstrap/js/recordedbooks.js >@@ -312,7 +312,7 @@ KOHA.RecordedBooks = new function() { > $('<div id="action_'+isbn+'" class="actions-menu">') > .append(actions) > .appendTo(el); >- $("#action_"+isbn).before('<span id="waiting_'+isbn+'" style="display:none;"><img class="throbber" src="/opac-tmpl/lib/jquery/plugins/themes/classic/throbber.gif" /></span>'); >+ $("#action_"+isbn).before('<span id="waiting_'+isbn+'" style="display:none;"><img class="throbber" src="' + SPINNER_THROBBER + '" /></span>'); > }; > > this.search = function( q, page_size, page, callback ) { >-- >2.30.2
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 31040
:
136487
|
136512
|
137047