[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[EP-tech] Re: EPrints File Upload Screen (Show Options)
- Subject: [EP-tech] Re: EPrints File Upload Screen (Show Options)
- From: alan.stiles at open.ac.uk (Alan.Stiles)
- Date: Fri, 13 Nov 2015 11:04:04 +0000
- In-reply-to: <EMEW3|09765ea1421c07668760c1e4c17958f5rABHXp14eprintsfirstname.lastname@example.org>
- References: <email@example.com> <EMEW3|09765ea1421c07668760c1e4c17958f5rABHXp14eprintsfirstname.lastname@example.org>
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....
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...