Open SiteSearch 4.1.1
Final

ORG.oclc.fmts.obi
Class MarcPapersFrstMultiFullFmt

java.lang.Object
  |
  +--ORG.oclc.fmts.WebZFormatter
        |
        +--ORG.oclc.fmts.obi.MarcArticleFmt
              |
              +--ORG.oclc.fmts.obi.MarcPapersFrstMultiFullFmt

public class MarcPapersFrstMultiFullFmt
extends MarcArticleFmt

The MarcPapersFrstMultiFullFmt class formats records from the Papers First database for display in the WebZ interface. The records will be displayed in a full format.

MarcPapersFrstMultiFullFmt uses the userObject and a Vector of records to return a formatted String that contains the HTML to display. This class is an extension of WebZFormatter (through MarcArticleFmt) which implements the RecordFormatter interface. That interface requires a doFormat method to do the work on the input userObject and a Vector of DataDirs.

Successful execution of MarcPapersFrstMultiFullFmt results in HTML that can be displayed in the WebZ interface. Unsuccessful execution will result in a null String being returned.


Fields inherited from class ORG.oclc.fmts.obi.MarcArticleFmt
abstractTag, author, authorAllSubFields, authorFields, authorHotlinkAllTag, authorHotlinkTag, authorIndexTag, authorNotHotSubFields, authorSeparator, authorTerminator, begLabel, bufSize, CODENTag, countryTag, databaseNoTag, documentTypeTag, endLabel, from, fromField1, fromField2, fromFields, fromISSNTag, fromSubFields1, fromSubFields2, govDocNoTag, header, includeField, includeFieldTerminator, includeSubFields, includeSubFieldTerminator, ISBNTag, ISSN, ISSNTag, languageTag, linkData, meetingFields, meetingTag1, meetingTag2, noteField, noteSubFields, orgFields, orgTag1, orgTag2, publisherTag, recordTypeTag, subjectField600, subjectField610, subjectField650, subjectField651, subjectField690, subjectFields, subjectIndexTag, subjectSubFieldTerminator, title, trailer, yearTag
 
Fields inherited from class ORG.oclc.fmts.WebZFormatter
bookMarkFont, context, currecno, defaultTextFont, fmtUtil, fullrecno, j, otherWidgets, queryBad, queryNext, queryTarget, resultset, smallTextFont, styles, tempRecords, toprecno, user
 
Constructor Summary
MarcPapersFrstMultiFullFmt()
           Constructs a MarcPapersFrstMultiFullFmt object.
 
Method Summary
protected  void addMultiTitleBookMark(DataDir dir, int currecno, String fields, String fields2, String label)
           Adds a title with bookmark widgit that includes a record number (left aligned)
protected  void addThisFrom(DataDir dir, boolean useLabel)
           Formats the from fields and adds them to the HTML Specifications for the from fields: 773/20,4,7
protected  void addThisMeeting(DataDir dir, boolean useLabel)
           Formats the meetings and adds them to the HTML Specifications for the meeting fields: 773/19,1
 String doFormat(Object userObject, Vector records)
           Formats the records for display in the WebZ interface from the Papers First database
 
Methods inherited from class ORG.oclc.fmts.obi.MarcArticleFmt
addAbstract, addAuthor, addCODEN, addCountry, addDatabaseNo, addDocumentType, addFrom, addGovDocNo, addIncludes, addISBN, addISSN, addLanguage, addLibraries, addMeeting, addNotes, addOrganization, addPublisher, addRecordType, addSubjects, addTitleBookMark, addYear, labelMaker
 
Methods inherited from class ORG.oclc.fmts.WebZFormatter
addBookMark, addBookMark, addBookMark, init
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MarcPapersFrstMultiFullFmt

public MarcPapersFrstMultiFullFmt()

Constructs a MarcPapersFrstMultiFullFmt object.

Method Detail

doFormat

public String doFormat(Object userObject,
                       Vector records)

Formats the records for display in the WebZ interface from the Papers First database

Parameters:
userObject - the UserStateObject object for the current user.
records - a vector of bookmark records to be formatted
Returns:
String contains the HTML representation of the records
Overrides:
doFormat in class WebZFormatter

addMultiTitleBookMark

protected final void addMultiTitleBookMark(DataDir dir,
                                           int currecno,
                                           String fields,
                                           String fields2,
                                           String label)

Adds a title with bookmark widgit that includes a record number (left aligned)

Parameters:
dir - a DataDir that contains the bookmark record to be formatted
recno - an integer that contains the current record number for display of the the title.
fields - the primary set of BER tags to use as the title
fields2 - the secondary set of BER tags to use as the title
Returns:
void

addThisMeeting

protected final void addThisMeeting(DataDir dir,
                                    boolean useLabel)

Formats the meetings and adds them to the HTML

Specifications for the meeting fields:
773/19,1
Parameters:
dir - a DataDir that contains the record to be formatted
useLabel - a boolean that specifies whether or not a label is needed
Returns:
void

addThisFrom

protected final void addThisFrom(DataDir dir,
                                 boolean useLabel)

Formats the from fields and adds them to the HTML

Specifications for the from fields:
773/20,4,7
Parameters:
dir - a DataDir that contains the record to be formatted
useLabel - a boolean that specifies whether or not a label is needed
Returns:
void

Open SiteSearch 4.1.1
Final