ORG.oclc.fmts.rules
Class AddFSMedlineSubjects
java.lang.Object
|
+--ORG.oclc.fmts.rules.RuleUtil
|
+--ORG.oclc.fmts.rules.AddFSMedlineSubjects
- public class AddFSMedlineSubjects
- extends RuleUtil
- implements DisplayRule
The AddFSMedlineSubjects class is the record formatting rule
that creates a formatted string for Subject fields in the
FirstSearc Z39.50 Medline Database using the field specifications in
the RuleSpec and the HTML or Text specifications defined
in the DisplayUserData object to delimit the data found in the
input record.
The data in the Marc 650 Field of the medline records is
not indexed as returned, and this method breaks apart the data
and created phrase subject anchors on data that is indexed
in the database.
The parameters recognized by this rule are:
commandThe QUERY command to use when there is an
index specified in the descriptiotn to create a query, where the default,
if not specified, is &StyleTable.defaults.QueryCommand;
.
cleanUpQueryA true
/false
value indicating whether any filtering
should be done by the formatting class on the data that goes into the
query anchor. The default value is true
.
nextPage
The next= page in the anchor, where the default, if not specified, is
&StyleTable.pages.searchResults;
.
badPageThe bad= page in the anchor, where the default,
if not specified, is &StyleTable.pages.badquery;
.
queryWidgets
Widgets to add to the query, where the default, if not specified is
entitytoprecno=1&entitycurrecno=1&numrecs=&srchnumrecs;
.
addTreeDisplayAnchorA true
/false
value indicating whether to add the link to show the thesuarus tree, where
the default value is false
.
targetThe target value for the anchor where the default,
if not specified, is &StyleTable.targets.searchResults;
.
saveInEntityNameThe user state entity name to
store the formatted string created by this rule. If not specified,
the data is appended to the formatting buffer.
dupEntityNameThe entity name containing the formatted
duplicate data field. If this parameter is supplied,
any data held in the input entity name is appended to the formatting
buffer and is removed from the user state.
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
.
The special wrapper data entries that are recognized:
lineBreakthe line break character
- See Also:
RuleSpec
,
FormatBerUtil
,
DisplayUserData
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
AddFSMedlineSubjects
public AddFSMedlineSubjects()
doRule
public void doRule(DataDir dir,
int recordNumber,
RuleSpec ruleSpec,
FormatBerUtil fmtUtil,
DisplayUserData userData)
- Appends formatted record data for the input record according to the
specifications found in the input RuleSpec object.
- 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.