Access Keys:
Skip to content (Access Key - 0)
My Area (Access Key - 2)


Toggle Sidebar
Your Rating: Results: PatheticBadOKGoodOutstanding! 1 rates
Labels:
aleph aleph Delete
opac opac Delete
rss rss Delete
toc toc Delete
tictocs tictocs Delete
php php Delete
advanced advanced Delete
prototype prototype Delete
Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.

ticTOCs and embedded SFX services in OPAC

Tags: , , , , , , ,
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:

If you are using tables in full-999-body you must make sure that there is a for the table cell that you want to catch. Just repeat $0100 as a id for it.

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.

3. Create a div id where you want the SFX services to appear. Ours is in full-set-tail.
4. Include the eJULIA.js javascript either inline or by including it from a file below the id in full-set-tail is fine. Inline full-set-tail example below.

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.

If you have CLI just run /usr/bin/php ticTOCparser.php if no CLI direct your browser to the file. It will generate the XML file needed for parsing.

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...


Page Attachments

File NameCommentSizeNumber of Downloads
ticTOCparser.php2 kB58
sfx.php3 kB55

Added by Daniel Forsman on Jul 07, 2009 11:29, last edited by Conf Admin on Oct 30, 2009 00:49

  1. Jul 07, 2009

    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.

    1. Aug 06, 2009

      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.

  2. Nov 23, 2009

    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

Adaptavist Theme Builder Powered by Atlassian Confluence