Open SiteSearch 4.1.1
Final

ORG.oclc.fmts.obi
Class LenderString

java.lang.Object
  |
  +--ORG.oclc.fmts.obi.LenderString

public class LenderString
extends Object

LenderString builds a String containing OCLC symbols. Its inputs are an IniFile containing locations strings from the locations information in an OPAC record. This IniFile is initialized at JaSSI startup time. It uses a file named "loc.ini" where dbname is the ZDb.dbname().

If "systemId" is not present, the symbol is assumed to be an OCLC symbol.

Its output is a string with blank-delimited : s.

The "loc.ini" file contains these sections:
[ThisDb]
Default=ABC
systemId=OCLC

LOCATION ONE=NoInst
LOCATION TWO=NoInst

LOCATION THREE=DEF
LOCATION FOUR=DEF

LOCATION FIVE=GHI
LOCATION SIX=GHI


Constructor Summary
LenderString()
           
 
Method Summary
static String getInst(String dbName, String location)
          Given a database name and a location string, looks up the symbol associated with that string (if any), and adds it to the lenderString StringBuffer.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LenderString

public LenderString()
Method Detail

getInst

public static String getInst(String dbName,
                             String location)
Given a database name and a location string, looks up the symbol associated with that string (if any), and adds it to the lenderString StringBuffer.
Parameters:
dbName - the name of the database
location - the location string from the OPAC record
Returns:
String the symbol.

Open SiteSearch 4.1.1
Final