EPrints Technical Mailing List Archive

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

Message: #09718


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

[EP-tech] TR: reuse or reactive a deleted eprintID


CAUTION: This e-mail originated outside the University of Southampton.

De : Beaudoin, Mario
Envoyé : 24 mai 2024 09:12
À : David R Newman <drn@ecs.soton.ac.uk>; eprints-tech-request@ecs.soton.ac.uk
Objet : RE: reuse or reactive a deleted eprintID

 

Hi,

thank a lot it works

I have to add the tag <eprints> </eprints> at the xml file “3.xml” change user ID to mine.

And, as eprints user

/opt/eprints3/bin/import archiveID XML --update --enable-import-fields --force --verbose --verbose /opt/eprints3/archives/archiveID/documents/disk0/00/00/01/27/revisions/3.xml

 

Mario

De : David R Newman <drn@ecs.soton.ac.uk>
Envoyé : 23 mai 2024 20:13
À : Beaudoin, Mario <Mario.Beaudoin@uqtr.ca>; eprints-tech-request@ecs.soton.ac.uk
Objet : Re: reuse or reactive a deleted eprintID

 

Hi Mario,

I believe you can use the EPRINTS_PATH/bin/import script to import a record using EP3XML, which includes an eprintid element set to 127.  You may also need to use the --update flag on this command but if you cannot find a record with eprintid in the database table, then this flag should not be needed.  If you have fully deleted eprint 127,  I think it is likely the EP3XML revision files will also have been deleted but it is worth checking if they still exist under EPRINTS_PATH/archives/ARCHIVE_ID/documents/disk0/00/00/01/27/revisions/ then you can just use the highest number revision under this directory in the import.  E.g.

EPRINTS_PATH/bin/import ARCHIVE_ID eprint XML EPRINTS_PATH/archives/ARCHIVE_ID/documents/disk0/00/00/01/27/revisions/MAX_REVISION.xml

If the revision files do not still exist you will need to build this EP3XML file yourself.  I would advise taking a copy of revision file for another item and modifying it to include the metadata from 127.  I assume you have some way of retrieving the metadata you need to fill in.

It may be possible to do this using EP3XML import from Manage Deposits -> Import but I have a feeling this will not allow you to import an eprint with a specific eprint ID.

Regards

David Newman

On 23/05/2024 9:22 pm, Beaudoin, Mario wrote:

CAUTION: This e-mail originated outside the University of Southampton.

CAUTION: This e-mail originated outside the University of Southampton.

Hi,

 

We delete a eprintid  127 (Mydomain.uqtr.ca/127)  but it vas not the good one to delete.

Now the eprintid 127 are not on the eprint table.

 

select eprintid, eprint_status from eprint where eprintid =127

empty

 

Is it possible to recreate an eprint with specific eprintID or reactive a deleted eprint

A lot of paper is published with the link to the pdf associate with id 127 but now it a 404 error.

How can I reuse the id 127? We have everything to redefine metadata and  pdf.

 

Mario