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"/>-->
Creating an external data source:
Open OLE home page (http://dev.ole.kuali.org/portal.do or http://tst.ole.kuali.org/portal.do)
Navigate to Admin tab
Click “External Data Source” link in “Global Configuration Settings” section.
Create an external data source. E.g. Domain name=lx2.loc.gov, port=210, Description=Library of Congress Online Catalog
For more info about external data sources, please refer to http://www.loc.gov/z3950/lcserver.html
Importing records from external source:
Navigate to Describe tab in OLE home page.
Click “Import Bib” link.
Select tab “Import from External Data Source”.
Select the source which you are created.
Enter the search criteria and click “Search” button.