Main -> Support Zone -> InSite Archives -> March 1999 Issue -> Tips & Techs |
InSite, March 1999 Tips & Techs Pointers from Open SiteSearch Product Support Staff |
Adding MARC 856 to a Formatted Record Display
John Trares, Product Support Specialist
MARC field 856 includes information required for locating electronic items such as websites, ftp servers and WAIS servers.
To display this information in SiteSearch, you must modify the associated formatting class for a database.
The example below shows how to add an 856 method to a formatting class. It is just one of several approaches that could be used.
Steps | Example | |
1. | Verify CLASSPATH Verify that CLASSPATH contains correct directories including the /classes directory, the SiteSearch jar file and the JDK classes.zip file. See also Configuring CLASSPATH (found in the Installing and Configuring the Open SiteSearch Suite document) |
>echo $CLASSPATH .:/ss4/classes: /ss4/classes/lib/SS4_0_1.jar: /usr/lpp/Java/lib/classes.zip |
2. | Locate formatting class Locate the formatting class used to display full records. The class is specified in the /ini/dbs/*.ini file for each database. |
In a NetFirst.ini file for Generic State College: [Formats] full = EDU.generic.NetFirstFullFmt |
3. | Add method Add the add856 method to the formatting class. The 856 method could be added before the 'doFormat' method. |
View add856 to see sample source code for this method. |
4. | Add call Reference the 856 method in the 'doFormat' method. See NOTE below |
addISSN(dir, useLabel, useTrailer); add856(dir,[true,false]); addLibraries(dir, useLabel); addHoldings(dir); |
5. | Compile the java file | javac NetFirstFullFmt.java |
6. | Restart JaSSI and ZBase |
To display only subfield $M (13) "Contact for access assistance" information |
add856(dir, false); |
To create a hotlink for subfield $M (13) For instance, when the field contains only an email address, such as in the FirstSearch NetFirst database. |
add856(dir, true); |
[Main][Documentation][Support][Technical Reference][Glossary][Search] |