[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[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 at ecs.soton.ac.uk [mailto:eprints-tech-bounces at ecs.soton.ac.uk] On Behalf Of Adam Field
Sent: 22 March 2016 15:11
To: eprints-tech at 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]<http://www.jisc.ac.uk/>

Adam Field
SHERPA services analyst developer


From: <eprints-tech-bounces at ecs.soton.ac.uk<mailto:eprints-tech-bounces at ecs.soton.ac.uk>> on behalf of "Alan.Stiles" <alan.stiles at open.ac.uk<mailto:alan.stiles at open.ac.uk>>
Reply-To: "eprints-tech at ecs.soton.ac.uk<mailto:eprints-tech at ecs.soton.ac.uk>" <eprints-tech at ecs.soton.ac.uk<mailto:eprints-tech at ecs.soton.ac.uk>>
Date: Tuesday, 22 March 2016 10:54
To: "eprints-tech at ecs.soton.ac.uk<mailto:eprints-tech at ecs.soton.ac.uk>" <eprints-tech at ecs.soton.ac.uk<mailto:eprints-tech at 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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ecs.soton.ac.uk/pipermail/eprints-tech/attachments/20160322/995f121a/attachment.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.png
Type: image/png
Size: 1264 bytes
Desc: image001.png
Url : http://mailman.ecs.soton.ac.uk/pipermail/eprints-tech/attachments/20160322/995f121a/attachment.png