[OPEN-ILS-GENERAL] Content Cafe

Tim Spindler tjspindler at gmail.com
Wed Apr 20 10:05:06 EDT 2011


I think I sent this to the dev list and meant for it to go to the general
evergreen list.

One other thing is our apache log shows the following error when doing a
search (and something similar occurs with our set up for LibraryThing)

"File does not exist: /openils/var/web/js/dojo/openils/widget/nls/en,
referrer:
http://eg-training.cwmars.org/opac/en-US/skin/default/xml/index.xml"

Tim Spindler

On Wed, Apr 20, 2011 at 9:37 AM, Tim Spindler <tspindler at cwmars.org> wrote:

> Thanks James, unfortunately it is still not working.  The following is what
> I did on the opensrf.xml file
>
>         <added_content>
>
>             <!-- load the OpenLibrary added content module -->
>             <!-- <module>OpenILS::WWW::AddedContent::OpenLibrary</module>
> -->
>             <module>OpenILS::WWW::AddedContent::ContentCafe</module>
>
>             <!--
>             Max number of seconds to wait for an added content request to
>             return data.  Data not returned within the timeout is
> considered
>             a failure
>             -->
>             <timeout>1</timeout>
>
>             <!--
>             After added content lookups have been disabled due to too many
>             lookup failures, this is the amount of time to wait before
>             we try again
>             -->
>             <retry_timeout>600</retry_timeout>
>
>             <!--
>             maximum number of consecutive lookup errors a given process
> can
>             have before added content lookups are disabled for everyone
>             -->
>             <max_errors>15</max_errors>
>
>             <!-- If a userid is required to access the added content..
>             <userid>o2</userid> -->
>
>             <!--
>             Base URL for Amazon added content fetching. Not needed by
> OpenLibrary
>             <base_url>http://images.amazon.com/images/P/</base_url>
>             <base_url>http://contentcafe2.btol.com/ContentCafe/</base_url>
> -->
>
>             <!--
>             Segregating the details for ContentCafe out for easier use.  At
> some point, we
>             may want to support multiple services at one time.
>             -->
>             <ContentCafe>
>                 <userid>myuserid</userid>
>                 <password>mypassword</password>
>
>                 <!--
>                 If no cover/jacket image exists for a given ISBN, then a
> value of T here will
>                 return an 80x120 pixel image containing the text "No Image
> Available".  A
>                 value of 1 will return a 1x1 pixel image.
>                 -->
>
>  <return_behavior_on_no_jacket_image>T</return_behavior_on_no_jacket_image>
>             </ContentCafe>
>
>             <!--
>
>             You can add free-form settings here and they will be accessible
>             within the added content module
>             -->
>
>         </added_content>
>
> Tim
>
> On Tue, Apr 19, 2011 at 5:13 PM, James Fournie <
> jfournie at sitka.bclibraries.ca> wrote:
>
>> Hi Tim,
>>
>> Yes you are correct the Base URL is not needed, nor is the userid that
>> exists outside of the <ContentCafe> tag (although the one within it is
>> required along with the password)
>>
>> When you make the change you will need to restart OpenSRF, Apache and
>> you may also need to restart memcached (while OpenSRF is stopped) to
>> clear the old covers which would have been cached from
>> Amazon/OpenLibrary/whatever you were using before.
>>
>> HTH
>>
>> James Fournie
>> BC Sitka
>>
>>
>>
>> On Tue, Apr 19, 2011 at 10:00 AM, Tim Spindler <tspindler at cwmars.org>
>> wrote:
>> > I have been trying to get cover images to display with our Content Cafe
>> > account.  I've modified the opensrf.xml file to include our login
>> > information and change the module to:
>> > <module>OpenILS::WWW::AddedContent::ContentCafe</module>
>> > I have the base URL still commented out because I didn't think it was
>> needed
>> > since it appeared from the code the Content Cafe perl module dealt with
>> > this.  We are not seeing the book covers still.
>> >
>> > --
>> >
>> > Tim Spindler
>> >
>> > Manager of Library Applications
>> >
>> > tspindler at cwmars.org
>> >
>> > 508-755-3323 x20
>> > IM: tjspindler (AOL, meebo, google wave)
>> >
>> >
>> >
>> > C/W MARS, Inc.
>> >
>> > 67 Millbrook St, Suite 201
>> >
>> > Worcester, MA 01606
>> > http://www.cwmars.org
>> >
>> >
>> >
>> > P   Go Green - Save a tree! Please don't print this e-mail unless it's
>> > really necessary.
>> >
>> >
>> >
>>
>
>
>
> --
>
> Tim Spindler
>
> Manager of Library Applications
>
> tspindler at cwmars.org
>
> 508-755-3323 x20
> IM: tjspindler (AOL, meebo, google wave)
>
>
>
> C/W MARS, Inc.
>
> 67 Millbrook St, Suite 201
>
> Worcester, MA 01606
> http://www.cwmars.org
>
>
>
> *P**   Go Green - **Save a tree! Please don't print this e-mail unless
> it's really necessary.*
>
>
>
>


-- 
Tim Spindler
tjspindler at gmail.com

*P**   Go Green - **Save a tree! Please don't print this e-mail unless it's
really necessary.*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://libmail.georgialibraries.org/pipermail/open-ils-general/attachments/20110420/d7cbfffd/attachment-0001.htm 


More information about the Open-ils-general mailing list