Open SiteSearch 4.1.1
Final

ORG.oclc.fmts.zbase
Class ExampleOPACFmt

java.lang.Object
  |
  +--ORG.oclc.fmts.ZBaseFormatter
        |
        +--ORG.oclc.fmts.zbase.ExampleOPACFmt

public class ExampleOPACFmt
extends ZBaseFormatter

The ExampleOPACFmt class is an example class that demonstrates the correct formulation of OPAC record syntax output records. It creates a marc record first, then adds the holdings information. This is an EXAMPLE only. Comments in the source code explain what pieces of holding information can be added. For specific customization, alter the what fields are processed in the buildMarc() and a addHoldings() methods.

See Also:
ZBaseFormatter, FormatBerUtil, MarcBuilder

Fields inherited from class ORG.oclc.fmts.ZBaseFormatter
fieldData, fmtUtil, marcbytes, marcRec, newDir
 
Constructor Summary
ExampleOPACFmt()
          Constructs a ExampleOPACFmt object.
 
Method Summary
 BerString[] doFormat(BerString[] records)
          Formats an array of BER records into an array of MARC records.
 BerString doFormat(DataDir record)
          Formats a single BER record into a MARC record.
 
Methods inherited from class ORG.oclc.fmts.ZBaseFormatter
buildTextRecord, makeMarcBerString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExampleOPACFmt

public ExampleOPACFmt()
Constructs a ExampleOPACFmt object.
Method Detail

doFormat

public BerString doFormat(DataDir record)
Formats a single BER record into a MARC record.
Parameters:
record - a BER record.
Returns:
a MARC formatted record.
Overrides:
doFormat in class ZBaseFormatter

doFormat

public BerString[] doFormat(BerString[] records)
Formats an array of BER records into an array of MARC records.
Parameters:
records - an array of BER records.
Returns:
an array of MARC formatted records.
Overrides:
doFormat in class ZBaseFormatter

Open SiteSearch 4.1.1
Final