EPrints Technical Mailing List Archive

Message: #09451


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

Re: [EP-tech] Reviving a deleted Eprint ID


CAUTION: This e-mail originated outside the University of Southampton.
Hi James,
If you've got the most recent revision file that has all the metadata in it:
  • take a copy of the file
  • possibly remove the <documents> section if there is one - and if the document IDs are not important to retain
  • import that on the command line using bin/import - but passing it the flag "--enable-import-fields"
  • re-add the documents as normal
There may be other options in the bin/import that would be better - or worth knowing about - e.g. '--migration' (which sets the above too).

Obviously, test on a test instance first etc.

Cheers,
John

From: eprints-tech-request@ecs.soton.ac.uk <eprints-tech-request@ecs.soton.ac.uk> on behalf of James Kerwin <jkerwin2101@gmail.com>
Sent: 17 October 2023 08:22
To: eprints-tech@ecs.soton.ac.uk <eprints-tech@ecs.soton.ac.uk>
Subject: [EP-tech] Reviving a deleted Eprint ID
 
CAUTION: This e-mail originated outside the University of Southampton.
CAUTION: This e-mail originated outside the University of Southampton.
Morning everyone,

A user created a record on our data repository. They didn't deposit so did not get a DOI, though they are familiar with the process and were able to work out what the DOI would be, attach it to their work and then submitted the work.

Unfortunately they managed to accidentally delete the record from their EPrints inbox and it has totally disappeared, except for the revisions files in the document storage directory. I know there are other ways I could preserve the DOI and associate it with a new record, however last night I attempted to reuse the same ID that was deleted. I manually entered it into the EPrint database along with some other bits such as the "dir" where it stores files etc.

Long story short, it hasn't worked. The file has uploaded, but when I attempt to navigate to this record in the review buffer I get this message in the web browser:

Can't call method "xml" on an undefined value at (eval 61) line 29.

ModPerl::Util::exit: (120000) exit was called at /usr/share/eprints/perl_lib/EPrints/Repository.pm line 1932

Obviously some critical value(s) isn't/aren't set. I feel like this is a bit of a fool's errand, but can anyone advise me on how to fix this? It's not a huge problem, I can just remove any mention of the record from the EPrints database and try another method, but I am curious to see why it isn't working.

Thanks,
James