use of bibtex.dom.BibtexString in project mycore by MyCoRe-Org.
the class MCRPagesTransformer method buildField.
void buildField(BibtexAbstractValue value, Element parent) {
String pages = ((BibtexString) value).getContent();
pages = normalizeValue(pages);
Element part = buildElement(xPath, null, parent);
part.addContent(MCRMODSPagesHelper.buildExtentPages(pages));
}
use of bibtex.dom.BibtexString in project mycore by MyCoRe-Org.
the class MCRField2XPathTransformer method buildField.
void buildField(BibtexAbstractValue value, Element parent) {
String content = ((BibtexString) value).getContent();
content = normalizeValue(content);
buildElement(xPath, content, parent);
}
use of bibtex.dom.BibtexString in project mycore by MyCoRe-Org.
the class MCRUnsupportedFieldTransformer method buildField.
void buildField(BibtexAbstractValue value, Element parent) {
MCRMessageLogger.logMessage("Field " + field + " is unsupported: " + value.toString().replaceAll("\\s+", " "));
String xPath = "mods:extension/field[@name='" + field + "']" + MCRFieldTransformer.AS_NEW_ELEMENT;
String content = ((BibtexString) value).getContent();
content = normalizeValue(content);
buildElement(xPath, content, parent);
}
use of bibtex.dom.BibtexString in project mycore by MyCoRe-Org.
the class MCRYearTransformer method buildField.
void buildField(BibtexAbstractValue value, Element parent) {
String content = ((BibtexString) value).getContent();
content = normalizeValue(content);
String year = getFourDigitYear(content);
if (year != null) {
buildElement(xPath, year, parent);
} else {
MCRMessageLogger.logMessage("Field year: No 4-digit year found: " + content, parent);
}
}
Aggregations