EPrints Technical Mailing List Archive
Message: #02377
< Previous (by date) | Next (by date) > | < Previous (in thread) | Next (in thread) > | Messages - Most Recent First | Threads - Most Recent First
[EP-tech] Re: OAI harvest in 3.3.12
- To: eprints-tech@ecs.soton.ac.uk
- Subject: [EP-tech] Re: OAI harvest in 3.3.12
- From: Ranju Upadhyay <Ranju.Upadhyay@nuim.ie>
- Date: Thu, 07 Nov 2013 10:21:58 +0000
Hi Yuri, I think there were a few things I did Firstly in the OAI_RIAN_DC I changed the metadata prefix $self->{metadataPrefix} = "rian_dc"; (instead of oai_dc) Further I was still pointing to Export::DC, changed that to Export::OAI_RIAN_Export and then called our own subroutine for conversion (defined OAI_RIAN_Export)in instead of convert_dataobj sub xml_dataobj { my( $plugin, $dataobj ) = @_; # my $main_dc_plugin = $plugin->{session}->plugin( "Export::DC" ); my $main_dc_plugin = $plugin->{session}->plugin( "Export::OAI_RIAN_Export" ); # my $data = $main_dc_plugin->convert_dataobj( $dataobj ); my $data = $main_dc_plugin->convert_dc( $dataobj ); and after epadmin reload and apache restart that seem to work! Thanks Ranju Upadhyay National University of Ireland Maynooth -----Original Message----- From: eprints-tech-bounces@ecs.soton.ac.uk [mailto:eprints-tech-bounces@ecs.soton.ac.uk] On Behalf Of Yuri Sent: 06 November 2013 12:04 To: eprints-tech@ecs.soton.ac.uk Subject: [EP-tech] Re: OAI harvest in 3.3.12 Il 06/11/2013 11:05, Ranju Upadhyay ha scritto: > > Hi List, > > I need to add a new meatdata format for oai harvesting . The meatadata > is basically DC with slight modification and called RIAN_DC (to > confirm with Ireland's national portal for oai harvesting > http://www.rian.ie/) in the previous versions we had achieved this by > creating a plugin in which we did: > > Created two files called > > OAI_RIAN_DC.pm > > OAI_RIAN_Export.pm > > At ......./perl_lib/EPrints/Plugin/Export/ > > The OAI_RIAN_DC.pm was based on OAI_DC.pm except for the name change > and in OAI_RIAN_Export.pm we had defined our export format. > > And within oai.pl I had simply added a new metadata format as > > "rian_dc" => "OAI_RIAN_DC" > > Along with other formats. > > All of this had allowed us to expose our metadata in our format called > "rian_dc" which would then be harvested by rian.ie. > > I am trying to do the same in 3.3.12 and that does not quite work. One > thing I noticed is , the oai.pl file used to have a list of metadata > name and description which seem to have been changed so I tried to add > mine as {custom_sets} but that did not work either. > > Can I get some help please? > take a look to the openaire plugin, it does the same. I think now you've to use a filter and not a custom set. > Regards, > > Ranju Upadhyay > > National University of Ireland Maynooth. > > > > *** Options: > http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech > *** Archive: http://www.eprints.org/tech.php/ > *** EPrints community wiki: http://wiki.eprints.org/ *** Options: http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech *** Archive: http://www.eprints.org/tech.php/ *** EPrints community wiki: http://wiki.eprints.org/
- References:
- [EP-tech] OAI harvest in 3.3.12
- From: Ranju Upadhyay <Ranju.Upadhyay@nuim.ie>
- [EP-tech] Re: OAI harvest in 3.3.12
- From: Yuri <yurj@alfa.it>
- [EP-tech] OAI harvest in 3.3.12
- Prev by Date: [EP-tech] Re: editing default pins
- Next by Date: [EP-tech] Re: generate_static
- Previous by thread: [EP-tech] Re: OAI harvest in 3.3.12
- Next by thread: [EP-tech] IRstat
- Index(es):