EPrints Technical Mailing List Archive

Message: #00623


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

[EP-tech] question thumbmails/icons


Hi all,

we are adding docs onto an Eprints on follow way:

        $doc_file_name = basename( $doc_file );
        $doc = EPrints::DataObj::Document::create( $ep_session, $eprint );
        $doc->set_value( "format", "image/jpeg" );
        $doc->add_file( $doc_file, "$doc_file_name" );
        $doc->set_value( "main", $doc_file_name );
        $doc->commit;

Try to creating a thumbnail

        $doc->render_icon_link( %ep_doc_render_icon_link_opts );
        $doc->render_preview_link();

with  my %ep_doc_render_icon_link_opts = (
    new_window => 0,
    preview    => 1,
    public     => 1,
);

has no effect (no lightbox).

Any Ideas?

best 
Ulf
-- 
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