Re: [EP-underground] - Multiple files in eprints
Baoping Zhang <[email protected]> Sat, 19 Oct 2002 16:37:21 -0400 (EDT)
| Newsgroups | gmane.comp.web.eprints.general |
|---|---|
| Message-ID | <[email protected]> |
I happened to work on this today. I checked the file
ArchiveRenderConfig.pm, and to my understanding, the following part
is supposed to show the links to multile files associated with this
eprint
====================================================
# Available documents
my @documents = $eprint->get_all_documents();
$p = $session->make_element( "p" );
$p->appendChild( $session->html_phrase( "page:fulltext" ) );
foreach( @documents )
{
if( $_->get_value( "format" ) eq "coverimage" )
{
$imagetd->appendChild( $session->make_element(
"img",
align=>"left",
src=>$_->get_url(),
alt=>$_->get_value( "formatdesc" ) ) );
next;
}
$p->appendChild( $session->make_element( "br" ) );
$p->appendChild( $_->render_citation_link() );
}
$docstd->appendChild( $p );
========================================================
But it only shows one link. The array @documents only contains one element
though. I logged into the database, and selected docid from the document
table with the eprintid which has multiple files, but only got one docid.
Should there be multiple docids? Did I do something wrong?
Thanks!
Baoping
On Tue, 15 Oct 2002, ePrints Support wrote:
> Oh. There are several solutions.
>
> The easiest is to make 4 documents, all type PDF with descriptions
> "part 1", "part 2" etc.
>
> A better solution would be to edit the renderer in ArchiveRenderConfig
> to do something clever. The generation of the "abstract" page is
> totally configurable but has a bit of a learning curve.
>
> On Tue, Oct 15, 2002 at 10:15:15 +0000, Belinda Weaver wrote:
> > Dear all
> > I sent this before but got no answer so am sending again in case
> > anyone has words of wisdom. Maybe it is not possible to do what I
> > want to do in which case I'll try a work-around the problem.
> >
> > I have been given a very large work for the archive here and had
> > to break it up into four PDF files so as not to crash computers that
> > tried to open it. However, despite uploading all four files, only one
> > file appears as a clickable link from the record, so it looks as if
> > there is only one file of 100 pages instead of four files totalling 600
> > plus altogether. Am I doing something wrong? Do I have to upload it
> > as four separate records, or is there a way to force the option of
> > displaying the four spearate PDFs? I marked the first PDF as
> > Shown First and assumed the others would follow in a list, but this
> > did not happen.
> > Any advice appreciated.
> > regards
> > Belinda
> > Belinda Weaver,
> > Co-ordinator, UQ E-Print Archive
> > University of Queensland Library
> > University of Queensland, Brisbane, Australia 4072.
> > Tel : +617 336 58281 Fax : +617 336 57930
> > Email : [email protected]
>
> --
>
> Christopher Gutteridge [email protected]
> ePrints2 Coder, Support and Stuff +44 23 8059 4833
>
>