[EP-tech] Re: EPrints File Upload Screen (Show Options)

Alan.Stiles alan.stiles at open.ac.uk
Fri Nov 13 11:04:04 GMT 2015

Hi Greg,
The bit of code controlling the expand/collapse of documents (in 3.3.10) is in package EPrints::Plugin::InputForm::Component::Documents  in the render_content function.
Around line 270  (https://github.com/eprints/eprints/blob/3.3/perl_lib/EPrints/Plugin/InputForm/Component/Documents.pm#L270) it determines whether or not to collapse (hide) the document section.   If you override this function to set $hide to always be 0 (zero) then your document sections should always be expanded.  (I assume you frequently have more than one document per eprint as otherwise it should appear expanded by default)


From: eprints-tech-bounces at ecs.soton.ac.uk [mailto:eprints-tech-bounces at ecs.soton.ac.uk] On Behalf Of Greg Whitney
Sent: 12 November 2015 17:33
To: eprints-tech at ecs.soton.ac.uk
Subject: [EP-tech] EPrints File Upload Screen (Show Options)


We are using EPrints 3.3.13.

On the Document Upload screen, is there a way to have the "Show Options" fields expanded automatically after uploading a file??  This way, our staff would be able to see the file metafields which they have to enter, without expanding the Plus sign. One less click is always useful !!

I tried looking at the EPrints documentation and couldn't find any answer or hints....


Greg Whitney
Polytechnique Montréal Library

-- The Open University is incorporated by Royal Charter (RC 000391), an exempt charity in England & Wales and a charity registered in Scotland (SC 038302). The Open University is authorised and regulated by the Financial Conduct Authority.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ecs.soton.ac.uk/pipermail/eprints-tech/attachments/20151113/5fcff1f1/attachment-0001.html 

More information about the Eprints-tech mailing list