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
Constructor Summary |
ExampleOPACFmt()
Constructs a ExampleOPACFmt object. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
ExampleOPACFmt
public ExampleOPACFmt()
- Constructs a ExampleOPACFmt object.
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