[Bug 9580] New: Cover image from Coce, a remote image URL cache
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=9580 Bug ID: 9580 Summary: Cover image from Coce, a remote image URL cache Classification: Unclassified Change sponsored?: --- Product: Koha Version: 3.12 Hardware: All OS: All Status: NEW Severity: enhancement Priority: P5 - low Component: OPAC Assignee: oleonard@myacpl.org Reporter: frederic@tamil.fr Add to Koha support for displaying Book cover requested to Coce, a remote image URL cache: https://github.com/fredericd/coce With this enhancement, cover images are not fetched directly from Amazon, Google, and so on. Their URL are requested via a web service to Coce which manages a cache of URLs. Three cover image providers are now available: Google Books (gb), Amazon (aws), and Open Library (ol). Two system preferences enable this service: - CoceHost - URL of Coce server - CoceProviders - Ordered list of requested providers. For example gb,aws,ol, will return the first available URL from those providers. Several advantages to this architecture: - If a book cover is not available from a provider, but is available from another one, Koha will be able to display a book cover, which isn't the case now - Since URLs are cached, it isn't necessary for each book cover to request, again and again, the provider, and several of them if necessary. - Amazon book covers are retrieved with Amazon Product Advertising API, which means that more covers are retrieved (ISBN13). -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=9580 Frédéric Demians <frederic@tamil.fr> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |Needs Signoff Assignee|oleonard@myacpl.org |frederic@tamil.fr --- Comment #1 from Frédéric Demians <frederic@tamil.fr> --- Created attachment 15203 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=15203&action=edit Proposed patch Cover image from Coce, a remote image URL cache Add to Koha support for displaying Book cover requested to Coce, a remote image URL cache: https://github.com/fredericd/coce With this enhancement, cover images are not fetched directly from Amazon, Google, and so on. Their URL are requested via a web service to Coce which manages a cache of URLs. Three cover image providers are now available: Google Books (gb), Amazon (aws), and Open Library (ol). Two system preferences enable this service: - CoceHost - URL of Coce server - CoceProviders - Ordered list of requested providers. For example gb,aws,ol, will return the first available URL from those providers. Several advantages to this architecture: - If a book cover is not available from a provider, but is available from another one, Koha will be able to display a book cover, which isn't the case now - Since URLs are cached, it isn't necessary for each book cover to request, again and again, the provider, and several of them if necessary. - Amazon book covers are retrieved with Amazon Product Advertising API, which means that more covers are retrieved (ISBN13). Test plan: - Apply this patch - You can verify that nothing has changed on OPAC result and detail page, since new syspref haven't been filled - Install Code: https://github.com/fredericd/coce Or ask me directly for the URL of a Coce server - In sysprefs, tab Enhanced content, modify: CoceHost -- enter the URL of your Coce server CoceProviders -- fill with: gb,aws,ol - Do a search. On result page, and detail page, you will see cover images originating from the 3 providers: fly over the image to see its URL. Try to compare with a Koha with just GoogleJacket or Amazon cover to confirm that you have more images. Verify that it's quick, and even quicker for cacher images URLs. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=9580 Pierre Angot <tredok.pierre@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Needs Signoff |Patch doesn't apply CC| |tredok.pierre@gmail.com --- Comment #2 from Pierre Angot <tredok.pierre@gmail.com> --- Test on sandbox : Something went wrong ! Applying: Bug 9580 Cover images from Coce, a remote image URL cache Using index info to reconstruct a base tree... Falling back to patching base and 3-way merge... Auto-merging C4/Auth.pm Auto-merging koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/enhanced_content.pref CONFLICT (content): Merge conflict in koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/enhanced_content.pref Auto-merging koha-tmpl/opac-tmpl/prog/en/includes/doc-head-close.inc Auto-merging koha-tmpl/opac-tmpl/prog/en/modules/opac-detail.tt Auto-merging koha-tmpl/opac-tmpl/prog/en/modules/opac-results.tt CONFLICT (content): Merge conflict in koha-tmpl/opac-tmpl/prog/en/modules/opac-results.tt Failed to merge in the changes. Patch failed at 0001 Bug 9580 Cover images from Coce, a remote image URL cache When you have resolved this problem run "git am --resolved". If you would prefer to skip this patch, instead run "git am --skip". To restore the original branch and stop patching run "git am --abort". Bug 9580 - Cover image from Coce, a remote image URL cache -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=9580 --- Comment #3 from Frédéric Demians <frederic@tamil.fr> --- Created attachment 16778 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=16778&action=edit Proposed patch (v2) Rebased on master. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=9580 Frédéric Demians <frederic@tamil.fr> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #15203|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=9580 Pierre Angot <tredok.pierre@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Patch doesn't apply |Needs Signoff -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=9580 --- Comment #4 from Pierre Angot <tredok.pierre@gmail.com> --- Web can't test on sandbox. Sorry. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=9580 mathieu saby <mathieu.saby@univ-rennes2.fr> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |mathieu.saby@univ-rennes2.f | |r -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=9580 Owen Leonard <oleonard@myacpl.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Version|3.12 |3.14 -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=9580 Galen Charlton <gmcharlt@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |gmcharlt@gmail.com --- Comment #5 from Galen Charlton <gmcharlt@gmail.com> --- I did some testing of this today (and blogged about it: http://galencharlton.com/blog/2013/08/playing-around-with-coce/). The upshot is that it works for me, and I'm not averse to the general idea, but I have a few concerns: - It should be able to function under HTTPS without mixed content warnings, and that is not the case at the moment - I think that the Coce client should be able to specify the image size rather than have the Coce server set it -- this would allow, for example, OPAC results to use small images and the OPAC details page to use large ones. - It would be nice if this were available in the staff interface as well as the OPAC. - The patch should add the new sysprefs to installer/data/mysql/sysprefs.sql and installer/data/mysql/updatedatabase.pl -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=9580 I'm just a bot <gitbot@bugs.koha-community.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Needs Signoff |Patch doesn't apply CC| |gitbot@bugs.koha-community. | |org --- Comment #6 from I'm just a bot <gitbot@bugs.koha-community.org> --- Applying: Bug 9580 Cover images from Coce, a remote image URL cache Using index info to reconstruct a base tree... M C4/Auth.pm M koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/enhanced_content.pref M koha-tmpl/opac-tmpl/prog/en/includes/doc-head-close.inc M koha-tmpl/opac-tmpl/prog/en/modules/opac-detail.tt M koha-tmpl/opac-tmpl/prog/en/modules/opac-results.tt Falling back to patching base and 3-way merge... Auto-merging koha-tmpl/opac-tmpl/prog/en/modules/opac-results.tt Auto-merging koha-tmpl/opac-tmpl/prog/en/modules/opac-detail.tt Auto-merging koha-tmpl/opac-tmpl/prog/en/includes/doc-head-close.inc Auto-merging koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/enhanced_content.pref CONFLICT (content): Merge conflict in koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/enhanced_content.pref Auto-merging C4/Auth.pm Patch failed at 0001 Bug 9580 Cover images from Coce, a remote image URL cache The copy of the patch that failed is found in: /home/christopher/git/koha/.git/rebase-apply/patch When you have resolved this problem, run "git am --continue". If you prefer to skip this patch, run "git am --skip" instead. To restore the original branch and stop patching, run "git am --abort". -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=9580 Frédéric Demians <frederic@tamil.fr> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #16778|0 |1 is obsolete| | --- Comment #7 from Frédéric Demians <frederic@tamil.fr> --- Created attachment 21162 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=21162&action=edit Proposed patch (v3 rebased on master) -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=9580 Frédéric Demians <frederic@tamil.fr> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Patch doesn't apply |Needs Signoff -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=9580 I'm just a bot <gitbot@bugs.koha-community.org> changed: What |Removed |Added ---------------------------------------------------------------------------- When did the bot| |2013-09-29 last check this| | --- Comment #8 from I'm just a bot <gitbot@bugs.koha-community.org> --- Patch applied cleanly, go forth and signoff -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=9580 I'm just a bot <gitbot@bugs.koha-community.org> changed: What |Removed |Added ---------------------------------------------------------------------------- When did the bot|2013-09-29 00:00:00 |2013-10-27 last check this| | --- Comment #9 from I'm just a bot <gitbot@bugs.koha-community.org> --- Patch applied cleanly, go forth and signoff -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=9580 --- Comment #10 from M. Tompsett <mtompset@hotmail.com> --- Comment on attachment 15203 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=15203 Proposed patch Review of attachment 15203: --> (http://bugs.koha-community.org/bugzilla3/page.cgi?id=splinter.html&bug=9580&attachment=15203) ----------------------------------------------------------------- ::: koha-tmpl/opac-tmpl/prog/en/modules/opac-results.tt @@ +305,5 @@
+[% IF ( CoceProviders ) %] +KOHA.coce.getURL('[% CoceHost %]', '[% CoceProviders %]'); +[% END %] +
This was here from the beginning. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=9580 --- Comment #11 from M. Tompsett <mtompset@hotmail.com> --- Comment on attachment 16778 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=16778 Proposed patch (v2) Review of attachment 16778: --> (http://bugs.koha-community.org/bugzilla3/page.cgi?id=splinter.html&bug=9580&attachment=16778) ----------------------------------------------------------------- ::: koha-tmpl/opac-tmpl/prog/en/modules/opac-results.tt @@ +305,5 @@
+[% IF ( CoceProviders ) %] +KOHA.coce.getURL('[% CoceHost %]', '[% CoceProviders %]'); +[% END %] +
This disappeared. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=9580 --- Comment #12 from M. Tompsett <mtompset@hotmail.com> --- Comment on attachment 21162 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=21162 Proposed patch (v3 rebased on master) Review of attachment 21162: --> (http://bugs.koha-community.org/bugzilla3/page.cgi?id=splinter.html&bug=9580&attachment=21162) ----------------------------------------------------------------- ::: koha-tmpl/opac-tmpl/prog/en/modules/opac-results.tt @@ +333,4 @@
[% IF OPACLocalCoverImages %]KOHA.LocalCover.GetCoverFromBibnumber(false);[% END %] [% IF ( GoogleJackets ) %]KOHA.Google.GetCoverFromIsbn();[% END %]
+<<<<<<< HEAD
I think a rebase didn't quite work. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=9580 --- Comment #13 from Frédéric Demians <frederic@tamil.fr> ---
+<<<<<<< HEAD
I think a rebase didn't quite work.
It doesn't look good at all! I fix that, and add markup to Bootstrap theme. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=9580 Frédéric Demians <frederic@tamil.fr> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #21162|0 |1 is obsolete| | --- Comment #14 from Frédéric Demians <frederic@tamil.fr> --- Created attachment 24071 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=24071&action=edit Proposed patch v4 Bug 9580 Cover images from Coce, a remote image URL cache Add to Koha support for displaying Book cover requested to Coce, a remote image URL cache: https://github.com/fredericd/coce With this enhancement, cover images are not fetched directly from Amazon, Google, and so on. Their URL are requested via a web service to Coce which manages a cache of URLs. Three cover image providers are now available: Google Books (gb), Amazon (aws), and Open Library (ol). Two system preferences enable this service: - CoceHost - URL of Coce server - CoceProviders - Ordered list of requested providers. For example gb,aws,ol, will return the first available URL from those providers. Several advantages to this architecture: - If a book cover is not available from a provider, but is available from another one, Koha will be able to display a book cover, which isn't the case now - Since URLs are cached, it isn't necessary for each book cover to request, again and again, the provider, and several of them if necessary. - Amazon book covers are retrieved with Amazon Product Advertising API, which means that more covers are retrieved (ISBN13). Test plan: - Apply this patch, and test with 'prog' and 'Bootstrap' themes - You can verify that nothing has changed on OPAC result and detail page, since new syspref haven't been filled - You can verify that nothing has changed on OPAC result and detail page, since new syspref haven't been filled - Install Code: https://github.com/fredericd/coce Or ask me directly for the URL of a Coce server - In sysprefs, tab Enhanced content, modify: CoceHost -- enter the URL of your Coce server CoceProviders -- fill with: gb,aws,ol - Do a search. On result page, and detail page, you will see cover images originating from the 3 providers: fly over the image to see its URL. Try to compare with a Koha with just GoogleJacket or Amazon cover to confirm that you have more images. Verify that it's quick, and even quicker for cached images URLs. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=9580 nicolas <nicolas.bravais@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Needs Signoff |Failed QA CC| |nicolas.bravais@gmail.com --- Comment #15 from nicolas <nicolas.bravais@gmail.com> --- All the covers are the same with or without Coce. And the exact same covers are retrieved (no more, no less...) With 'Bootstrap' and 'prog'. At one time there was 2 covers for the same biblios (one slightly bigger than the other one. For example : http://ecx.images-amazon.com/images/I/613QE5KV4YL._SL160_.jpg and http://images.amazon.com/images/P/2700036336.01.TZZZZZZZ.jpg Nevertheless it looks like it's an random accident since I didn't manage to re-create this error... -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=9580 --- Comment #16 from Frédéric Demians <frederic@tamil.fr> --- Thanks for testing.
All the covers are the same with or without Coce. And the exact same covers are retrieved (no more, no less...)
I may depend of your database. Do you have biblio records with ISBN-13? Do you have bilio records for DVD/CD-Audio? There are not retrieved with Amazon 'standard' cover but should be retrieved with Coce. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=9580 --- Comment #17 from nicolas <nicolas.bravais@gmail.com> --- Created attachment 24145 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=24145&action=edit screenshot with 2 cover screenshot with 2 cover -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=9580 --- Comment #18 from nicolas <nicolas.bravais@gmail.com> --- Same thing with CD and ISBN-13. And several biblios have double cover on search results Also, with the one book with a cover from Coce, the bootstrap theme does not display this cover. Just an empty space under the "no image available" from Amazon. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=9580 M. Tompsett <mtompset@hotmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |mtompset@hotmail.com --- Comment #19 from M. Tompsett <mtompset@hotmail.com> --- With the dumping of the prog theme, you may wish to split out the prog portion of this patch. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=9580 Frédéric Demians <frederic@tamil.fr> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Failed QA |Needs Signoff -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=9580 Frédéric Demians <frederic@tamil.fr> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #24071|0 |1 is obsolete| | --- Comment #20 from Frédéric Demians <frederic@tamil.fr> --- Created attachment 32794 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=32794&action=edit Bug 9580 Cover images from Coce, a remote image URL cache Add to Koha support for displaying Book cover requested to Coce, a remote image URL cache: https://github.com/fredericd/coce With this enhancement, cover images are not fetched directly from Amazon, Google, and so on. Their URL are requested via a web service to Coce which manages a cache of URLs. Three cover image providers are now available: Google Books (gb), Amazon (aws), and Open Library (ol). Two system preferences enable this service: - CoceHost - URL of Coce server - CoceProviders - Ordered list of requested providers. For example gb,aws,ol, will return the first available URL from those providers. Several advantages to this architecture: - If a book cover is not available from a provider, but is available from another one, Koha will be able to display a book cover, which isn't the case now - Since URLs are cached, it isn't necessary for each book cover to request, again and again, the provider, and several of them if necessary. - Amazon book covers are retrieved with Amazon Product Advertising API, which means that more covers are retrieved (ISBN13). Test plan: - Apply this patch, and test with 'Bootstrap' themes - You can verify that nothing has changed on OPAC result and detail page, since new syspref haven't been filled - Install Code: https://github.com/fredericd/coce Or ask me directly for the URL of a Coce server - In sysprefs, tab Enhanced content, modify: CoceHost -- enter the URL of your Coce server CoceProviders -- fill with: gb,aws,ol - Do a search. On result page, and detail page, you will see cover images originating from the 3 providers: fly over the image to see its URL. Try to compare with a Koha with just GoogleJacket or Amazon cover to confirm that you have more images. Verify that it's quick, and even quicker for cached images URLs. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=9580 --- Comment #21 from Frédéric Demians <frederic@tamil.fr> --- (In reply to M. Tompsett from comment #19)
With the dumping of the prog theme, you may wish to split out the prog portion of this patch.
Done. I still works. For me, at least. Don't hesitate to ask for a Coce server URL... -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=9580 Frédéric Demians <frederic@tamil.fr> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #32794|0 |1 is obsolete| | --- Comment #22 from Frédéric Demians <frederic@tamil.fr> --- Created attachment 32795 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=32795&action=edit Bug 9580 Cover images from Coce, a remote image URL cache Add to Koha support for displaying Book cover requested to Coce, a remote image URL cache: https://github.com/fredericd/coce With this enhancement, cover images are not fetched directly from Amazon, Google, and so on. Their URL are requested via a web service to Coce which manages a cache of URLs. Three cover image providers are now available: Google Books (gb), Amazon (aws), and Open Library (ol). Two system preferences enable this service: - CoceHost - URL of Coce server - CoceProviders - Ordered list of requested providers. For example gb,aws,ol, will return the first available URL from those providers. Several advantages to this architecture: - If a book cover is not available from a provider, but is available from another one, Koha will be able to display a book cover, which isn't the case now - Since URLs are cached, it isn't necessary for each book cover to request, again and again, the provider, and several of them if necessary. - Amazon book covers are retrieved with Amazon Product Advertising API, which means that more covers are retrieved (ISBN13). Test plan: - Apply this patch, and test with 'Bootstrap' themes - You can verify that nothing has changed on OPAC result and detail page, since new syspref haven't been filled - Install Code: https://github.com/fredericd/coce Or ask me directly for the URL of a Coce server - In sysprefs, tab Enhanced content, modify: CoceHost -- enter the URL of your Coce server CoceProviders -- fill with: gb,aws,ol - Do a search. On result page, and detail page, you will see cover images originating from the 3 providers: fly over the image to see its URL. Try to compare with a Koha with just GoogleJacket or Amazon cover to confirm that you have more images. Verify that it's quick, and even quicker for cached images URLs. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=9580 --- Comment #23 from M. Tompsett <mtompset@hotmail.com> --- Comment on attachment 32795 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=32795 Bug 9580 Cover images from Coce, a remote image URL cache Review of attachment 32795: --> (http://bugs.koha-community.org/bugzilla3/page.cgi?id=splinter.html&bug=9580&attachment=32795) ----------------------------------------------------------------- ::: C4/Auth.pm @@ +351,5 @@
"BiblioDefaultView".C4::Context->preference("BiblioDefaultView") => 1, EnhancedMessagingPreferences => C4::Context->preference('EnhancedMessagingPreferences'), GoogleJackets => C4::Context->preference("GoogleJackets"), + CoceHost => C4::Context->preference("CoceHost"), + CoceProviders => C4::Context->preference("CoceProviders"),
Rather than add more parameters, why not modify the template to have: [%- USE Koha -%] And then use the plugin function to grab it directly. Less modifications are good. :) ::: koha-tmpl/opac-tmpl/prog/en/includes/doc-head-close.inc @@ +113,5 @@
</script> [% END %] +[% IF CoceProviders %] +<script type="text/javascript" src="[% themelang %]/js/coce.js"></script> +[% END %]
This is OPAC prog. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=9580 Frédéric Demians <frederic@tamil.fr> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #32795|0 |1 is obsolete| | --- Comment #24 from Frédéric Demians <frederic@tamil.fr> --- Created attachment 32801 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=32801&action=edit Bug 9580 Cover images from Coce, a remote image URL cache Add to Koha support for displaying Book cover requested to Coce, a remote image URL cache: https://github.com/fredericd/coce With this enhancement, cover images are not fetched directly from Amazon, Google, and so on. Their URL are requested via a web service to Coce which manages a cache of URLs. Three cover image providers are now available: Google Books (gb), Amazon (aws), and Open Library (ol). Two system preferences enable this service: - CoceHost - URL of Coce server - CoceProviders - Ordered list of requested providers. For example gb,aws,ol, will return the first available URL from those providers. Several advantages to this architecture: - If a book cover is not available from a provider, but is available from another one, Koha will be able to display a book cover, which isn't the case now - Since URLs are cached, it isn't necessary for each book cover to request, again and again, the provider, and several of them if necessary. - Amazon book covers are retrieved with Amazon Product Advertising API, which means that more covers are retrieved (ISBN13). Test plan: - Apply this patch, and test with 'Bootstrap' themes - You can verify that nothing has changed on OPAC result and detail page, since new syspref haven't been filled - Install Code: https://github.com/fredericd/coce Or ask me directly for the URL of a Coce server - In sysprefs, tab Enhanced content, modify: CoceHost -- enter the URL of your Coce server CoceProviders -- fill with: gb,aws,ol - Do a search. On result page, and detail page, you will see cover images originating from the 3 providers: fly over the image to see its URL. Try to compare with a Koha with just GoogleJacket or Amazon cover to confirm that you have more images. Verify that it's quick, and even quicker for cached images URLs. - The ID sent to Coce is EAN or ISBN. Try with various type of biblios. DVD have often EAN, but no ISBN. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=9580 Frédéric Demians <frederic@tamil.fr> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #32801|0 |1 is obsolete| | --- Comment #25 from Frédéric Demians <frederic@tamil.fr> --- Created attachment 32808 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=32808&action=edit Bug 9580 Cover images from Coce, a remote image URL cache Add to Koha support for displaying Book cover requested to Coce, a remote image URL cache: https://github.com/fredericd/coce With this enhancement, cover images are not fetched directly from Amazon, Google, and so on. Their URL are requested via a web service to Coce which manages a cache of URLs. Three cover image providers are now available: Google Books (gb), Amazon (aws), and Open Library (ol). Two system preferences enable this service: - CoceHost - URL of Coce server - CoceProviders - Ordered list of requested providers. For example gb,aws,ol, will return the first available URL from those providers. Several advantages to this architecture: - If a book cover is not available from a provider, but is available from another one, Koha will be able to display a book cover, which isn't the case now - Since URLs are cached, it isn't necessary for each book cover to request, again and again, the provider, and several of them if necessary. - Amazon book covers are retrieved with Amazon Product Advertising API, which means that more covers are retrieved (ISBN13). Test plan: - Apply this patch, and test with 'Bootstrap' themes - You can verify that nothing has changed on OPAC result and detail page, since new syspref haven't been filled - Install Code: https://github.com/fredericd/coce Or ask me directly for the URL of a Coce server - In sysprefs, tab Enhanced content, modify: CoceHost -- enter the URL of your Coce server CoceProviders -- fill with: gb,aws,ol - Do a search. On result page, and detail page, you will see cover images originating from the 3 providers: fly over the image to see its URL. Try to compare with a Koha with just GoogleJacket or Amazon cover to confirm that you have more images. Verify that it's quick, and even quicker for cached images URLs. - The ID sent to Coce is EAN or ISBN. Try with various type of biblios. DVD have often EAN, but no ISBN. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=9580 --- Comment #26 from Frédéric Demians <frederic@tamil.fr> --- (In reply to M. Tompsett from comment #23)
Rather than add more parameters, why not modify the template to have: [%- USE Koha -%] And then use the plugin function to grab it directly. Less modifications are good. :)
I agree. Thanks for the tip. I wasn't aware if this Koha TT extension. I refactored the patch to use it.
::: koha-tmpl/opac-tmpl/prog/en/includes/doc-head-close.inc This is OPAC prog.
Cleaned now. Thanks. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=9580 --- Comment #27 from M. Tompsett <mtompset@hotmail.com> --- Comment on attachment 32808 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=32808 Bug 9580 Cover images from Coce, a remote image URL cache Review of attachment 32808: --> (http://bugs.koha-community.org/bugzilla3/page.cgi?id=splinter.html&bug=9580&attachment=32808) ----------------------------------------------------------------- ::: koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-results.tt @@ +257,5 @@
[% END %] [% END %]
+ [% IF Koha.Preference('CoceProviders') %] + [% IF ( SEARCH_RESULT.normalized_ean || SEARCH_RESULT.normalized_isbn ) %]
Split this into an IF/ELSIF/ELSE (http://template-toolkit.org/docs/manual/Directives.html#section_IF_UNLESS_EL...) So that you can more plainly meet http://wiki.koha-community.org/wiki/Coding_Guidelines#HTML1:_Template_Toolki... @@ +258,5 @@
[% END %]
+ [% IF Koha.Preference('CoceProviders') %] + [% IF ( SEARCH_RESULT.normalized_ean || SEARCH_RESULT.normalized_isbn ) %] + <span style="block" title="[% SEARCH_RESULT.biblionumber |url %]" class="[% IF ( SEARCH_RESULT.normalized_ean ) %][% SEARCH_RESULT.normalized_ean %][% ELSE %][% SEARCH_RESULT.normalized_isbn %][% END %]" id="coce-thumbnail[% loop.count %]"></span>
Because this is hard to read. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=9580 --- Comment #28 from M. Tompsett <mtompset@hotmail.com> --- Comment on attachment 32808 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=32808 Bug 9580 Cover images from Coce, a remote image URL cache Review of attachment 32808: --> (http://bugs.koha-community.org/bugzilla3/page.cgi?id=splinter.html&bug=9580&attachment=32808) ----------------------------------------------------------------- ::: koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/enhanced_content.pref @@ +344,5 @@
+ class: url + - + - Providers + - pref: CoceProviders + - 'separated by comma, for example: aws,gb. Leave empty not to activate this service.'
If this saves in the systempreferences table, shouldn't there be updatedatabase.pl, systemprefs.sql update too? -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=9580 --- Comment #29 from M. Tompsett <mtompset@hotmail.com> --- Comment on attachment 32808 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=32808 Bug 9580 Cover images from Coce, a remote image URL cache Review of attachment 32808: --> (http://bugs.koha-community.org/bugzilla3/page.cgi?id=splinter.html&bug=9580&attachment=32808) ----------------------------------------------------------------- ::: koha-tmpl/opac-tmpl/bootstrap/en/includes/opac-bottom.inc @@ +166,4 @@
//]]> </script> [% END %] +[% IF CoceProviders %]
CoceProviders isn't defined here, is it? -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=9580 Frédéric Demians <frederic@tamil.fr> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #32808|0 |1 is obsolete| | --- Comment #30 from Frédéric Demians <frederic@tamil.fr> --- Created attachment 32809 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=32809&action=edit Bug 9580 Cover images from Coce, a remote image URL cache Add to Koha support for displaying Book cover requested to Coce, a remote image URL cache: https://github.com/fredericd/coce With this enhancement, cover images are not fetched directly from Amazon, Google, and so on. Their URL are requested via a web service to Coce which manages a cache of URLs. Three cover image providers are now available: Google Books (gb), Amazon (aws), and Open Library (ol). Two system preferences enable this service: - CoceHost - URL of Coce server - CoceProviders - Ordered list of requested providers. For example gb,aws,ol, will return the first available URL from those providers. Several advantages to this architecture: - If a book cover is not available from a provider, but is available from another one, Koha will be able to display a book cover, which isn't the case now - Since URLs are cached, it isn't necessary for each book cover to request, again and again, the provider, and several of them if necessary. - Amazon book covers are retrieved with Amazon Product Advertising API, which means that more covers are retrieved (ISBN13). Test plan: - Apply this patch, and test with 'Bootstrap' themes - You can verify that nothing has changed on OPAC result and detail page, since new syspref haven't been filled - Install Code: https://github.com/fredericd/coce Or ask me directly for the URL of a Coce server - In sysprefs, tab Enhanced content, modify: CoceHost -- enter the URL of your Coce server CoceProviders -- fill with: gb,aws,ol - Do a search. On result page, and detail page, you will see cover images originating from the 3 providers: fly over the image to see its URL. Try to compare with a Koha with just GoogleJacket or Amazon cover to confirm that you have more images. Verify that it's quick, and even quicker for cached images URLs. - The ID sent to Coce is EAN or ISBN. Try with various type of biblios. DVD have often EAN, but no ISBN. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=9580 --- Comment #31 from Frédéric Demians <frederic@tamil.fr> --- (In reply to M. Tompsett from comment #28)
If this saves in the systempreferences table, shouldn't there be updatedatabase.pl, systemprefs.sql update too?
I don't think so. No value are required at all. By default, nothing is stored in systempreferences table, and the functionality is just disabled. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=9580 --- Comment #32 from M. Tompsett <mtompset@hotmail.com> --- (In reply to Frédéric Demians from comment #31)
(In reply to M. Tompsett from comment #28)
If this saves in the systempreferences table, shouldn't there be updatedatabase.pl, systemprefs.sql update too?
I don't think so. No value are required at all. By default, nothing is stored in systempreferences table, and the functionality is just disabled.
http://wiki.koha-community.org/wiki/System_Preferences#Adding_a_new_system_p... I think you do. You are correct that it functions without it, but we should be explicit. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=9580 --- Comment #33 from M. Tompsett <mtompset@hotmail.com> --- Oh, and Amazon preferences also seem to affect this. I get an Amazon cover image with the other system preferences, but not the Coce ones. Though, it isn't the "No cover image" like the others. :) Green Book of Language Revitalization in Practice (The) -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=9580 --- Comment #34 from Frédéric Demians <frederic@tamil.fr> ---
http://wiki.koha-community.org/wiki/ System_Preferences#Adding_a_new_system_preference I think you do. You are correct that it functions without it, but we should be explicit.
I updated the wiki, accordingly with my thought on the subject. Feel free to disagree, and to revert my wiki update. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=9580 --- Comment #35 from Frédéric Demians <frederic@tamil.fr> --- (In reply to M. Tompsett from comment #33)
Oh, and Amazon preferences also seem to affect this. I get an Amazon cover image with the other system preferences, but not the Coce ones. Though, it isn't the "No cover image" like the others. :) Green Book of Language Revitalization in Practice (The)
I don't understand. Do you mean, you have enabled simultaneously Koha OPACAmazonCoverImages syspref, and Coce sysprefs? You shouldn't. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=9580 M. Tompsett <mtompset@hotmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Needs Signoff |Failed QA --- Comment #36 from M. Tompsett <mtompset@hotmail.com> --- Owen Leonard and Marcel de Rooy agree with my understanding of adding system preferences, as far as I can tell. I'm going to mark this Failed QA. Also, could you give me an ISBN of something that should work with your patch? Or perhaps a Coce server? I'd include that in your test plan. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=9580 --- Comment #37 from Frédéric Demians <frederic@tamil.fr> --- (In reply to M. Tompsett from comment #36)
Owen Leonard and Marcel de Rooy agree with my understanding of adding system preferences, as far as I can tell. I'm going to mark this Failed QA.
Also, could you give me an ISBN of something that should work with your patch? Or perhaps a Coce server? I'd include that in your test plan.
Thanks for your time. I will go along with the majority... -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=9580 Frédéric Demians <frederic@tamil.fr> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Failed QA |Needs Signoff -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=9580 Frédéric Demians <frederic@tamil.fr> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #32809|0 |1 is obsolete| | --- Comment #38 from Frédéric Demians <frederic@tamil.fr> --- Created attachment 32857 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=32857&action=edit Bug 9580 Cover images from Coce, a remote image URL cache Add to Koha support for displaying Book cover requested to Coce, a remote image URL cache: https://github.com/fredericd/coce With this enhancement, cover images are not fetched directly from Amazon, Google, and so on. Their URL are requested via a web service to Coce which manages a cache of URLs. Three cover image providers are now available: Google Books (gb), Amazon (aws), and Open Library (ol). Two system preferences enable this service: - CoceHost - URL of Coce server - CoceProviders - Ordered list of requested providers. For example gb,aws,ol, will return the first available URL from those providers. Several advantages to this architecture: - If a book cover is not available from a provider, but is available from another one, Koha will be able to display a book cover, which isn't the case now - Since URLs are cached, it isn't necessary for each book cover to request, again and again, the provider, and several of them if necessary. - Amazon book covers are retrieved with Amazon Product Advertising API, which means that more covers are retrieved (ISBN13). Test plan: - Apply this patch, and test with 'Bootstrap' themes - You can verify that nothing has changed on OPAC result and detail page, since new syspref haven't been filled - Install Code: https://github.com/fredericd/coce Or ask me directly for the URL of a Coce server - In sysprefs, tab Enhanced content, modify: CoceHost -- enter the URL of your Coce server CoceProviders -- fill with: gb,aws,ol - Do a search. On result page, and detail page, you will see cover images originating from the 3 providers: fly over the image to see its URL. Try to compare with a Koha with just GoogleJacket or Amazon cover to confirm that you have more images. Verify that it's quick, and even quicker for cached images URLs. - The ID sent to Coce is EAN or ISBN. Try with various type of biblios. DVD have often EAN, but no ISBN. - You can try with those sysprefs: CoceProviders: aws,gb CoceHost: coce.tamil.fr and this EAN (or ISBN): 3333297517744 => OPACAmazonCoverImages enabled doesn't display a cover because, it's a DVD => Coce find and display the DVD cover. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=9580 --- Comment #39 from M. Tompsett <mtompset@hotmail.com> --- Comment on attachment 32857 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=32857 Bug 9580 Cover images from Coce, a remote image URL cache Review of attachment 32857: --> (http://bugs.koha-community.org/bugzilla3/page.cgi?id=splinter.html&bug=9580&attachment=32857) ----------------------------------------------------------------- ::: installer/data/mysql/sysprefs.sql @@ +86,5 @@
('CircAutocompl','1',NULL,'If ON, autocompletion is enabled for the Circulation input','YesNo'), ('CircAutoPrintQuickSlip','qslip',NULL,'Choose what should happen when an empty barcode field is submitted in circulation: Display a print quick slip window, Display a print slip window or Clear the screen.','Choice'), ('CircControl','ItemHomeLibrary','PickupLibrary|PatronLibrary|ItemHomeLibrary','Specify the agency that controls the circulation and fines policy','Choice'), +('CoceHost', 0, NULL, 'Coce server URL', 'Free'), +('CoceProviders', 0, NULL, 'Coce providers, for example aws,gb', 'Free'),
This should be empty string ('') or NULL (which is what you put in the updatedatabase.pl) not 0! Personally, I'm torn, because I checked out other URL entries in updatedatabase.pl and I have seen it both ways (NULL and empty string). That is, there is no standard. :( -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=9580 --- Comment #40 from M. Tompsett <mtompset@hotmail.com> --- Comment on attachment 32857 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=32857 Bug 9580 Cover images from Coce, a remote image URL cache Review of attachment 32857: --> (http://bugs.koha-community.org/bugzilla3/page.cgi?id=splinter.html&bug=9580&attachment=32857) ----------------------------------------------------------------- ::: koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-detail.tt @@ +79,5 @@
[% IF ( GoogleJackets ) %] <div title="[% biblionumber |url %]" class="[% normalized_isbn %]" id="gbs-thumbnail-preview"></div> [% END %] + [% IF Koha.Preference('CoceProviders') %] + <div style="block" title="[% biblionumber |url %]" class="[% IF ( normalized_ean ) %][% normalized_ean %][% ELSE %][% normalized_isbn %][% END %]" id="coce-thumbnail-preview"></div>
Split this: [% IF (normalized_ean) %] <div style="block" title="[% biblionumber |url %]" class="[% normalized_ean %]" id="coce-thumbnail-preview"></div> [% ELSE %] <div style="block" title="[% biblionumber |url %]" class="[% normalized_isbn %]" id="coce-thumbnail-preview"></div> [% END %] So that you can more plainly meet http://wiki.koha-community.org/wiki/Coding_Guidelines#HTML1:_Template_Toolki... OOooooo.... sexier code: <div style="block" title="[% biblionumber |url %]" class="[% normalized_ean || normalized_isbn %]" id="coce-thumbnail-preview"></div> It's precise, concise, and oh so elegant. ::: koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-results.tt @@ +258,5 @@
[% END %]
+ [% IF Koha.Preference('CoceProviders') %] + [% IF ( SEARCH_RESULT.normalized_ean || SEARCH_RESULT.normalized_isbn ) %] + <span style="block" title="[% SEARCH_RESULT.biblionumber |url %]" class="[% IF ( SEARCH_RESULT.normalized_ean ) %][% SEARCH_RESULT.normalized_ean %][% ELSE %][% SEARCH_RESULT.normalized_isbn %][% END %]" id="coce-thumbnail[% loop.count %]"></span>
class="[% SEARCH_RESULT.normalized_ean || SEARCH_RESULT.normalized_isbn %]" -- It's sexier. :) But perhaps the IF/ELSE split may be necessary. I've asked the mailing list. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=9580 --- Comment #41 from Frédéric Demians <frederic@tamil.fr> --- (In reply to M. Tompsett from comment #39)
::: installer/data/mysql/sysprefs.sql @@ +86,5 @@
+('CoceHost', 0, NULL, 'Coce server URL', 'Free'), +('CoceProviders', 0, NULL, 'Coce providers, for example aws,gb', 'Free'),
This should be empty string ('') or NULL (which is what you put in the updatedatabase.pl) not 0!
Personally, I'm torn, because I checked out other URL entries in updatedatabase.pl and I have seen it both ways (NULL and empty string). That is, there is no standard. :(
Ok. My reasoning was that in Perl code, syspref are tested like that: if ( $my_syspref ) { } And 0 is the false value in Perl (like undef and ''). But I can comply to usage, of course. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=9580 --- Comment #42 from Frédéric Demians <frederic@tamil.fr> ---
But perhaps the IF/ELSE split may be necessary. I've asked the mailing list.
I can alternatively propose: [% IF Koha.Preference('CoceProviders') %] [% SET coce_id = SEARCH_RESULT.normalized_ean || SEARCH_RESULT.normalized_isbn %] [% IF ( coce_id ) %] <span style="block" title="[% SEARCH_RESULT.biblionumber |url %]" class="[% coce_id %]" id="coce-thumbnail[% loop.count %]"></span> [% ELSE %] <span class="no-image">No cover image available</span> [% END %] [% END %] -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=9580 --- Comment #43 from M. Tompsett <mtompset@hotmail.com> --- (In reply to Frédéric Demians from comment #42)
I can alternatively propose:
[% IF Koha.Preference('CoceProviders') %] [% SET coce_id = SEARCH_RESULT.normalized_ean || SEARCH_RESULT.normalized_isbn %] [% IF ( coce_id ) %] <span style="block" title="[% SEARCH_RESULT.biblionumber |url %]" class="[% coce_id %]" id="coce-thumbnail[% loop.count %]"></span> [% ELSE %] <span class="no-image">No cover image available</span> [% END %] [% END %]
I think that would work. Though, http://template-toolkit.org/docs/manual/Syntax.html#section_Implicit_Directi... implies that SET is not necessary. Remember, this type of fix is required in more than one location in the code. :) -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=9580 Frédéric Demians <frederic@tamil.fr> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #32857|0 |1 is obsolete| | --- Comment #44 from Frédéric Demians <frederic@tamil.fr> --- Created attachment 32891 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=32891&action=edit Bug 9580 Cover images from Coce, a remote image URL cache Add to Koha support for displaying Book cover requested to Coce, a remote image URL cache: https://github.com/fredericd/coce With this enhancement, cover images are not fetched directly from Amazon, Google, and so on. Their URL are requested via a web service to Coce which manages a cache of URLs. Three cover image providers are now available: Google Books (gb), Amazon (aws), and Open Library (ol). Two system preferences enable this service: - CoceHost - URL of Coce server - CoceProviders - Ordered list of requested providers. For example gb,aws,ol, will return the first available URL from those providers. Several advantages to this architecture: - If a book cover is not available from a provider, but is available from another one, Koha will be able to display a book cover, which isn't the case now - Since URLs are cached, it isn't necessary for each book cover to request, again and again, the provider, and several of them if necessary. - Amazon book covers are retrieved with Amazon Product Advertising API, which means that more covers are retrieved (ISBN13). Test plan: - Apply this patch, and test with 'Bootstrap' themes - You can verify that nothing has changed on OPAC result and detail page, since new syspref haven't been filled - Install Code: https://github.com/fredericd/coce Or ask me directly for the URL of a Coce server - In sysprefs, tab Enhanced content, modify: CoceHost -- enter the URL of your Coce server CoceProviders -- fill with: gb,aws,ol - Do a search. On result page, and detail page, you will see cover images originating from the 3 providers: fly over the image to see its URL. Try to compare with a Koha with just GoogleJacket or Amazon cover to confirm that you have more images. Verify that it's quick, and even quicker for cached images URLs. - The ID sent to Coce is EAN or ISBN. Try with various type of biblios. DVD have often EAN, but no ISBN. - You can try with those sysprefs: CoceProviders: aws,gb CoceHost: coce.tamil.fr:8080 and this EAN (or ISBN): 3333297517744 => OPACAmazonCoverImages enabled doesn't display a cover because, it's a DVD => Coce find and display the DVD cover. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=9580 Frédéric Demians <frederic@tamil.fr> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #32891|0 |1 is obsolete| | --- Comment #45 from Frédéric Demians <frederic@tamil.fr> --- Created attachment 32929 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=32929&action=edit Bug 9580 Cover images from Coce, a remote image URL cache Add to Koha support for displaying Book cover requested to Coce, a remote image URL cache: https://github.com/fredericd/coce With this enhancement, cover images are not fetched directly from Amazon, Google, and so on. Their URL are requested via a web service to Coce which manages a cache of URLs. Three cover image providers are now available: Google Books (gb), Amazon (aws), and Open Library (ol). Two system preferences enable this service: - CoceHost - URL of Coce server - CoceProviders - Ordered list of requested providers. For example gb,aws,ol, will return the first available URL from those providers. Several advantages to this architecture: - If a book cover is not available from a provider, but is available from another one, Koha will be able to display a book cover, which isn't the case now - Since URLs are cached, it isn't necessary for each book cover to request, again and again, the provider, and several of them if necessary. - Amazon book covers are retrieved with Amazon Product Advertising API, which means that more covers are retrieved (ISBN13). Test plan: - Apply this patch, and test with 'Bootstrap' themes - You can verify that nothing has changed on OPAC result and detail page, since new syspref haven't been filled - Install Code: https://github.com/fredericd/coce Or ask me directly for the URL of a Coce server - In sysprefs, tab Enhanced content, modify: CoceHost -- enter the URL of your Coce server CoceProviders -- fill with: gb,aws,ol - Do a search. On result page, and detail page, you will see cover images originating from the 3 providers: fly over the image to see its URL. Try to compare with a Koha with just GoogleJacket or Amazon cover to confirm that you have more images. Verify that it's quick, and even quicker for cached images URLs. - Check that Browse Shelf functionnality works properly. - The ID sent to Coce is EAN or ISBN. Try with various type of biblios. DVD have often EAN, but no ISBN. - You can try with those sysprefs: CoceProviders: aws,gb CoceHost: coce.tamil.fr:8080 and this EAN (or ISBN): 3333297517744 => OPACAmazonCoverImages enabled doesn't display a cover because, it's a DVD => Coce find and display the DVD cover. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=9580 --- Comment #46 from M. Tompsett <mtompset@hotmail.com> --- After all this, I can't seem to get it to display anything. I'm having a sample data that works problem. I really want to sign this off, but until I see it work, I can't. :( I'm running a MARC21 environment with the default MARC21 servers. Can you give me an EAN/ISBN that should import nicely from a Z39.50 search, so that this will work with your Coce image cache server? Or perhaps a Z39.50 server that would have MARC21 to import for the EAN/ISBN you already suggested? -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=9580 --- Comment #47 from Frédéric Demians <frederic@tamil.fr> --- Created attachment 32942 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=32942&action=edit MARC21 DVD biblio records It's an MARC21 ISO2709 file, containing about 700 biblios describing DVD. The records are roughly converted from Unimarc to Marc21. So I can't guaranty they are perfect. But you will have EAN in 024 ou 020 field, not ISBN. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=9580 Frédéric Demians <frederic@tamil.fr> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #32929|0 |1 is obsolete| | --- Comment #48 from Frédéric Demians <frederic@tamil.fr> --- Created attachment 32944 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=32944&action=edit Bug 9580 Cover images from Coce, a remote image URL cache Add to Koha support for displaying Book cover requested to Coce, a remote image URL cache: https://github.com/fredericd/coce With this enhancement, cover images are not fetched directly from Amazon, Google, and so on. Their URL are requested via a web service to Coce which manages a cache of URLs. Three cover image providers are now available: Google Books (gb), Amazon (aws), and Open Library (ol). Two system preferences enable this service: - CoceHost - URL of Coce server - CoceProviders - Ordered list of requested providers. For example gb,aws,ol, will return the first available URL from those providers. Several advantages to this architecture: - If a book cover is not available from a provider, but is available from another one, Koha will be able to display a book cover, which isn't the case now - Since URLs are cached, it isn't necessary for each book cover to request, again and again, the provider, and several of them if necessary. - Amazon book covers are retrieved with Amazon Product Advertising API, which means that more covers are retrieved (ISBN13). Test plan: - Apply this patch, and test with 'Bootstrap' themes - You can verify that nothing has changed on OPAC result and detail page, since new syspref haven't been filled - Install Code: https://github.com/fredericd/coce Or ask me directly for the URL of a Coce server - In sysprefs, tab Enhanced content, modify: CoceHost -- enter the URL of your Coce server CoceProviders -- fill with: gb,aws,ol - Do a search. On result page, and detail page, you will see cover images originating from the 3 providers: fly over the image to see its URL. Try to compare with a Koha with just GoogleJacket or Amazon cover to confirm that you have more images. Verify that it's quick, and even quicker for cached images URLs. - Check that Browse Shelf functionnality works properly. - The ID sent to Coce is EAN or ISBN. Try with various type of biblios. DVD have often EAN, but no ISBN. - You can try with those sysprefs: CoceProviders: aws,gb CoceHost: coce.tamil.fr:8080 and this EAN (or ISBN): 3333297517744 => OPACAmazonCoverImages enabled doesn't display a cover because, it's a DVD => Coce find and display the DVD cover. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=9580 --- Comment #49 from M. Tompsett <mtompset@hotmail.com> --- I set up a fresh Unimarc git and used my sample Unimarc data, and I could not get it to work. :( -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=9580 --- Comment #50 from M. Tompsett <mtompset@hotmail.com> --- (In reply to M. Tompsett from comment #49)
I set up a fresh Unimarc git and used my sample Unimarc data, and I could not get it to work. :(
I was attempting to firebug the javascript. For some reason success is never triggered on my VM's, but it is on your server. Also, the coce URL is different. But this is too late to try to make further sense of it. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=9580 --- Comment #51 from Frédéric Demians <frederic@tamil.fr> --- (In reply to M. Tompsett from comment #50)
(In reply to M. Tompsett from comment #49)
I set up a fresh Unimarc git and used my sample Unimarc data, and I could not get it to work. :(
I was attempting to firebug the javascript. For some reason success is never triggered on my VM's, but it is on your server. Also, the coce URL is different. But this is too late to try to make further sense of it.
Does the GoogleBooks functionality works properly on you VM? GoogleBooks and Coce JavaScript code is similar, with JSONP and code injection. Hypothesis: Your Koha is a VM running inside your PC-Windows. For your browser, your JS code is originating from your box, and is trying to get JavaScript from another site (Coce server). This is different from testing from a server on the Internet (my devel box). Two solutions: (1) you modify your security policy (Windows, or Virtualisation level), (2) you test from a Koha on the Internet (sandbox). -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=9580 --- Comment #52 from Frédéric Demians <frederic@tamil.fr> --- Mark: You can try on Biblibre sandboxes: - Ask for an UNIMARC sandbox, apply bug 9580 - Connect to pro interface (test/test) - Edit sysprefs: CoceHost: http://coce.tamil.fr:8080 CoceProviders: gb,aws OPACAmazonCoverImages: Don't show opacthemes: Bootstrap - Go to the OPAC interface - Search for: C FR - Book covers are displaying. Flying your moose pointer over images, you will note that they come both from Amazon & Google (result 26). - You can try to add a DVD EAN to a biblio record: 3333297517744 Edit a biblio record with DVD framework, and populate 073$a field. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=9580 sandboxes@biblibre.com <sandboxes@biblibre.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Needs Signoff |Signed Off CC| |sandboxes@biblibre.com --- Comment #53 from sandboxes@biblibre.com <sandboxes@biblibre.com> --- Patch tested with a sandbox, by Mark Tompsett <mtompset@hotmail.com> -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=9580 sandboxes@biblibre.com <sandboxes@biblibre.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #32944|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=9580 --- Comment #54 from sandboxes@biblibre.com <sandboxes@biblibre.com> --- Created attachment 33201 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=33201&action=edit Bug 9580 Cover images from Coce, a remote image URL cache Add to Koha support for displaying Book cover requested to Coce, a remote image URL cache: https://github.com/fredericd/coce With this enhancement, cover images are not fetched directly from Amazon, Google, and so on. Their URL are requested via a web service to Coce which manages a cache of URLs. Three cover image providers are now available: Google Books (gb), Amazon (aws), and Open Library (ol). Two system preferences enable this service: - CoceHost - URL of Coce server - CoceProviders - Ordered list of requested providers. For example gb,aws,ol, will return the first available URL from those providers. Several advantages to this architecture: - If a book cover is not available from a provider, but is available from another one, Koha will be able to display a book cover, which isn't the case now - Since URLs are cached, it isn't necessary for each book cover to request, again and again, the provider, and several of them if necessary. - Amazon book covers are retrieved with Amazon Product Advertising API, which means that more covers are retrieved (ISBN13). Test plan: - Apply this patch, and test with 'Bootstrap' themes - You can verify that nothing has changed on OPAC result and detail page, since new syspref haven't been filled - Install Code: https://github.com/fredericd/coce Or ask me directly for the URL of a Coce server - In sysprefs, tab Enhanced content, modify: CoceHost -- enter the URL of your Coce server CoceProviders -- fill with: gb,aws,ol - Do a search. On result page, and detail page, you will see cover images originating from the 3 providers: fly over the image to see its URL. Try to compare with a Koha with just GoogleJacket or Amazon cover to confirm that you have more images. Verify that it's quick, and even quicker for cached images URLs. - Check that Browse Shelf functionnality works properly. - The ID sent to Coce is EAN or ISBN. Try with various type of biblios. DVD have often EAN, but no ISBN. - You can try with those sysprefs: CoceProviders: aws,gb CoceHost: coce.tamil.fr:8080 and this EAN (or ISBN): 3333297517744 => OPACAmazonCoverImages enabled doesn't display a cover because, it's a DVD => Coce find and display the DVD cover. Signed-off-by: Mark Tompsett <mtompset@hotmail.com> -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=9580 --- Comment #55 from M. Tompsett <mtompset@hotmail.com> --- I use ol,gb,aws and even saw all three mixed in the results for "C FR". Still can't get it to work on my personal VMs, because the success event doesn't trigger. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=9580 --- Comment #56 from Frédéric Demians <frederic@tamil.fr> --- I'd like to thank you, Mark, for your tenacity. Your remarks, critics and guidance make a difference, and help a lot to get a polished result which comply with Koha standard. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=9580 --- Comment #57 from Jonathan Druart <jonathan.druart@biblibre.com> --- Comment on attachment 33201 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=33201 Bug 9580 Cover images from Coce, a remote image URL cache Review of attachment 33201: --> (http://bugs.koha-community.org/bugzilla3/page.cgi?id=splinter.html&bug=9580&attachment=33201) ----------------------------------------------------------------- Frédéric, Mark, Lazily I tried with your host (coce.tamil.fr:8080), but it does not work. It seems that the browser blocks the request to other servers, which seems logical. Could you confirm or infirm that this worked for you? ::: koha-tmpl/opac-tmpl/bootstrap/en/modules/svc/shelfbrowser.tt @@ +1,1 @@
+[% USE Koha %]
Why do you added this line in this file (and not in shelfbrowser.inc)? ::: koha-tmpl/opac-tmpl/bootstrap/js/coce.js @@ +31,5 @@
+ var url = urlPerID[id]; + $("[id^=coce-thumbnail]."+id).each(function() { + var img = document.createElement("img"); + img.src = url; + img.title = url; //FIXME: to delete
Should be removed? -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=9580 --- Comment #58 from Frédéric Demians <frederic@tamil.fr> --- Merci Jonathan pour les tests.
Lazily I tried with your host (coce.tamil.fr:8080), but it does not work. It seems that the browser blocks the request to other servers, which seems logical. Could you confirm or infirm that this worked for you?
Could you try rather with: http://coce.tamil.fr:8080
::: koha-tmpl/opac-tmpl/bootstrap/en/modules/svc/shelfbrowser.tt @@ +1,1 @@
+[% USE Koha %]
Why do you added this line in this file (and not in shelfbrowser.inc)?
You're correct correct. It could be suppressed.
::: koha-tmpl/opac-tmpl/bootstrap/js/coce.js @@ +31,5 @@
+ var url = urlPerID[id]; + $("[id^=coce-thumbnail]."+id).each(function() { + var img = document.createElement("img"); + img.src = url; + img.title = url; //FIXME: to delete
Should be removed?
Well, good question. With that last line, it's possible to see immediately where the image comes from by flying over it. In my opinion, this should be kept now, and deleted later, or replaced by: img.title = id; -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=9580 Jonathan Druart <jonathan.druart@biblibre.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jonathan.druart@biblibre.co | |m --- Comment #59 from Jonathan Druart <jonathan.druart@biblibre.com> --- (In reply to Frédéric Demians from comment #58)
Merci Jonathan pour les tests.
Lazily I tried with your host (coce.tamil.fr:8080), but it does not work. It seems that the browser blocks the request to other servers, which seems logical. Could you confirm or infirm that this worked for you?
Could you try rather with: http://coce.tamil.fr:8080
I confirm that it works with the http:// -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=9580 Jonathan Druart <jonathan.druart@biblibre.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Version|3.14 |unspecified -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=9580 --- Comment #60 from Jonathan Druart <jonathan.druart@biblibre.com> --- I tried to host the webservice, and it worked until I got this error: % node webservice.js /home/koha/tools/coce/node_modules/aws-lib/lib/aws.js:78 if (err) throw err; ^ Error: metadata API response undefined at ClientRequest.<anonymous> (/home/koha/tools/coce/node_modules/aws-lib/lib/aws.js:37:49) at ClientRequest.g (events.js:180:16) at ClientRequest.emit (events.js:92:17) at Socket.emitTimeout (http.js:1797:10) at Socket.g (events.js:180:16) at Socket.emit (events.js:92:17) at Socket._onTimeout (net.js:326:8) at Timer.unrefTimeout [as ontimeout] (timers.js:418:13) Did you already get it? Could you please provide a followup for the [% USE Koha %]? I think you need to move it, not to remove it. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=9580 Frédéric Demians <frederic@tamil.fr> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #33201|0 |1 is obsolete| | --- Comment #61 from Frédéric Demians <frederic@tamil.fr> --- Created attachment 34678 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=34678&action=edit Bug 9580 Cover images from Coce, a remote image URL cache Add to Koha support for displaying Book cover requested to Coce, a remote image URL cache: https://github.com/fredericd/coce With this enhancement, cover images are not fetched directly from Amazon, Google, and so on. Their URL are requested via a web service to Coce which manages a cache of URLs. Three cover image providers are now available: Google Books (gb), Amazon (aws), and Open Library (ol). Two system preferences enable this service: - CoceHost - URL of Coce server - CoceProviders - Ordered list of requested providers. For example gb,aws,ol, will return the first available URL from those providers. Several advantages to this architecture: - If a book cover is not available from a provider, but is available from another one, Koha will be able to display a book cover, which isn't the case now - Since URLs are cached, it isn't necessary for each book cover to request, again and again, the provider, and several of them if necessary. - Amazon book covers are retrieved with Amazon Product Advertising API, which means that more covers are retrieved (ISBN13). Test plan: - Apply this patch, and test with 'Bootstrap' themes - You can verify that nothing has changed on OPAC result and detail page, since new syspref haven't been filled - Install Code: https://github.com/fredericd/coce Or ask me directly for the URL of a Coce server - In sysprefs, tab Enhanced content, modify: CoceHost -- enter the URL of your Coce server CoceProviders -- fill with: gb,aws,ol - Do a search. On result page, and detail page, you will see cover images originating from the 3 providers: fly over the image to see its URL. Try to compare with a Koha with just GoogleJacket or Amazon cover to confirm that you have more images. Verify that it's quick, and even quicker for cached images URLs. - Check that Browse Shelf functionnality works properly. - The ID sent to Coce is EAN or ISBN. Try with various type of biblios. DVD have often EAN, but no ISBN. - You can try with those sysprefs: CoceProviders: aws,gb CoceHost: http://coce.tamil.fr:8080 and this EAN (or ISBN): 3333297517744 => OPACAmazonCoverImages enabled doesn't display a cover because, it's a DVD => Coce find and display the DVD cover. Signed-off-by: Mark Tompsett <mtompset@hotmail.com> -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=9580 --- Comment #62 from Frédéric Demians <frederic@tamil.fr> --- (In reply to Jonathan Druart from comment #60)
I tried to host the webservice, and it worked until I got this error:
% node webservice.js
/home/koha/tools/coce/node_modules/aws-lib/lib/aws.js:78 if (err) throw err; ^ Error: metadata API response undefined at ClientRequest.<anonymous> (/home/koha/tools/coce/node_modules/aws-lib/lib/aws.js:37:49) at ClientRequest.g (events.js:180:16) at ClientRequest.emit (events.js:92:17) at Socket.emitTimeout (http.js:1797:10) at Socket.g (events.js:180:16) at Socket.emit (events.js:92:17) at Socket._onTimeout (net.js:326:8) at Timer.unrefTimeout [as ontimeout] (timers.js:418:13)
Did you already get it?
No. To track down this bug, it is required to have the ISBN/EAN which is sent to AWS. A tool like Phusion Passenger can help avoiding crashing the whole service when such an error occurs.
Could you please provide a followup for the [% USE Koha %]? I think you need to move it, not to remove it.
Done. Suppring the directive seems to be ok: covers are displayed in 3 locations: resultat page, detail page, and browse by location. I've resubmitted the whole as one patch, keeping Mark sign-off. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=9580 Jonathan Druart <jonathan.druart@biblibre.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Signed Off |Passed QA -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=9580 Jonathan Druart <jonathan.druart@biblibre.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #34678|0 |1 is obsolete| | --- Comment #63 from Jonathan Druart <jonathan.druart@biblibre.com> --- Created attachment 34679 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=34679&action=edit Bug 9580 Cover images from Coce, a remote image URL cache Add to Koha support for displaying Book cover requested to Coce, a remote image URL cache: https://github.com/fredericd/coce With this enhancement, cover images are not fetched directly from Amazon, Google, and so on. Their URL are requested via a web service to Coce which manages a cache of URLs. Three cover image providers are now available: Google Books (gb), Amazon (aws), and Open Library (ol). Two system preferences enable this service: - CoceHost - URL of Coce server - CoceProviders - Ordered list of requested providers. For example gb,aws,ol, will return the first available URL from those providers. Several advantages to this architecture: - If a book cover is not available from a provider, but is available from another one, Koha will be able to display a book cover, which isn't the case now - Since URLs are cached, it isn't necessary for each book cover to request, again and again, the provider, and several of them if necessary. - Amazon book covers are retrieved with Amazon Product Advertising API, which means that more covers are retrieved (ISBN13). Test plan: - Apply this patch, and test with 'Bootstrap' themes - You can verify that nothing has changed on OPAC result and detail page, since new syspref haven't been filled - Install Code: https://github.com/fredericd/coce Or ask me directly for the URL of a Coce server - In sysprefs, tab Enhanced content, modify: CoceHost -- enter the URL of your Coce server CoceProviders -- fill with: gb,aws,ol - Do a search. On result page, and detail page, you will see cover images originating from the 3 providers: fly over the image to see its URL. Try to compare with a Koha with just GoogleJacket or Amazon cover to confirm that you have more images. Verify that it's quick, and even quicker for cached images URLs. - Check that Browse Shelf functionnality works properly. - The ID sent to Coce is EAN or ISBN. Try with various type of biblios. DVD have often EAN, but no ISBN. - You can try with those sysprefs: CoceProviders: aws,gb CoceHost: http://coce.tamil.fr:8080 and this EAN (or ISBN): 3333297517744 => OPACAmazonCoverImages enabled doesn't display a cover because, it's a DVD => Coce find and display the DVD cover. Signed-off-by: Mark Tompsett <mtompset@hotmail.com> Signed-off-by: Jonathan Druart <jonathan.druart@biblibre.com> Amended patch: replaced 1 tab with spaces in C4/Shelfbrowser.pm -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=9580 --- Comment #64 from Jonathan Druart <jonathan.druart@biblibre.com> --- (In reply to Frédéric Demians from comment #62)
(In reply to Jonathan Druart from comment #60)
I tried to host the webservice, and it worked until I got this error:
% node webservice.js
/home/koha/tools/coce/node_modules/aws-lib/lib/aws.js:78 if (err) throw err; ^ Error: metadata API response undefined at ClientRequest.<anonymous> (/home/koha/tools/coce/node_modules/aws-lib/lib/aws.js:37:49) at ClientRequest.g (events.js:180:16) at ClientRequest.emit (events.js:92:17) at Socket.emitTimeout (http.js:1797:10) at Socket.g (events.js:180:16) at Socket.emit (events.js:92:17) at Socket._onTimeout (net.js:326:8) at Timer.unrefTimeout [as ontimeout] (timers.js:418:13)
Did you already get it?
No. To track down this bug, it is required to have the ISBN/EAN which is sent to AWS.
I got it again, but it's completely random (I have got it with the same url I use). I don't know where it can come from. However, it's the only problem I got, the code is clean and all works great. Nice feature! Marked as Passed QA. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=9580 Jonathan Druart <jonathan.druart@biblibre.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Severity|enhancement |new feature -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=9580 Martin Renvoize <martin.renvoize@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |martin.renvoize@ptfs-europe | |.com --- Comment #65 from Martin Renvoize <martin.renvoize@ptfs-europe.com> --- I can also confirm this is working well at the koha side, and that although the coce daemon itself presents that error mentioned by Jonathan periodically it doesn't appear to affect it's overall running. Would be nice to see this one making it's way though :) -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=9580 Fridolin SOMERS <fridolyn.somers@biblibre.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |fridolyn.somers@biblibre.co | |m -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=9580 Tomás Cohen Arazi <tomascohen@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |tomascohen@gmail.com --- Comment #66 from Tomás Cohen Arazi <tomascohen@gmail.com> --- I'm willing to push this ASAP. Two questions: - Do you think we could have a "Coce" syspref that could serve as a global switch instead of testing for CoceHost? That would make it consistent with how the rest of the enhanced content services are set in Koha. - Does Coce provide a way to set custom providers? If it doesn't, we don't need a free text syspref, could we make the CoceProviders a 'multiple' type syspref? With fixed values: aws, gb and ol? [1] I can just provide a followup implementing this changes if you want to, I only want your opinion before doing so. [1] With proper descriptions. Check OpacAdvSearchOptions on the .pref file. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=9580 --- Comment #67 from Tomás Cohen Arazi <tomascohen@gmail.com> --- Created attachment 37409 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=37409&action=edit Bug 9580: (QA followup) add a Coce syspref and fix options for Providers This proposed followup adds a 'Coce' syspref so it is consistent with the rest of the enhanced content providers sysprefs (also, there's no point making the user delete its configuration if disabling his Coce integration for testing purposes, for example). It also changes the CoceProviders syspref so it is a 'multiple' type syspref. It puts some sensible descriptions to the options too. Feel free to discuss this followup, it is just an idea! Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com> -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=9580 --- Comment #68 from Frédéric Demians <frederic@tamil.fr> ---
I'm willing to push this ASAP. Two questions:
+1
- Do you think we could have a "Coce" syspref that could serve as a global switch instead of testing for CoceHost? That would make it consistent with how the rest of the enhanced content services are set in Koha.
Ok. I do it and send an amended patch.
- Does Coce provide a way to set custom providers? If it doesn't, we don't need a free text syspref, could we make the CoceProviders a 'multiple' type syspref? With fixed values: aws, gb and ol? [1]
For the time being, Coce support only 3 images providers. But the system is designed to be extended, so it can change in the future. I'd recommend not to impose choices in Koha system preference. Forcing choices would prevent using new providers as soon as available. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=9580 Frédéric Demians <frederic@tamil.fr> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #37409|0 |1 is obsolete| | --- Comment #69 from Frédéric Demians <frederic@tamil.fr> --- Created attachment 37410 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=37410&action=edit (QA followup) add a Coce syspref and fix options for Providers -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=9580 --- Comment #70 from Martin Renvoize <martin.renvoize@ptfs-europe.com> --- We could perhaps add a route to lookup available providers on the specified coce server? That would allow koha's syspref to be 'clever' about presenting the available provider for your specific coce server. I say this as for instance in the UK, I'm rather tempted to write a BDS connector for coce.. but BDS is uk only, so our coce instance would support it but others may not. Any thoughts Frederic? -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=9580 Tomás Cohen Arazi <tomascohen@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Version|unspecified |master --- Comment #71 from Tomás Cohen Arazi <tomascohen@gmail.com> --- (In reply to Martin Renvoize from comment #70)
I say this as for instance in the UK, I'm rather tempted to write a BDS connector for coce.. but BDS is uk only, so our coce instance would support it but others may not.
I always try to avoid letting the user making mistakes/breaking their configuration (and have features fully documented). That's the POV that motivated my followup change to 'multiple'. We could have a CoceCustomProviders syspref that is free text. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=9580 --- Comment #72 from Martin Renvoize <martin.renvoize@ptfs-europe.com> --- I'd say, feel free to push as is.. I'll submit a followup to both coce and koha to show what I mean afterwards ;) -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=9580 --- Comment #73 from Frédéric Demians <frederic@tamil.fr> --- Martin: This idea of a Coce route responding with available providers sound good of course. But the the difficulty would be Koha side in the syspref editor to display those info appropriately. The way Tomas has displayed the 3 currently available providers is really good and consistent, and easy to extend if required. Concerning BDS integration, I can't say a lot since I don't know what it is at all. Adding a new provider shouldn't be too difficult. You have to add a method to the CoceFetcher class. If you have a public API for BDS, I could take a look. What I'd like to add to Coce is its integration with an image storage server which could replace the one integrated in Koha: local cover images. This would allow libraries to share scanning work, and stop this madness which consist to store images directly in the DB. I have several libraries that have MySQL DB made up of 95% of image data. A new image storage server may just be a new OpenLibrary project. So it may be a bad idea. But I had the feeling OpenLibrary was stopping its activity. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=9580 --- Comment #74 from Martin Renvoize <martin.renvoize@ptfs-europe.com> --- Indeed, I had a hunt around the sysprefs code in koha last night after making my suggestion and decided it would be a nightmare to implement at the koha side :( I might add a route to coce (and a pull request) anyway to get the available providers as it would perhaps be useful in the other app we're developing that uses it. I like the idea of a shared 'local image store'.. it's a shame that the OpenLibrary project is slowing as you suspect though :(. Certainly.. I'd pass qa on your followups Tomas, so I'd suggest pushing as is. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=9580 Tomás Cohen Arazi <tomascohen@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Passed QA |Pushed to Master --- Comment #75 from Tomás Cohen Arazi <tomascohen@gmail.com> --- Feature pushed to master. Thanks Frederic! -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=9580 Frédéric Demians <frederic@tamil.fr> changed: What |Removed |Added ---------------------------------------------------------------------------- See Also| |http://bugs.koha-community. | |org/bugzilla3/show_bug.cgi? | |id=7187 -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=9580 David Cook <dcook@prosentient.com.au> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |dcook@prosentient.com.au -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=9580 Viktor Sarge <viktor.sarge@regionhalland.se> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |viktor.sarge@regionhalland. | |se --- Comment #76 from Viktor Sarge <viktor.sarge@regionhalland.se> --- Frédéric made me aware that this one could be an alternative to http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=7187 One thing that's been a problem with cover images is the different caching policies from the providers which is of course unfortunate. Does this patch by any chance implement setting caching on/off per source to handle this? (Sorry if I'm being lazy, but searching for cach* in this thread gives a bit many hits) -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=9580 --- Comment #77 from Frédéric Demians <frederic@tamil.fr> --- Viktor, Coce server is a third-party tool accessed by Koha. Coce-side, for each cover image provider, you can define a cache timeout. Another point to take into account: URL to the images are cached, not the images themselves. This can make a difference from a provider policies point of view. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=9580 --- Comment #78 from Viktor Sarge <viktor.sarge@regionhalland.se> --- (In reply to Frédéric Demians from comment #77)
Viktor, Coce server is a third-party tool accessed by Koha. Coce-side, for each cover image provider, you can define a cache timeout. Another point to take into account: URL to the images are cached, not the images themselves. This can make a difference from a provider policies point of view.
Interesting! Thanks for the quick feedback. -- You are receiving this mail because: You are watching all bug changes.
participants (1)
-
bugzilla-daemon@bugs.koha-community.org