All Packages Class Hierarchy This Package Previous Next Index
Class edu.vt.marian.Document.PresentableMarcVarField
java.lang.Object
|
+----edu.vt.marian.Document.MarcVarField
|
+----edu.vt.marian.Document.PresentableMarcVarField
- public class PresentableMarcVarField
- extends MarcVarField
An enhanced version of a "variable field" in a US MARC record, capable
of supporting flexible presentation to a user.
-
isConfName
-
-
isCorpName
-
-
isImprint
-
-
isNote
-
-
isPersName
-
-
isSubject
-
-
isTitle
-
-
urlPrefix
- Prefix (notably including substitution points for WebGate) used in
constructing URLs implementing "Hot Links" in presented records as
new searches.
-
PresentableMarcVarField(int, EntityMap, Debug)
- Create a PresentableMarcVarField object with no subfields from a field ID
and a pair of indicator characters.
-
presentLong(int, BufferedWriter)
- Default "long" presentation for any variable field: use all subfields
with a minimal separator.
-
presentShort(int, BufferedWriter)
- Default "short" presentation for any variable field: just use the 'a' subfield.
-
presentUrl(String, BufferedWriter)
- Certain chars (the space, for example), cannot appear in URLs.
isTitle
protected boolean isTitle
isSubject
protected boolean isSubject
isNote
protected boolean isNote
isPersName
protected boolean isPersName
isCorpName
protected boolean isCorpName
isConfName
protected boolean isConfName
isImprint
protected boolean isImprint
urlPrefix
protected static String urlPrefix
- Prefix (notably including substitution points for WebGate) used in
constructing URLs implementing "Hot Links" in presented records as
new searches.
PresentableMarcVarField
public PresentableMarcVarField(int id,
EntityMap xMap,
Debug debug)
- Create a PresentableMarcVarField object with no subfields from a field ID
and a pair of indicator characters. Used when creating
a PresentableMarcVarField from an XML or Atomic format record, e.g.
- Parameters:
- id - --- this will be the id of this object
- data - -- this string contains the indicators and all the
subfields. The format is specified in US MARC.
- debug - -- used for debugging
presentUrl
protected void presentUrl(String urlBody,
BufferedWriter out) throws IOException
- Certain chars (the space, for example), cannot appear in URLs.
Instead, we use the hex value for that particular character
to display it in a URL.
e.g. "Program Files" becomes "Program%20Files" for a URL.
presentShort
public int presentShort(int markupType,
BufferedWriter out) throws IOException
- Default "short" presentation for any variable field: just use the 'a' subfield.
- Parameters:
- markupType - see edu.vt.marian.common.DigInfObj
- out - A BufferedWriter (presumably String or OutputStream) to present on.
- Returns:
- OK -- everything jake.
IO_ERROR or PARSE_ERROR -- problems.
presentLong
public int presentLong(int markupType,
BufferedWriter out) throws IOException
- Default "long" presentation for any variable field: use all subfields
with a minimal separator.
- Parameters:
- markupType - see edu.vt.marian.common.DigInfObj
- out - A BufferedWriter (presumably String or OutputStream) to present on.
- Returns:
- OK -- everything jake.
IO_ERROR or PARSE_ERROR -- problems.
All Packages Class Hierarchy This Package Previous Next Index