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

[EP-tech] Hiding some document types from search page

Whenever I?ve implemented this, I?ve always used automatic fields.  See http://wiki.eprints.org/w/Training_Video:Automatic_Fields -- you need to create a new field (e.g. type_category) and then populate it automatically based on the type field, then add that field to the search form.  Note that the video does this with a browse view, but the principle is the same for a search.

[cid:image001.png at 01D22ADB.7D2F1E10]<http://www.jisc.ac.uk/>

Adam Field
SHERPA services analyst developer

From: <eprints-tech-bounces at ecs.soton.ac.uk> on behalf of Robin Sylvestre <robin.sylvestre at polymtl.ca>
Reply-To: "eprints-tech at ecs.soton.ac.uk" <eprints-tech at ecs.soton.ac.uk>
Date: Wednesday, 19 October 2016 17:50
To: "eprints-tech at ecs.soton.ac.uk" <eprints-tech at ecs.soton.ac.uk>
Subject: [EP-tech] Hiding some document types from search page


We would like to hide a document type from the list of available types (checkboxes) that appear on a search page.
Another option would be to group 2 item types under only one generic term, but only for the search page. Is that possible? We would prefer to keep them as separate types in the workflow.

Looking at the code for our basic search page, I don?t seem to have much control over the output. Any idea?

$c->{search}->{simple} =  {
    search_fields => [
               id => "q",
               meta_fields => [
          { meta_fields => [ "date" ] },
         { meta_fields => [ "type" ] },
         { meta_fields => [ "divisions" ] },
    preamble_phrase => "cgi/search:preamble",
    title_phrase => "cgi/search:simple_search",
    citation => "result",
    page_size => 20,
    order_methods => {
         "byyear"  => "-date/creators_name/title",
         "byyearoldest"  => "date/creators_name/title",
         "byname"   => "creators_name/-date/title",
          "bytitle"  => "title/creators_name/-date"
    default_order => "byyear",
    show_zero_results => 1,


Robin Sylvestre
Technicien en documentation
Services techniques et syst?mes informatis?s
Biblioth?que Louise-Lalonde-Lamarre
?cole Polytechnique de Montr?al
T?l.: 514-340-4711 poste 3743

Jisc is a registered charity (number 1149740) and a company limited by guarantee which is registered in England under Company No. 5747339, VAT No. GB 197 0632 86. Jisc?s registered office is: One Castlepark, Tower Hill, Bristol, BS2 0JA. T 0203 697 5800.

Jisc Services Limited is a wholly owned Jisc subsidiary and a company limited by guarantee which is registered in England under company number 2881024, VAT number GB 197 0632 86. The registered office is: One Castle Park, Tower Hill, Bristol BS2 0JA. T 0203 697 5800.  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ecs.soton.ac.uk/pipermail/eprints-tech/attachments/20161020/1ce5d0a3/attachment-0001.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.png
Type: image/png
Size: 1264 bytes
Desc: image001.png
Url : http://mailman.ecs.soton.ac.uk/pipermail/eprints-tech/attachments/20161020/1ce5d0a3/attachment-0001.png