Dear Lanxin,

On 01/16/2013 03:16 AM, Lanxin Ma wrote:
> 1. pictures have deferent sizes -- small, medium, large and high 
> definition or original size

You can update the "iconsize" parameters of the 
"Move_Photos_to_Storage" function in your photo submission workflow.
For eg. you can set:
180>,640>,1024>

> 2. user can download pictures of deferent sizes

Users will be able to download from the record page "/files" URL/tab,
or from the the file panel at the bottom of the page (depending on
your configuration). That comes out of the box. You can also create
your own format to achieve customized output. You will probably have
to create your own copy of bfe_photos.py.

> 3. a big picture is shown when click a samll picture

That comes out of the box. For more fancy display you can use one of 
the many existing Javascript (jQuery) libraries:
<http://google.com/?q=lightbox>

See also:
<http://www.mail-archive.com/[email protected]/msg00299.html>

> 4. when user download a high definition picture, they need to pass  
> authentication

There is no immediate support for this within Invenio: access rights
are currently applied to BibDoc, not at the level of individual 
sub-formats.

> What can I modify in order to do so ? Is it possibile for you to 
> provide  cern templates to me?

Unfortunately these templates would not work, as they make use of
some infrastructure available only at CERN. The sample videos/photos 
submissions and formats in Invenio are kind of attempts to port 
these CERN multimedia facilities to Invenio, in a completely integrated 
and scalable manner. There so many different ways one might want to 
display multimedia content that the chosen approach was to provide 
simple/basic sample templates and workflows in order to give admins the 
freedom to customize their installation starting from a reasonably 
intelligible example.

Finally note that contributions are welcome, in case you achieve a 
clean output that you think other Invenio users might like!

Best regards
-- 
Jerome Caffaro ** CERN Document Server ** <http://cds.cern.ch/>

Reply via email to