Skip to content

Commit 2fa964a

Browse files
committed
Merge #467 from branch '360-oaipmh' of github.com:metafacture/metafacture-core
2 parents c8ecbda + 384c854 commit 2fa964a

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

metafacture-biblio/build.gradle

+1-2
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,12 @@ dependencies {
2121
api project(':metafacture-framework')
2222
implementation project(':metafacture-commons')
2323
implementation project(':metafacture-flowcontrol')
24-
implementation 'org.dspace:oclc-harvester2:0.1.12'
24+
implementation 'org.dspace:oclc-harvester2:1.0.0'
2525
implementation ('xalan:xalan:2.7.0') {
2626
exclude group: 'xalan', module: 'serializer'
2727
exclude group: 'xercesImpl', module: 'xercesImpl'
2828
exclude group: 'xml-apis', module: 'xml-apis'
2929
}
30-
implementation 'log4j:log4j:1.2.17'
3130
testImplementation 'junit:junit:4.12'
3231
testImplementation 'org.mockito:mockito-core:2.5.5'
3332
}

metafacture-biblio/src/main/java/org/metafacture/biblio/OaiPmhOpener.java

+3-3
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
import org.metafacture.framework.annotations.Out;
1111
import org.metafacture.framework.helpers.DefaultObjectPipe;
1212

13-
import ORG.oclc.oai.harvester2.app.RawWrite;
13+
import org.oclc.oai.harvester2.app.RawWrite;
1414
import org.xml.sax.SAXException;
1515

1616
import java.io.ByteArrayInputStream;
@@ -19,7 +19,7 @@
1919
import java.io.InputStreamReader;
2020
import java.io.Reader;
2121
import javax.xml.parsers.ParserConfigurationException;
22-
import javax.xml.transform.TransformerException;
22+
import javax.xml.xpath.XPathException;
2323

2424
/**
2525
* Opens an OAI-PMH stream and passes a reader to the receiver.
@@ -111,7 +111,7 @@ public void process(final String baseUrl) {
111111
catch (final SAXException e) {
112112
e.printStackTrace();
113113
}
114-
catch (final TransformerException e) {
114+
catch (final XPathException e) {
115115
e.printStackTrace();
116116
}
117117
catch (final NoSuchFieldException e) {

0 commit comments

Comments
 (0)