EPrints Technical Mailing List Archive
Message: #08208
< Previous (by date) | Next (by date) > | < Previous (in thread) | Next (in thread) > | Messages - Most Recent First | Threads - Most Recent First
Re: [EP-tech] Adding file to eprints record using perl script results in "In PDF Document: You need to select a file to be shown first"
- To: "eprints-tech@ecs.soton.ac.uk" <eprints-tech@ecs.soton.ac.uk>, "Patrick Camilleri" <patrik.camilleri@gmail.com>
- Subject: Re: [EP-tech] Adding file to eprints record using perl script results in "In PDF Document: You need to select a file to be shown first"
- From: John Salter <J.Salter@leeds.ac.uk>
- Date: Thu, 18 Jun 2020 11:34:38 +0000
Yay!
J I'm not sure why your other approach didn't work.
Looking at the code, it might have worked if you did it this way: $doc->set_main( $fileobj ); The set_main method can (or should be able to) take a filename, or a file-object. Cheers, From: eprints-tech-bounces@ecs.soton.ac.uk [mailto:eprints-tech-bounces@ecs.soton.ac.uk]
On Behalf Of Patrick Camilleri via Eprints-tech Hi John, I can't thank you enough! It worked! The strange thing is that I had previously tried: $doc->set_main($filename); which I assumed is the same thing as $doc->set_value("main", $filename); but that didn't work. Thanks again, Patrick On Thu, Jun 18, 2020 at 11:50 AM John Salter <J.Salter@leeds.ac.uk> wrote:
|
- Follow-Ups:
- Re: [EP-tech] Adding file to eprints record using perl script results in "In PDF Document: You need to select a file to be shown first"
- From: John Salter <J.Salter@leeds.ac.uk>
- Re: [EP-tech] Adding file to eprints record using perl script results in "In PDF Document: You need to select a file to be shown first"
- References:
- [EP-tech] Adding file to eprints record using perl script results in "In PDF Document: You need to select a file to be shown first"
- From: Patrick Camilleri <patrik.camilleri@gmail.com>
- Re: [EP-tech] Adding file to eprints record using perl script results in "In PDF Document: You need to select a file to be shown first"
- From: John Salter <J.Salter@leeds.ac.uk>
- Re: [EP-tech] Adding file to eprints record using perl script results in "In PDF Document: You need to select a file to be shown first"
- From: Patrick Camilleri <patrik.camilleri@gmail.com>
- Re: [EP-tech] Adding file to eprints record using perl script results in "In PDF Document: You need to select a file to be shown first"
- From: John Salter <J.Salter@leeds.ac.uk>
- [EP-tech] Adding file to eprints record using perl script results in "In PDF Document: You need to select a file to be shown first"
- Prev by Date: Re: [EP-tech] Adding file to eprints record using perl script results in "In PDF Document: You need to select a file to be shown first"
- Next by Date: Re: [EP-tech] DSpace Harvester and OAI_Bibliography.pm
- Previous by thread: [EP-tech] Sort view with creators_name and corp_creators
- Index(es):