[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[EP-tech] document option open by default in eprints upload tab


 ?here they requested me to have the options open by default for the 
document metadata when doing an upload (while creating a new eprint).

This are the changes I did:

Open perl_lib/EPrints/Plugin/InputForm/Component/Documents.pm (the same 
apply to 
lib/plugins/EPrints/Plugin/InputForm/Component/ReCollectDocuments.pm plugin)


my $content = $session->make_element( "div", id=>$doc_prefix."_opts", 
class=>"ep_upload_doc_content ".($hide?"":"ep_no_js") ); (switch "" and 

my $opts_toggle = $session->make_element( "a", onclick => 
false" ); (switch the behaviour)

my $s_options = $session->make_element( "div", 
id=>$doc_prefix."_opts_hide", class=>"ep_update_doc_options 
".($hide?"ep_hide":"") ); (switch the class hide<->show)

my $h_options = $session->make_element( "div", 
id=>$doc_prefix."_opts_show", class=>"ep_update_doc_options 
".($hide?"":"ep_hide") ); (switch the class hide<->show)

It should affect only the document in editing and only when you upload 
the file, not after you save the metadata. Any idea on how to make it 
works always (not just when uploading)?