EPrints Technical Mailing List Archive

See the EPrints wiki for instructions on how to join this mailing list and related information.

Message: #04606


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

[EP-tech] Re: Advanced Search Page render of large number of choices (such as language).


Hmmm....  I've explored the codebase, and it looks like there's a 'search_input_style' property.  It looks like for a 'set' type, it defaults to 'checkbox'.  This is tested for here:

	https://github.com/eprints/eprints/blob/3.3/perl_lib/EPrints/MetaField/Set.pm#L413

...I don't think it's tested for anywhere else.  In your field definition, add:

	'search_input_style' => 'default',

...and see what happens.  You'll have to reload the configuration or restart the webserver.

--
Adam Field
Business Relationship Manager and Community Lead
EPrints Services
+44 (0)23 8059 8814





On 31 Aug 2015, at 17:48, Brian D. Gregg wrote:

> All,
>  
> I’ve been asked to find out if there is a “better way” to render a field that has a large number of choices such as the language field that may have upwards of 140 languages all listed on the advanced search page as each individually with a check box.   What I understand we are looking for is if there is a way to have this as a single select drop-down box or a multi-select drop-down box so that the languages field doesn’t take up so much real estate on the page.
>  
> Any hints suggestions would be welcome.
>  
> Thanks.
>  
> Brian D. Gregg
> Solutions Architect | Manager Systems Development
> University of Pittsburgh | University Library System
> Address: 7500 Thomas Blvd.  Room 129 Pittsburgh, PA 15208
> Tel: (412) 648-3264 | Email: bdgregg@pitt.edu | Fax: (412) 648-3585
>  
> *** Options: http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech
> *** Archive: http://www.eprints.org/tech.php/
> *** EPrints community wiki: http://wiki.eprints.org/
> *** EPrints developers Forum: http://forum.eprints.org/