Package de.gwdg.metadataqa.marc.dao
Class DataField
java.lang.Object
de.gwdg.metadataqa.marc.dao.DataField
- All Implemented Interfaces:
Extractable,Serializable
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionDataField(String tag, String input, MarcVersion version) DataField(String tag, String ind1, String ind2, MarcVersion marcVersion) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddFieldIndexer(FieldIndexer indexer) voidaddUnhandledSubfields(String code) format()getInd1()getInd2()getKeyGenerator(SolrFieldType type) getKeyValuePairs(SolrFieldType type, MarcVersion marcVersion) getSubfield(String code) getTag()voidparseSubfields(String content) resolveIndicator(Indicator indicatorDefinition, String indicator) Returns the label of the indicator if it can be found in the definition.voidsetBibliographicRecord(BibliographicRecord bibliographicRecord) voidsetOccurrence(String occurrence) voidsetSubfields(List<MarcSubfield> subfields) Sets subfields without indexing themtoString()
-
Constructor Details
-
DataField
-
DataField
-
DataField
-
DataField
-
DataField
-
DataField
-
DataField
-
-
Method Details
-
parseSubfields
-
getBibliographicRecord
-
setBibliographicRecord
-
indexSubfields
public void indexSubfields() -
getHumanReadableMap
-
simpleFormat
-
format
-
formatAsText
-
formatAsMarc
-
formatForIndex
-
getKeyValuePairs
- Specified by:
getKeyValuePairsin interfaceExtractable
-
getKeyValuePairs
- Specified by:
getKeyValuePairsin interfaceExtractable
-
getKeyValuePairs
- Specified by:
getKeyValuePairsin interfaceExtractable
-
addFieldIndexer
-
getFieldIndexers
-
resolveInd1
-
resolveInd2
-
resolveIndicator
Returns the label of the indicator if it can be found in the definition. Otherwise, returns the indicator code used.- Parameters:
indicatorDefinition- The definition of the indicator.indicator- The indicator code.- Returns:
- The label or the indicator code depending on the existence of the indicator in the definition.
-
getTag
-
getInd1
-
getInd2
-
getSubfield
-
getSubfields
-
setSubfields
Sets subfields without indexing them- Parameters:
subfields- Subfields to set
-
getDefinition
-
getKeyGenerator
-
addUnhandledSubfields
-
getUnhandledSubfields
-
getOccurrence
-
setOccurrence
-
getTagWithOccurrence
-
toString
-