Search in sources :

Example 81 with DataField

use of org.marc4j.marc.DataField in project RecordManager2 by moravianlibrary.

the class ZakonyProLidiMetadataXmlStreamReader method addField856.

private void addField856() {
    DataField df = factory.newDataField("856", '4', '1');
    newSubfield(df, 'u', String.format(TEXT_856U, getAttr(ATTR_NAME_HREF)));
    newSubfield(df, 'y', TEXT_856Y);
    record.addVariableField(df);
}
Also used : DataField(org.marc4j.marc.DataField)

Example 82 with DataField

use of org.marc4j.marc.DataField in project RecordManager2 by moravianlibrary.

the class ZakonyProLidiMetadataXmlStreamReader method addField653.

private void addField653() {
    DataField df = factory.newDataField("653", '1', '6');
    newSubfield(df, 'a', getAttr(ATTR_NAME_DOC_TYPE));
    record.addVariableField(df);
}
Also used : DataField(org.marc4j.marc.DataField)

Aggregations

DataField (org.marc4j.marc.DataField)82 ArrayList (java.util.ArrayList)18 Subfield (org.marc4j.marc.Subfield)17 MarcRecord (cz.mzk.recordmanager.server.marc.MarcRecord)15 ControlField (org.marc4j.marc.ControlField)13 Record (org.marc4j.marc.Record)13 MarcRecordImpl (cz.mzk.recordmanager.server.marc.MarcRecordImpl)12 RecordImpl (cz.mzk.recordmanager.server.marc.marc4j.RecordImpl)11 List (java.util.List)11 TreeSet (java.util.TreeSet)11 Matcher (java.util.regex.Matcher)11 MarcFactory (org.marc4j.marc.MarcFactory)8 MarcFactoryImpl (cz.mzk.recordmanager.server.marc.marc4j.MarcFactoryImpl)6 ByteArrayInputStream (java.io.ByteArrayInputStream)5 NoDataException (cz.mzk.recordmanager.server.util.identifier.NoDataException)4 HarvestedRecord (cz.mzk.recordmanager.server.model.HarvestedRecord)3 IOException (java.io.IOException)3 XMLStreamException (javax.xml.stream.XMLStreamException)3 ImportConfiguration (cz.mzk.recordmanager.server.model.ImportConfiguration)2 ShortTitle (cz.mzk.recordmanager.server.model.ShortTitle)2