Google Book cover and link on OPAC results
Tags:
Last Updated: Aug 06, 2010 21:50
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)
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
Comments (2)
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!
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