ORG.oclc.fmts.rules
Class AddILLOclcNum
java.lang.Object
|
+--ORG.oclc.fmts.rules.RuleUtil
|
+--ORG.oclc.fmts.rules.AddILLOclcNum
- public class AddILLOclcNum
- extends RuleUtil
- implements DisplayRule
The AddILLOclcNum class is a record formatting rule that
retrieves an OCLC Number from the input record and saves it
in the user state for an Interlibrary Loan Request(ILL).
This rule will filter any non-numeric characters from the
data before saving it.
The parameters this rule recognizes are:
IllEntityThe name of the entity to store the
OCLC number in. "BibVerification".
beforeLabelWrapperNameThe name of the data wrapper
entry that has the string to append before the field display label,
default, if not specified, is the wrapper element named
beforeFieldLabel
.
afterLabelWrapperNameThe name of the data wrapper
entry that has the string to append after the field display label, where
the default, if not specified, is the wrapper element named
afterFieldLabel
.
fieldTrailerWrapperNameThe name of the data wrapper
entry that has the string to append after the field data, where
the default, if not specified, is the wrapper element named
fieldTrailer
.
- See Also:
RuleSpec
,
FormatBerUtil
,
DisplayUserData
Method Summary |
void |
doRule(DataDir dir,
int recordNumber,
RuleSpec ruleSpec,
FormatBerUtil fmtUtil,
DisplayUserData userData)
Retrieves the OCLC number from the input record from the
fields specified in the RuleSpec, filters the data, stores it
in the user state object, and also adds the name to the formatting
buffer if a display label is provided for in the RuleSpec. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
AddILLOclcNum
public AddILLOclcNum()
doRule
public void doRule(DataDir dir,
int recordNumber,
RuleSpec ruleSpec,
FormatBerUtil fmtUtil,
DisplayUserData userData)
- Retrieves the OCLC number from the input record from the
fields specified in the RuleSpec, filters the data, stores it
in the user state object, and also adds the name to the formatting
buffer if a display label is provided for in the RuleSpec.
- Specified by:
- doRule in interface DisplayRule
- Parameters:
dir
- the DataDir object containing the data recordrecordNumber
- the record number of the item within the listruleSpec
- the field specification for locating the datafmtUtil
- the FormatBerUtil object containing the current formatted
data buffer and the formatting utilities.userData
- the DisplayUserData object containing the user's
context for formatting the data records.