[OPEN-ILS-DEV] Cover art in RSS Feeds

Josh Stompro stomproj at exchange.larl.org
Fri Mar 17 10:39:53 EDT 2017


Has anyone figured out how to modify the bookbag rss feed results to add in the cover art for titles into the description data?

We would like to be able to use any old rss plugin to display new titles based on a query created bookbag, or the freshmeat feeds, but since the cover art isn't included it isn't very attractive.

I'm wondering if this would be where I should look at munging the description data -
http://git.evergreen-ils.org/?p=Evergreen.git;a=blob;f=Open-ILS/src/perlmods/lib/OpenILS/WWW/SuperCat.pm;hb=HEAD#l1609

I think I need to add a cdata enclosed link to the cover art to have this work.

<![CDATA[<img src=" http://egcatalog.larl.org/opac/extras/ac/jacket/small/r/197054"/<http://egcatalog.larl.org/opac/extras/ac/jacket/small/r/197054%22/>>]]>

Maybe something like

$node->description("<![CDATA[<img src=" http://egcatalog.larl.org/opac/extras/ac/jacket/small/r/$item_tag"/<http://egcatalog.larl.org/opac/extras/ac/jacket/small/r/$item_tag%22/>>]]>" . $node{currentdescription});

I'm not sure how to grab the current description data at that point.  I might want to just exclude the current description entirely, since I really just want the cover art.  And I need to grab the current server hostname so that isn't hard coded.  Any tips would be appreciated.

Thanks
Josh

Lake Agassiz Regional Library - Moorhead MN larl.org
Josh Stompro     | Office 218.233.3757 EXT-139
LARL IT Director | Cell 218.790.2110

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://libmail.georgialibraries.org/pipermail/open-ils-dev/attachments/20170317/9485b26c/attachment.html>


More information about the Open-ils-dev mailing list