use of org.marc4j.marc.DataField in project RecordManager2 by moravianlibrary.
the class OsobnostiRegionuXmlStreamReader method addField856.
private void addField856(String url) {
if (url.equals(URL_MAN) || url.equals(URL_WOMAN))
return;
DataField df = factory.newDataField("856", '4', ' ');
newSubfield(df, 'u', url);
record.addVariableField(df);
}
use of org.marc4j.marc.DataField in project RecordManager2 by moravianlibrary.
the class OsobnostiRegionuXmlStreamReader method addField670.
private void addField670(String sources) {
for (String source : sources.split(NEW_LINE)) {
DataField df = factory.newDataField("670", ' ', ' ');
newSubfield(df, 'a', source);
record.addVariableField(df);
}
}
use of org.marc4j.marc.DataField in project RecordManager2 by moravianlibrary.
the class SfxJibXmlStreamReader method generateFields996.
private void generateFields996(Set<String> years, int volumeFirstYear) {
years.forEach(y -> {
DataField df = factory.newDataField("996", ' ', ' ', "y", y);
if (volumeFirstYear > 0) {
df.addSubfield(factory.newSubfield('v', String.valueOf(Integer.valueOf(y) - volumeFirstYear + 1)));
}
record.addVariableField(df);
});
}
use of org.marc4j.marc.DataField in project RecordManager2 by moravianlibrary.
the class ZakonyProLidiMetadataXmlStreamReader method addField6559.
private void addField6559(String textA, String text2) {
DataField df = factory.newDataField("655", '9', ' ');
newSubfield(df, 'a', textA);
newSubfield(df, '2', text2);
record.addVariableField(df);
}
use of org.marc4j.marc.DataField in project RecordManager2 by moravianlibrary.
the class ZakonyProLidiMetadataXmlStreamReader method addField110.
private void addField110() {
DataField df = factory.newDataField("110", '1', ' ');
newSubfield(df, 'a', TEXT_110A);
newSubfield(df, '7', TEXT_1107);
record.addVariableField(df);
}
Aggregations