From: Josh Stompro Date: Mon, 4 Mar 2019 17:16:56 +0000 (-0600) Subject: LP#1674364 - Use database bib id for cover art lookup X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=refs%2Fheads%2Fuser%2Fstompro%2Flp1674364_html_feed_atom_coverart_bibid;p=working%2FEvergreen.git LP#1674364 - Use database bib id for cover art lookup Export the 901c as the URN:BIBID identifier to allow the ATOM2XHTML.xsl to construct a cover art img link using it. Testing Notes: I used a bookbag to test this out. 1. Create a public bookbag of items and grab the bookbag id. 2. View the source of these links on your system to see the current output. /opac/extras/feed/bookbag/atom/ /opac/extras/feed/bookbag/html-full/ Make note that the jacket img link uses the ISBN to lookup cover art. Make changes. 1. Restart supercat to re-load xsl transfor files. osrf_control -l --service open-ils.supercat --restart 2. View the source and output of these links on your system to see the changes. /opac/extras/feed/bookbag/atom/ /opac/extras/feed/bookbag/html-full/ The cover art images should show up now in the html-full, and the URN:BIBID: identifier should be populated in the atom file. Signed-off-by: Josh Stompro --- diff --git a/Open-ILS/xsl/ATOM2XHTML.xsl b/Open-ILS/xsl/ATOM2XHTML.xsl index 3484f1508b..4d728b91db 100644 --- a/Open-ILS/xsl/ATOM2XHTML.xsl +++ b/Open-ILS/xsl/ATOM2XHTML.xsl @@ -8,6 +8,7 @@ Copyright (c) 2006 GPLS. Author: Michael Fagan, parts by Joel Tesler; modifications by Mike Rylander / GPLS Changelog: + 2019-03-04: Use URN:BIBID for cover art lookup. 2005-11-28: Updated to work with OpenSearch 1.1 Draft 2 (rather than Draft 1) 2005-10-19: Changlog added (unknown update) Description: Converts an OpenSearch feed into XHTML. @@ -301,23 +302,8 @@ To-do list: - - - - - - - - - - - - - - - /opac/extras/ac/jacket/small/ - - + + diff --git a/Open-ILS/xsl/MARC21slim2ATOM.xsl b/Open-ILS/xsl/MARC21slim2ATOM.xsl index dd0c7e1497..05914d9989 100644 --- a/Open-ILS/xsl/MARC21slim2ATOM.xsl +++ b/Open-ILS/xsl/MARC21slim2ATOM.xsl @@ -4,6 +4,7 @@ + @@ -119,6 +120,14 @@ + + + URN:BIBID: + + + + +