EPrints Technical Mailing List Archive

See the EPrints wiki for instructions on how to join this mailing list and related information.

Message: #05516


< Previous (by date) | Next (by date) > | < Previous (in thread) | Next (in thread) > | Messages - Most Recent First | Threads - Most Recent First

Re: [EP-tech] Importer issue with RIOXX plugin?


Hmm,

 

I tried that originally (setting $ds to buffer) and got an error that eprint_status wasn’t set…  Trying it now doesn’t throw that error at me but still fails with the BackCompatibility.pm line 443 error.

 

When I stop EPrints::DataObj trying to write History files for RIOXX2 fields the errors don’t occur.

 

 

From: eprints-tech-bounces@ecs.soton.ac.uk [mailto:eprints-tech-bounces@ecs.soton.ac.uk] On Behalf Of Adam Field
Sent: 22 March 2016 15:11
To: eprints-tech@ecs.soton.ac.uk
Subject: Re: [EP-tech] Importer issue with RIOXX plugin?

 

What happens if you do:

 

my $ds = $repo->dataset('buffer');

$eprint = $ds->create_dataobj ();

 

(that's off the top of my head, but your way of doing it doesn't look like a best practice)



See https://github.com/eprints/eprints/blob/3.3/perl_lib/EPrints/Plugin/Screen/NewEPrint.pm#L42 for how the NewEPrint plugin creates it (though it does use an old API call)



Jisc

Adam Field
SHERPA services analyst developer

 

From: <eprints-tech-bounces@ecs.soton.ac.uk> on behalf of "Alan.Stiles" <alan.stiles@open.ac.uk>
Reply-To: "
eprints-tech@ecs.soton.ac.uk" <eprints-tech@ecs.soton.ac.uk>
Date: Tuesday, 22 March 2016 10:54
To: "
eprints-tech@ecs.soton.ac.uk" <eprints-tech@ecs.soton.ac.uk>
Subject: [EP-tech] Importer issue with RIOXX plugin?

 

Hi all,

Has anyone else encountered a problem with adding new eprints using

 

                        $ep_data{'eprint_status'}="buffer";

                        my $eprint = $ds->create_dataobj( \%ep_data );

 

On a system with the RIOXX2 plugin installed?

 

It seemed to be falling over with a

 

Can't call method "current_repository" on an undefined value at /opt/eprints3/perl_lib/EPrints/BackCompatibility.pm line 443.

 

When trying to process this loop:

https://github.com/eprints/eprints/blob/3.3/perl_lib/EPrints/DataObj.pm#L1639

 

for a RIOXX2 field, although I see that the MetaField::RIOXX2::to_sax method does nothing…

 

when I removed the plugin the new creations process worked fine, but with the RIOXX2 plugin installed it just fails on the same record and line every time.

 

Cheers,

 

Alan Stiles

Digital Repository Developer

Library Services, The Open University

 

-- The Open University is incorporated by Royal Charter (RC 000391), an exempt charity in England & Wales and a charity registered in Scotland (SC 038302). The Open University is authorised and regulated by the Financial Conduct Authority.


Jisc is a registered charity (number 1149740) and a company limited by guarantee which is registered in England under Company No. 5747339, VAT No. GB 197 0632 86. Jisc’s registered office is: One Castlepark, Tower Hill, Bristol, BS2 0JA. T 0203 697 5800.

Jisc Services Limited is a wholly owned Jisc subsidiary and a company limited by guarantee which is registered in England under company number 2881024, VAT number GB 197 0632 86. The registered office is: One Castle Park, Tower Hill, Bristol BS2 0JA. T 0203 697 5800.