EPrints Technical Mailing List Archive

Message: #05100

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

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

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@ecs.soton.ac.uk [mailto:eprints-tech-bounces@ecs.soton.ac.uk] On Behalf Of Greg Whitney
Sent: 12 November 2015 17:33
To: eprints-tech@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.