EPrints Technical Mailing List Archive
Message: #00671
< Previous (by date) | Next (by date) > | < Previous (in thread) | Next (in thread) > | Messages - Most Recent First | Threads - Most Recent First
[EP-tech] Re: question about update an eprint on cli
- To: eprints-tech@ecs.soton.ac.uk
- Subject: [EP-tech] Re: question about update an eprint on cli
- From: Ulf Laube <ulf.laube@ontochem.com>
- Date: Mon, 4 Jun 2012 08:37:03 +0200
Thanks Tim, that's what I'm looking for. best regards Ulf Am Freitag 01 Juni 2012 17:10:07 schrieb Tim Brody: > On 01/06/12 15:45, Ulf Laube wrote: > > Hi all, > > > > in a perl script I can create an EPrint with > > EPrints::DataObj::EPrint::create > > > > Is there a EPrint update function based on $eprint->get_id ? > > I could not find it in EPrints::DataObj::EPrint. > > Do you mean retrieving an eprint? > > $eprint = $repo->dataset( "eprint" )->dataobj( $eprintid ); > ... make changes > $eprint->commit; > > In recent versions of EPrints there are "update()" and "clear()" > methods, which make it easier to update existing records without > overwriting core data. > > You should check the perldoc on DataSet.pm and DataObj.pm. > > All the best, > Tim. > *** Options: http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech > *** Archive: http://www.eprints.org/tech.php/ > *** EPrints community wiki: http://wiki.eprints.org/ -- OntoChem GmbH Heinrich-Damerow-Str. 4 06120 Halle (Saale) Germany Tel. +49-345-478047-4 Fax: +49-345-478047-1 HRB 215461 Amtsgericht Stendal; USt-IdNr.: DE246232735
- References:
- [EP-tech] question about update an eprint on cli
- From: Ulf Laube <ulf.laube@ontochem.com>
- [EP-tech] Re: question about update an eprint on cli
- From: Tim Brody <tdb2@ecs.soton.ac.uk>
- [EP-tech] question about update an eprint on cli
- Prev by Date: [EP-tech] Re: Request a copy for large documents
- Next by Date: [EP-tech] EPrints system error - Cant't locate URI/Find.pm in @INC
- Previous by thread: [EP-tech] Re: question about update an eprint on cli
- Next by thread: [EP-tech] EPrints system error - Cant't locate URI/Find.pm in @INC
- Index(es):