[OPEN-ILS-GENERAL] RSS to display OPAC lists on wordpress sites?

Terran McCanna tmccanna at georgialibraries.org
Thu Feb 1 13:48:53 EST 2018


Oh! You're actually using the shared HTML View and not the RSS feed, which
is much easier to customize:

We changed the template file that creates that HTML
(opac/parts/result/table.tt2) so that it pulls in the medium cover image
instead of the small cover image (from /opac/extras/ac/jacket/small/r/ to
/opac/extras/ac/jacket/medium/r/) and we tweaked the size to what we wanted
it to be. (That will change your catalog search results as well since it
uses the same template.)  Here is what our customized code looks like:

                                            <td
class='result_table_pic_header'>
                                                <a href="[% record_url
%]"><img alt="[% l('Book cover') %]"
                                                        name='item_jacket'
class='result_table_pic' width="85" style="border:1px solid #ccc;margin:0px
15px 5px 0px;"
                                                        src='[%
ctx.media_prefix %]/opac/extras/ac/jacket/medium/r/[% rec.bre_id | uri %]'
/></a><br />
                                            </td>

And here is an example of how it displays:

https://gapines.org/eg/opac/results?depth=0;page=0;bookbag=45851;locg=1



Terran McCanna
PINES Program Manager
Georgia Public Library Service
1800 Century Place, Suite 150
Atlanta, GA 30345
404-235-7138
tmccanna at georgialibraries.org


On Thu, Feb 1, 2018 at 1:19 PM, Ruth Frasur <director at hagerstownlibrary.org>
wrote:

> This isn't perfect, but this is something we've done.
>
> http://hagerstownlibrary.org/julian-healthcare-booklist/
>
> On Thu, Feb 1, 2018 at 12:38 PM, Terran McCanna <
> tmccanna at georgialibraries.org> wrote:
>
>> The default Evergreen bookbag RSS feeds don't contain image links, so I
>> assume yours are created some other way or at least customized, is that
>> correct? If so, in whatever code you have that creates image link, you
>> should theoretically just be able to change the path so that this:
>>
>> /opac/extras/ac/jacket/small/r/#####
>>
>> becomes this:
>>
>> /opac/extras/ac/jacket/medium/r/#####
>>
>> or this:
>>
>> /opac/extras/ac/jacket/large/r/#####
>>
>>
>> (In the SuperCat code that produces the new books lists, I had to change MARC21slim2ATOM.xsl
>> so that it put the TCN in the link instead of the ISBN.)
>>
>> I know this doesn't help with your original request for a WordPress
>> widget - sorry!
>>
>>
>> Terran McCanna
>> PINES Program Manager
>> Georgia Public Library Service
>> 1800 Century Place, Suite 150
>> <https://maps.google.com/?q=1800+Century+Place,+Suite+150+Atlanta,+GA+30345&entry=gmail&source=g>
>> Atlanta, GA 30345
>> <https://maps.google.com/?q=1800+Century+Place,+Suite+150+Atlanta,+GA+30345&entry=gmail&source=g>
>> 404-235-7138 <(404)%20235-7138>
>> tmccanna at georgialibraries.org
>>
>>
>> On Thu, Feb 1, 2018 at 10:47 AM, Katie Greenleaf Martin <
>> bcl at blaircountylibraries.org> wrote:
>>
>>> Thanks everyone for your responses!
>>> A couple of clarifications:
>>> 1. the images are already coded into the RSS feed--they are the
>>> 'thumbnail' size which isn't ideal but if you put the feed url into Feedly
>>> or another RSS reader you do get the images. Terran if you figured out how
>>> to extract the larger images, that would be useful info!
>>> 2. we already use the automatically generated feeds to make our
>>> carousels on our OPACs (and some libraries prefer to create their own lists
>>> manually to feature certain items)--SPARK has had it for a while now, it
>>> went haywire for a bit after our upgrade to 3.0 but it's working again :)
>>>
>>> What we're trying go figure out how to do elegantly (& easily!) is to
>>> use those RSS feeds on our external, wordpress-based webpages.
>>>
>>> Katie
>>>
>>> On Thu, Feb 1, 2018 at 10:01 AM, Terran McCanna <
>>> tmccanna at georgialibraries.org> wrote:
>>>
>>>> Hmm - I did some tweaks on the code to get the images to appear right
>>>> on the new books lists (which I keep meaning to go back to work on more)
>>>> for the web site, but I haven't played with the RSS feeds from the list
>>>> bookbags to try to add images.
>>>>
>>>>
>>>> Terran McCanna
>>>> PINES Program Manager
>>>> Georgia Public Library Service
>>>> 1800 Century Place, Suite 150
>>>> <https://maps.google.com/?q=1800+Century+Place,+Suite+150+Atlanta,+GA+30345&entry=gmail&source=g>
>>>> Atlanta, GA 30345
>>>> <https://maps.google.com/?q=1800+Century+Place,+Suite+150+Atlanta,+GA+30345&entry=gmail&source=g>
>>>> 404-235-7138 <(404)%20235-7138>
>>>> tmccanna at georgialibraries.org
>>>>
>>>> On Jan 31, 2018 6:33 PM, "Josh Stompro" <stomproj at exchange.larl.org>
>>>> wrote:
>>>>
>>>>> Hello Katie, was trying to do this a while back but never got it
>>>>> working.  Here is the bug report I opened on it
>>>>>
>>>>> https://bugs.launchpad.net/evergreen/+bug/1674364
>>>>>
>>>>>
>>>>>
>>>>> According to that bug, PINES did get it working, and includes their
>>>>> code changes.
>>>>>
>>>>> Josh Stompro - LARL IT Director
>>>>>
>>>>>
>>>>>
>>>>> *From:* Open-ils-general [mailto:open-ils-general-bounc
>>>>> es at list.georgialibraries.org] *On Behalf Of *Katie Greenleaf Martin
>>>>> *Sent:* Wednesday, January 31, 2018 10:49 AM
>>>>> *To:* Evergreen Discussion Group <open-ils-general at list.georgia
>>>>> libraries.org>
>>>>> *Subject:* [OPEN-ILS-GENERAL] RSS to display OPAC lists on wordpress
>>>>> sites?
>>>>>
>>>>>
>>>>>
>>>>> Hello Evergreen Community :)
>>>>>
>>>>> I have several libraries who want to use RSS to display their bookbags
>>>>> (either manually or automatically created) on their website. Does anyone
>>>>> know of a reliable Wordpress widget that would display the feed with the
>>>>> cover images?
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> Looking forward to seeing some of you at ALA MW in a few weeks!
>>>>>
>>>>>
>>>>>
>>>>> --
>>>>>
>>>>> Katie Greenleaf Martin, MLIS
>>>>> bcl at blaircountylibraries.org
>>>>> 814.946.0417x132 <(814)%20946-0417>
>>>>> County Coordinator
>>>>> Blair County Library System
>>>>>
>>>>
>>>
>>>
>>> --
>>> Katie Greenleaf Martin, MLIS
>>> bcl at blaircountylibraries.org
>>> 814.946.0417x132 <(814)%20946-0417>
>>> County Coordinator
>>> Blair County Library System
>>>
>>
>>
>
>
> --
> Ruth Frasur
> Director of the Historic(ally Awesome) Hagerstown - Jefferson Township
> Library
> 10 W. College Street
> <https://maps.google.com/?q=10+W.+College+Street&entry=gmail&source=g> in
> Hagerstown, Indiana (47346)
> p (765) 489-5632; f (765) 489-5808
>
> *Our Kickin' Website <http://hagerstownlibrary.org>,  Our Rockin' Facebook
> Page <http://facebook.com/hjtplibrary>,  and The Nettle Creek Players
> <http://nettlecreekplayers.com>*
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://libmail.georgialibraries.org/pipermail/open-ils-general/attachments/20180201/b756c6ca/attachment-0001.html>


More information about the Open-ils-general mailing list