[EP-tech] OAI2 missing setSpec
Gernot Deinzer
Gernot.Deinzer at bibliothek.uni-regensburg.de
Thu Feb 26 07:37:52 GMT 2015
Hi,
the Bielefeld Academic Search Engine (BASE) brought my attention to an
issue regarding the output of the oai-interface using a request of the
type ListRecords.
Within one record the setSpec elements were just shown for sets (e.g.
subjects) but not for custom_sets like driver defined in oai.pl or in
other configuration files.
With an addition of the following lines of code in
perl_lib/EPrints/OpenArchives.pm also these sets are shown in requests
of type ListRecords
OpenArchives.pm
after line 146 ( at the end of the if( EPrints::Utils::is_set( $oai2 ) )
-statement )
$viewconf = $session->config( "oai","custom_sets" );
foreach my $info ( @{$viewconf} )
{
$header->appendChild( $session->render_data_element(
6,
"setSpec",
$info->{spec} ) );
}
Best,
Gernot
Dr. Gernot Deinzer
Universitätsbibliothek Regensburg
Open Access Beauftragter
Fachreferate Mathematik, Physik und Informatik
Raum: M202
Tel.: 0941 / 943-2759
E-Mail: gernot.deinzer at bibliothek.ur.de
pgp-public-key
http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x279777EF
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ecs.soton.ac.uk/pipermail/eprints-tech/attachments/20150226/6d45b07a/attachment.html
More information about the Eprints-tech
mailing list