SOAP::ISIWoK::Sword - Push records from ISI WoK to a SWORD endpoint


SOAP-ISIWoK documentation  | view source Contained in the SOAP-ISIWoK distribution.

Index


NAME

Top

SOAP::ISIWoK::Sword - Push records from ISI WoK to a SWORD endpoint

SYNOPSIS

Top

	use SOAP::ISIWoK::Sword;

	$isi = SOAP::ISIWoK->new();

	# search ISI
	$xml = $isi->search( $query, max => 10 );

	# sword client
	$ua = SOAP::ISIWoK::Sword->new();

	# set the sword endpoint
	$ua->sword( "http://foo/sword-app" );
	$ua->sword_auth( $username, $password );

	# populate the available collections
	$r = $ua->request_collections();

	# add a stylesheet to our pool
	$uri = $ua->parse_stylesheet( $filename );

	# pick a collection to submit to
	$collections = $ua->collections();
	$collection = $collections->[0];

	# transform ISI XML to SWORD records
	$recs = $collection->transform( $xml );

	# post a record to the SWORD collection
	$r = $collection->submit( $recs->[0] );

METHODS

Top


SOAP-ISIWoK documentation  | view source Contained in the SOAP-ISIWoK distribution.