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?
- To: "eprints-tech@ecs.soton.ac.uk" <eprints-tech@ecs.soton.ac.uk>
- Subject: Re: [EP-tech] Importer issue with RIOXX plugin?
- From: "Alan.Stiles" <alan.stiles@open.ac.uk>
- Date: Tue, 22 Mar 2016 15:34:42 +0000
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 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)
From: <eprints-tech-bounces@ecs.soton.ac.uk> on behalf of "Alan.Stiles" <alan.stiles@open.ac.uk> 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.
|
- References:
- Re: [EP-tech] Importer issue with RIOXX plugin?
- From: Adam Field <Adam.Field@jisc.ac.uk>
- Re: [EP-tech] Importer issue with RIOXX plugin?
- Prev by Date: Re: [EP-tech] Importer issue with RIOXX plugin?
- Next by Date: [EP-tech] List subjects in different order on summary page
- Previous by thread: Re: [EP-tech] Importer issue with RIOXX plugin?
- Next by thread: [EP-tech] Errors after Shibboleth login
- Index(es):