ticTOCs and embedded SFX services in OPAC
Tags: aleph
, opac
, rss
, toc
, tictocs
, php
, advanced
, prototype
Last Updated: Oct 30, 2009 00:49
- Description
By using the ticTOCs Journal Table of Contents Service you can include a link to a RSS feed for a journal. You can also parse the RSS feed for a journal and display the latest articles. This example is bundled with the embedded SFX services script. But it is easy to leave out the SFX part if you wan't to.
- Author: Daniel Forsman
- Institution: Högskolan i Jönköping
- Year: 2009
- License: BSD style
- Short description: Use, modification and distribution of the code are permitted provided the copyright notice, list of conditions and disclaimer appear in all related material.
- Link to terms: [Detailed license terms]
- Skill required for using this code:
Choose one of the following: advanced
State
Stable
Programming language
Javascript (prototype), PHP
Software requirements
Protototype, PHP installed on your OPAC webserver
Screen captures


Author(s) homepage
http://julia.hj.se/F/?func=find-b-0&CON_LNG=eng
Download
See attached files. You will need sfx.php and ticTOCparser.php. Please note that you will also need the Prototype framework. Download from prototype website http://www.prototypejs.org/
Working example
http://julia.hj.se/F/?func=find-b-0&CON_LNG=eng do a search for Journal of Clinical nursing
Using the following Ex Libris open interfaces
SFX API: sfx.response_type=simplexml
Release notes
Be happy.
Installation instructions
0. Make sure that you create a id for the javascript DOM parser to read. We have edited our full-999-body so that i looks like this:
1. Make sure you have PHP installed on your OPAC webserver.
2. Download and include the Prototype framework (www.prototypejs.org/) in your OPAC. Ours is included in meta-tags and available on all pages.
5. Upload the sfx.php to your OPAC server. Make sure that you edit the path in eJULIA.js so that it points to the sfx.php file. This file queries SFX so make sure to edit it so that it points to your SFX server and proxy. The services pulled are getCitedJournal, getFullTxt, getAbstract, getTOC. You can add or remove services easy.
6. Now that you got the function in place you need to add local ticTOCs data to parse. Save the tab delimited file from http://www.tictocs.ac.uk/text.php just save it as tictoc_text.txt or something.
7. Upload the file to your server, put it in a webdirectory. If PHP is compiled with CLI you can do the processing below in terminal/konsole. If not you need to run the scripts through a browser.
8. Edit ticTOCparser.php so that it matches your file settings. You need to create a empty file (touch tictoc.xml) and make sure it is writable.
9. If you want to you can set up a CRON job that gets the file from ticTOCs with wget and then run the PHP script via CLI or by running lynx to it. You can do manual updates to when you feel like it.
Comments
Text...


4 Comments
comments.show.hideJul 07, 2009
Daniel Forsman
The method of including a ticTOC described in this post has some specific requirements. If you don't have access to PHP on your webserver and/or prefer JSON you should look at http://tictoclookup.appspot.com/ by Godmar Back. This will give you access to a webservice for lookups.
Aug 06, 2009
Inga Overkamp
Daniel, thanks a lot for sharing! One additional remark regarding the Google application mentioned in your comment: The service is currently not regularly updated from the ticTOCs source data, i.e. to date the feed URLs have been last modified on Apr 29. That causes some broken links, e.g. http://tictoclookup.appspot.com/0003-4932
We contacted Godmar Back about this and he replied by returnthat
a) the LibX team will set up a way to update the application ("in a little bit")
b) the Google code SVN (http://tictoclookup.googlecode.com/svn/trunk/) includes a standalone version using Python/WSGI... just in case that somebody wants to host the service locally.
Nov 23, 2009
Mark Watmough
Hi
There has been a TICTOCs API released (although it doesn't seem to have been publicised very well) its freely available at http://www.journaltocs.hw.ac.uk/index.php?action=api
Mark
Dec 30, 2009
Daniel Zimmel
i just added some code example for this api
http://www.exlibrisgroup.org/display/AlephCC/JournalTOCs-API+catalog+integration+the+easy+way