[Koha] [EXTERNAL] Re: Where to place RSS xml output?
Tim McMahon
tmcmahon at wlpl.org
Thu Jan 6 07:11:02 NZDT 2022
In your lastAcquired.tt file, try changing i.TITLE and i.AUTHOR to
i.title and i.author.
On 1/5/22 11:37 AM, Bales (US), Tasha R wrote:
> Thank you, Tim.
>
> I was just messing around and found I was also able to place the file into koha/opac/htdocs and access it with a URL like this: http:// mycatalog.com/lastAcquired.xml. That is fantastic. A dedicated RSS directory like you created would probably be better.
>
> However, the XML file that was created by rss.pl and lastAcquired.tt appears to be "malformed" and the book titles are all missing (I didn't alter the template; the titles should be included). I imagine this is the reason Jonathan stated that the files should be removed from the codebase. The titles all came out empty like this: "<title>, by </title>"
>
> Having had a look at the output, it looks like it wouldn't be difficult to adapt the existing files or come up with our own solution for building an XML that contains the fields we need. Thanks again for your help!
>
>
> Tasha Bales
> Enterprise Services
> http://isesi.web.boeing.com/
>
>
>
> Library Services Catalog upgrade is coming!
> For the latest news and FAQ regarding the upgrade, see Library Announcements.
> Questions? Please contact library at boeing.com.
>
>
> -----Original Message-----
> From: Koha [mailto:koha-bounces at lists.katipo.co.nz] On Behalf Of Tim McMahon
> Sent: Monday, January 3, 2022 16:35
> To: koha at lists.katipo.co.nz
> Subject: [EXTERNAL] Re: [Koha] Where to place RSS xml output?
>
> EXT email: be mindful of links/attachments.
>
>
>
> I tried this about a year ago. The only way I found to get it to work (on a test server) was to create new directory (I named it rss) in koha/opac/htdocs and access it with http://mycatalog.com/rss/file.xml.
>
> On 1/1/22 8:43 PM, Bales (US), Tasha R wrote:
>> Good evening,
>>
>> I've been reviewing the sample templates and configuration files for custom RSS. On my system, these are installed here: /usr/share/koha/bin/cronjobs/rss. I'm stuck on where to place the XML that is produced in order to make the output accessible/subscribable via the OPAC.
>>
>> I've tried placing the XML files into koha/opac/cgi-bin/opac and into koha/opac/cgi-bin/opac/rss. Then, I tried accessing the files (with permissions set to 755) using the following guesses at URL scheme:
>>
>> http://mycatalog.com/cgi-bin/koha/lastAcquired.xml (results in a blank
>> page that has only the words "not found" in the upper left)
>> http://mycatalog.com/cgi-bin/koha/rss/lastAcquired.xml (results in 500
>> internal server error) http://mycatalog.com/lastAcquired.xml (results
>> in an Error 404 in the OPAC, "Sorry, the requested page is not
>> available")
>>
>> I'm sure the issue is a matter of ignorance on my part as to what the best and acceptable locations are for placing "local" files. I apologize for that, but please know I invested a couple hours before asking. Thanks in advance if anyone has tips as to where to place the files, and then, how to access them.
>>
>> Excerpt from lastAcquired.conf:
>>
>> title=Recent Koha Acquisitions
>> link=http://www.koha-community.org (<-- I assume this is supposed to
>> be my catalog URL, and I updated accordingly) desc=The 15 most recent
>> acquisitions ...
>> title=Koha, the worlds best Open Source Library System
>> url=http://www.koha-community.org/images/foo.jpg
>> link=http://www.koha-community.org
>> config
>> template=lastAcquired.tt
>> output=[here I inserted path to destination folder]/lastAcquired.xml
>>
>>
>> Tasha Bales
>> Enterprise Services
>> http://isesi.web.boeing.com/
>>
>>
>> _______________________________________________
>>
>> Koha mailing list http://koha-community.org Koha at lists.katipo.co.nz
>> Unsubscribe: https://lists.katipo.co.nz/mailman/listinfo/koha
> --
> *Tim McMahon*
> West Liberty Public Library
>
> 319-627-2084
>
> _______________________________________________
>
> Koha mailing list http://koha-community.org Koha at lists.katipo.co.nz
> Unsubscribe: https://lists.katipo.co.nz/mailman/listinfo/koha
> _______________________________________________
>
> Koha mailing list http://koha-community.org
> Koha at lists.katipo.co.nz
> Unsubscribe: https://lists.katipo.co.nz/mailman/listinfo/koha
--
*Tim McMahon*
West Liberty Public Library
More information about the Koha
mailing list