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


Toggle Sidebar
Your Rating: Results: PatheticBadOKGoodOutstanding! 2 rates
Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.

Google Book cover and link on OPAC results

Tags: Last Updated: Aug 06, 2010 21:50


  • Description

    Displays Google Book link information on OPAC's short results screen using Google Book Search API.
    It can be used on all Aleph500 versions.
    ==== Version 2: August, 2010.


  • Author: Michelangelo Mazzardo Marques Viana
  • Additional author(s):
  • Institution: Pontificia Universidade Catolica RS
  • Year: 2009
  • License: MPL 1.1 / GPL 2.0
  • 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: MPL 1.1, GPL 2.0
  • Skill required for using this code: intermediate

State

Stable (in production use)

Programming language

Javascript

Software requirements

Tested with Aleph500 versions 18 and 20, under Linux Red Hat.
Should work in different environments too.
Requires only Javascript.

Screen captures

Author(s) homepage

http://www.linkedin.com/pub/michelangelo-mazzardo-marques-viana/3/723/857

Download

NEW FILE: http://www.exlibrisgroup.org/download/attachments/24610408/GoogleBooksPUCRS.zip

Working example

http://verum.pucrs.br/F/?func=find-b&find_code=WLS&request=farmacia&adjacent=N&filter_code_4=WBA&filter_request_4=&filter_code_1=WLN&filter_request_1=&filter_code_6=WBA&filter_request_6=&filter_code_5=WBA&filter_request_5=&filter_code_2=WYR&filter_request_2=&filter_code_3=WYR&filter_request_3=&local_base=gbs
(eg: books about 'farmacy' in English)

Using the following Ex Libris open interfaces

None so far.

Changes

Version 2.0 (August, 2010)

  • Faster release.

Release notes

Version 1.0 (2009) was the initial release.
Version 2.0 (2010) is faster, using IFRAME and a new file: google-book

Installation instructions

1. Log in to the server as aleph user

2. Save the new file "google-book" on $alephe_root/www_f_LNG/

2. Inside google-book file, change the text that is displayed below the book cover.
Example given: <br>More about<br>on Google<BR>Books

3. Still inside google-book file, make the necessary adjustments on CSS styles to fit your needs.

4. Save the google-book file and exit.

5. Setup BIB (xxx01) www_tab_short.lng to display ISBN (020##)
/exlibris/aleph/uXX_1/xxx01/tab/www_tab_short.LNG

! 2           3               4       5  6   7   8 9    10      11   12   13
!-!-!!!!!!!!!!!!!!!!!!!!-!!!!!!!!!!!!-!!-!!-!!!!-!-!-!!!!!!!!!!-!!-!!!!!-!!!!!-!!!!!-!!!!!-!!!!!
8 L More about                        00 00 2000 S              ## 020##

6. Define a new table head to OPAC short results.
This new "TH" column must be put on:
$alephe_root/www_f_LNG/short-a-head

<th>$1000</th>

7. Define a new table division to OPAC short results.
This new "TD" column must be put on:
$alephe_root/www_f_LNG/short-a-body
and must be at same column position of its respective TH.

8. Verify the Aleph's OPAC variable wich is returning the ISBN after www_tab_short.lng setup:
/exlibris/aleph/uXX_1/xxx01/tab/www_tab_short.LNG

9. Change ISBN variable on following code: there is only one occurence, after "isbn_record".
Example given, PUCRS's Aleph ISBN variable is dollar_1000 (one thousand)

10. Make the necessary adjustments on width and height of IFRAME, to fit CSS styles definitions.

11. Inside the new "TD" on short-a-body, insert the following code:

<script>
var isbn_record="$1000";
if (isbn_record != "<BR>")
{
document.write("<IFRAME AllowTransparency name=GB src=&server_f?func=file&file_name=google-book&ISBN="+isbn_record);
document.write(" frameBorder=0 width=85 height=140 scrolling=auto></IFRAME>");
}
else {
document.write("<!-- NO ISBN -->");
}
</script>

12. Save the short-a-body file and exit.

13. Restart Aleph WWW Server.

14. Make an OPAC search that return books for testing.

Configuration


Main configurations are done in $alephe_root/www_f_LNG/short-a-body and on $alephe_root/www_f_LNG/google-book.

Summary of actions needed to implement it

  • Setup Aleph to display ISBN on search results: BIB01 data_tab directory
    • Important: verify what is the ISBN variable and chage it on google-book (there is only 1 occurrence).
  • Save the google-book file on OPAC's www_f_LNG directory
  • Adjust the HTML files (short-a-head, short-a-body, google-book) inside www_f_LNG directory
  • Restart WWW server
  • Testing on different web browsers and versions

Comments

Page Attachments

File NameCommentSizeNumber of Downloads
google_book_search_on_short_results.jpgScreenshot185 kB1063
GoogleBooksPUCRS.zipVersion 2: google-book file and code_to_short-a-body_TD2 kB27

Added by Michelangelo Mazzardo Marques Viana on Sep 03, 2009 17:50, last edited by Michelangelo Mazzardo Marques Viana on Aug 06, 2010 21:50

  1. Nov 11, 2009

    Rodrigo Calloni says:

    hey michelangelo...  nice one! I did the same but using a crazy logic b...

    hey michelangelo...  nice one! I did the same but using a crazy logic base setup because I couldnt figure out th GBS api as you did ;)

    Thanks for sharing!

    I have an iphone interface, you can check it out in elcommons too!

  2. Jun 21

    Boaz Dotan says:

    Hi Michelangelo, thanks for sharing, i put it on ver 20 and it works perfecly! v...

    Hi Michelangelo,
    thanks for sharing, i put it on ver 20 and it works perfecly!
    very nice feature.

    Boaz

Adaptavist Theme Builder Powered by Atlassian Confluence