Make the following changes in OLE to enable searching of external datasources with Z39.50 protocol
Setting up external dependencies for jz3950 library for connecting to Z39.50 datasources.
- Get source code from https://jz3950.svn.sourceforge.net/svnroot/jz3950/trunk and build the jar file.
- Create maven dependency for the above created jar file using below command;
mvn install:install-file -DgroupId=net.sf.jz3950 -DartifactId=jz3950 -Dversion=1.0-SNAPSHOT -Dfile=<path_to_your_jar_file> -Dpackaging=jar -DgeneratePom=true
Changes in ole-docstore-search project
File pom.xml
Uncomment the following lines.
<!-- <dependency> <groupId>net.sf.jz3950</groupId> <artifactId>jz3950</artifactId> <version>1.0-SNAPSHOT</version> </dependency> <dependency> <groupId>org.jzkit</groupId> <artifactId>a2j</artifactId> <version>2.0.4</version> </dependency> -->
Class Z3950DataSource
Uncomment the code in this class.
Changes in ole project
Class ImportBibController
Uncomment the following line.
//List<String> results = externalDataSource.searchForBibs(searchParams,dataSourceConfig);
File ImportBibSearchPage.xml
Uncomment the commented line in the following snippet.
<bean id="search_button" parent="Uif-SecondaryActionButton-Small" p:methodToCall="search" p:actionLabel="Search"/> <!--p:methodToCall="search" p:actionLabel="Search" p:refreshId="ExternalSourceResults-Section"/>--> <!--<ref bean="ExternalSourceSearch-Buttons"/>--> <!--<ref bean="ExternalSourceResults-Section"/>--> <!--<ref bean="externalNext-Button"/>-->