Main Koha release repository
https://koha-community.org
Jonathan Druart
fd6cbf2273
Bug 28179 added the gallery in the staff interface, and bug 28180 in the OPAC. OPAC and staff have different code, because the cover image providers are different. On bug 28180 we noticed that the OPAC needed additional code to handle OpenLibrary, Google Jacket and Coce, to differ the creation of the gallery to prevent Chocolat to be instantiated before the links (img src) are effectively in the DOM. To acchieve that we introduced a wait_for_images function, and added a "done" flag to the 3 "JS modules". However we haven't ported this code for the staff interface, which is also using Coce. Note that there was a bug at the OPAC as well for COCE, the ajax jQuery function is async, and so 'done' was set even if the call was not finished. Test plan: 0. Do not apply this patch 1. Enable LocalCoverImages and IntranetCoce 2. Pick a bibliographic record with an image returned from Coce 3. Add a local cover image 4. Go to the detail page 5. Open the gallery => Notice that you can notice a JS error and a loading icon on the second image. This behaviour is not always broken, it depends on the speed of the Coce server. If you don't see the problem reload the page. 6. Apply the patch and repeat => Notice that the cover slider block is longer to display the icon, but that the error is gone. 7. Confirm that there is no regression at the OPAC We could improve the situation here, and we could display the images in the slider, especially if the first image is a local image. But that's for another bug... Signed-off-by: David Nind <david@davidnind.com> Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> |
||
---|---|---|
acqui | ||
admin | ||
api | ||
authorities | ||
basket | ||
bin | ||
C4 | ||
catalogue | ||
cataloguing | ||
circ | ||
clubs | ||
course_reserves | ||
debian | ||
docs | ||
erm | ||
errors | ||
etc | ||
ill | ||
installer | ||
Koha | ||
koha-tmpl | ||
labels | ||
lib/CGI/Session/Serialize | ||
members | ||
misc | ||
offline_circ | ||
opac | ||
patron_lists | ||
patroncards | ||
plugins | ||
pos | ||
recalls | ||
reports | ||
reserve | ||
reviews | ||
rotating_collections | ||
serials | ||
services | ||
skel | ||
suggestion | ||
svc | ||
t | ||
tags | ||
tmp/modified_authorities | ||
tools | ||
virtualshelves | ||
xt | ||
.editorconfig | ||
.eslintrc.json | ||
.gitignore | ||
.htaccess | ||
.mailmap | ||
.perlcriticrc | ||
.proverc.dist | ||
.stylelintrc.json | ||
about.pl | ||
app.psgi | ||
build-resources.PL | ||
changelanguage.pl | ||
cpanfile | ||
cypress.json | ||
fix-perl-path.PL | ||
gulpfile.js | ||
help.pl | ||
INSTALL | ||
Koha.pm | ||
koha_perl_deps.pl | ||
kohaversion.pl | ||
LICENSE | ||
mainpage.pl | ||
Makefile.PL | ||
MANIFEST.SKIP | ||
package.json | ||
README | ||
README.md | ||
README.robots | ||
rewrite-config.PL | ||
tsconfig.json | ||
webpack.config.js | ||
yarn.lock |
Koha is a free software integrated library system (ILS).
Koha is distributed under the GNU GPL version 3 or later.
Note: Koha does not accept pull requests from git hosting sites.
Note: This project has its own bug tracker, to report a bug or submit a patch visit http://bugs.koha-community.org.
For guidelines on submitting patches for Koha please visit https://wiki.koha-community.org/wiki/SubmitingAPatch
The developers handbook can be found at https://wiki.koha-community.org/wiki/Developer_handbook