mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-07 01:54:22 +00:00
fix crossref BTE configuration
This commit is contained in:
@@ -59,7 +59,7 @@ public class CrossRefUtils
|
||||
String itemType = doi != null ? XMLUtils.getElementAttribute(dataRoot,
|
||||
"doi", "type") : "unspecified";
|
||||
if (itemType != null)
|
||||
record.addValue("itemType", new StringValue(itemType));
|
||||
record.addValue("doiType", new StringValue(itemType));
|
||||
|
||||
List<Element> identifier = XMLUtils.getElementList(dataRoot, "issn");
|
||||
for (Element ident : identifier)
|
||||
@@ -69,24 +69,38 @@ public class CrossRefUtils
|
||||
{
|
||||
String issn = ident.getTextContent().trim();
|
||||
if (issn != null)
|
||||
record.addValue("issn", new StringValue(issn));
|
||||
record.addValue("printISSN", new StringValue(issn));
|
||||
}
|
||||
else
|
||||
{
|
||||
String eissn = ident.getTextContent().trim();
|
||||
if (eissn != null)
|
||||
record.addValue("eissn", new StringValue(eissn));
|
||||
record.addValue("electronicISSN", new StringValue(eissn));
|
||||
}
|
||||
}
|
||||
|
||||
List<Element> identifierisbn = XMLUtils.getElementList(dataRoot, "isbn");
|
||||
for (Element ident : identifierisbn)
|
||||
{
|
||||
if ("print".equalsIgnoreCase(ident.getAttribute("type"))
|
||||
|| StringUtils.isNotBlank(ident.getAttribute("type")))
|
||||
{
|
||||
String issn = ident.getTextContent().trim();
|
||||
if (issn != null)
|
||||
record.addValue("printISBN", new StringValue(issn));
|
||||
}
|
||||
else
|
||||
{
|
||||
String eissn = ident.getTextContent().trim();
|
||||
if (eissn != null)
|
||||
record.addValue("electronicISBN", new StringValue(eissn));
|
||||
}
|
||||
}
|
||||
|
||||
String isbn = XMLUtils.getElementValue(dataRoot, "isbn");
|
||||
if (isbn != null)
|
||||
record.addValue("isbn", new StringValue(isbn));
|
||||
|
||||
String editionNumber = XMLUtils.getElementValue(dataRoot,
|
||||
"editionNumber");
|
||||
if (editionNumber != null)
|
||||
record.addValue("volume", new StringValue(editionNumber));
|
||||
record.addValue("editionNumber", new StringValue(editionNumber));
|
||||
|
||||
String volume = XMLUtils.getElementValue(dataRoot, "volume");
|
||||
if (volume != null)
|
||||
|
@@ -413,14 +413,27 @@
|
||||
<entry key="journalTitle" value="journal" />
|
||||
<entry key="doi" value="doi" />
|
||||
<entry key="authors" value="authors" />
|
||||
<entry key="issn" value="jissn" />
|
||||
<entry key="eissn" value="jeissn" />
|
||||
<entry key="printISSN" value="jissn" />
|
||||
<entry key="electronicISSN" value="jeissn" />
|
||||
<entry key="year" value="issued" />
|
||||
<entry key="articleTitle" value="title" />
|
||||
<entry key="volume" value="volume" />
|
||||
<entry key="issue" value="issue" />
|
||||
<entry key="firstPage" value="firstpage" />
|
||||
<entry key="lastPage" value="lastpage" />
|
||||
<entry key="printISBN" value="pisbn" />
|
||||
<entry key="electronicISBN" value="eisbn" />
|
||||
<entry key="editionNumber" value="editionnumber" />
|
||||
<entry key="seriesTitle" value="seriestitle" />
|
||||
<entry key="volumeTitle" value="volumetitle" />
|
||||
<entry key="editors" value="editors" />
|
||||
<entry key="translators" value="translators" />
|
||||
<entry key="chairs" value="chairs" />
|
||||
<entry key="doyType" value="subtype" />
|
||||
<!-- Not used -->
|
||||
<!--
|
||||
<entry key="publicationType" value="" />
|
||||
-->
|
||||
</map>
|
||||
</constructor-arg>
|
||||
</bean>
|
||||
|
Reference in New Issue
Block a user