Skip to content

Commit

Permalink
Switch OAI-PMH harvester library
Browse files Browse the repository at this point in the history
  • Loading branch information
fsteeg committed Apr 20, 2021
1 parent e132278 commit d8f3afd
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
1 change: 1 addition & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ subprojects {
repositories {
mavenLocal()
mavenCentral()
maven { url 'https://jitpack.io' }
}
}

Expand Down
2 changes: 1 addition & 1 deletion metafacture-biblio/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ dependencies {
api project(':metafacture-framework')
implementation project(':metafacture-commons')
implementation project(':metafacture-flowcontrol')
implementation 'org.dspace:oclc-harvester2:0.1.12'
implementation 'com.github.hbz:oai-harvester2:master-SNAPSHOT'
implementation ('xalan:xalan:2.7.0') {
exclude group: 'xalan', module: 'serializer'
exclude group: 'xercesImpl', module: 'xercesImpl'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,18 +10,17 @@
import java.io.Reader;

import javax.xml.parsers.ParserConfigurationException;
import javax.xml.transform.TransformerException;
import javax.xml.xpath.XPathException;

import org.metafacture.framework.MetafactureException;
import org.metafacture.framework.ObjectReceiver;
import org.metafacture.framework.annotations.Description;
import org.metafacture.framework.annotations.In;
import org.metafacture.framework.annotations.Out;
import org.metafacture.framework.helpers.DefaultObjectPipe;
import org.oclc.oai.harvester2.app.RawWrite;
import org.xml.sax.SAXException;

import ORG.oclc.oai.harvester2.app.RawWrite;

/**
* Opens an OAI-PMH stream and passes a reader to the receiver.
*
Expand Down Expand Up @@ -111,10 +110,10 @@ public void process(final String baseUrl) {
e.printStackTrace();
} catch (SAXException e) {
e.printStackTrace();
} catch (TransformerException e) {
e.printStackTrace();
} catch (NoSuchFieldException e) {
e.printStackTrace();
} catch (XPathException e) {
e.printStackTrace();
}
try {
getReceiver().process(
Expand Down

0 comments on commit d8f3afd

Please sign in to comment.