<html><head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Title" content="">
<meta name="Keywords" content="">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><style><!--
/* Font Definitions */
@font-face
        {font-family:"Courier New";
        panose-1:2 7 3 9 2 2 5 2 4 4;}
@font-face
        {font-family:Sylfaen;
        panose-1:0 0 0 0 0 0 0 0 0 0;}
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Corbel;
        panose-1:2 11 5 3 2 2 4 2 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:Calibri;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:#0563C1;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:#954F72;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal;
        font-family:"Sylfaen","serif";
        color:windowtext;
        font-weight:normal;
        font-style:normal;
        text-decoration:none none;}
span.EmailStyle18
        {mso-style-type:personal-reply;
        font-family:Calibri;
        color:windowtext;}
span.msoIns
        {mso-style-type:export-only;
        mso-style-name:"";
        text-decoration:underline;
        color:teal;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 90.0pt 72.0pt 90.0pt;}
div.WordSection1
        {page:WordSection1;}
--></style>
</head><body bgcolor="white" lang="EN-US" link="#0563C1" vlink="#954F72">
<div class="WordSection1">
<p class="MsoNormal">Whenever I’ve implemented this, I’ve always used automatic fields. See
<a href="http://wiki.eprints.org/w/Training_Video:Automatic_Fields">http://wiki.eprints.org/w/Training_Video:Automatic_Fields</a> -- 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.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<p class="MsoNormal"><span style="font-family:"Times New Roman";color:black"> <o:p></o:p></span></p>
<table class="MsoNormalTable" border="0" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td valign="top" style="border:none;border-top:solid #2C3841 1.0pt;padding:0cm 0cm 3.0pt 0cm">
<p class="MsoNormal"><a href="http://www.jisc.ac.uk/"><span style="font-size:12.0pt;font-family:"Times New Roman";color:blue;text-decoration:none"><img border="0" width="60" height="35" id="_x0000_i1026" src="cid:image001.png@01D22ADB.7D2F1E10"></span></a><o:p></o:p></p>
</td>
</tr>
<tr>
<td valign="top" style="padding:7.5pt 0cm 0cm 0cm">
<p class="MsoNormal"><b><span style="font-size:12.0pt;font-family:Corbel;color:#2C3841">Adam Field</span></b><span style="font-size:12.0pt;font-family:"Times New Roman""><br>
</span><span style="font-size:12.0pt;font-family:Corbel;color:#2C3841">SHERPA services analyst developer</span><o:p></o:p></p>
</td>
</tr>
</tbody>
</table>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b><span style="color:black">From: </span></b><span style="color:black"><eprints-tech-bounces@ecs.soton.ac.uk> on behalf of Robin Sylvestre <robin.sylvestre@polymtl.ca><br>
<b>Reply-To: </b>"eprints-tech@ecs.soton.ac.uk" <eprints-tech@ecs.soton.ac.uk><br>
<b>Date: </b>Wednesday, 19 October 2016 17:50<br>
<b>To: </b>"eprints-tech@ecs.soton.ac.uk" <eprints-tech@ecs.soton.ac.uk><br>
<b>Subject: </b>[EP-tech] Hiding some document types from search page</span><span style="font-size:12.0pt;color:black"><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:"Times New Roman""><o:p> </o:p></span></p>
</div>
<p class="MsoNormal"><span lang="EN-CA" style="font-size:12.0pt;font-family:"Sylfaen","serif"">Hello!</span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-CA" style="font-size:12.0pt;font-family:"Sylfaen","serif""> </span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-CA" style="font-size:12.0pt;font-family:"Sylfaen","serif"">We would like to hide a document type from the list of available types (checkboxes) that appear on a search page.
</span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-CA" style="font-size:12.0pt;font-family:"Sylfaen","serif"">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.</span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-CA" style="font-size:12.0pt;font-family:"Sylfaen","serif""> </span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-CA" style="font-size:12.0pt;font-family:"Sylfaen","serif"">Looking at the code for our basic search page, I don’t seem to have much control over the output. Any idea?</span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-CA" style="font-size:12.0pt;font-family:"Sylfaen","serif""> </span><o:p></o:p></p>
<p class="MsoNormal" style="text-autospace:none"><span lang="EN-CA" style="font-family:"Courier New"">$c->{search}->{simple} = {</span><o:p></o:p></p>
<p class="MsoNormal" style="text-autospace:none"><span lang="EN-CA" style="font-family:"Courier New""> search_fields => [</span><o:p></o:p></p>
<p class="MsoNormal" style="text-autospace:none"><span lang="EN-CA" style="font-family:"Courier New"">
</span><span style="font-family:"Courier New"">{</span><o:p></o:p></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-family:"Courier New""> id => "q",</span><o:p></o:p></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-family:"Courier New""> meta_fields => [</span><o:p></o:p></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-family:"Courier New""> "documents",</span><o:p></o:p></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-family:"Courier New"">
</span><span lang="EN-CA" style="font-family:"Courier New"">"title",</span><o:p></o:p></p>
<p class="MsoNormal" style="text-autospace:none"><span lang="EN-CA" style="font-family:"Courier New""> "abstract",</span><o:p></o:p></p>
<p class="MsoNormal" style="text-autospace:none"><span lang="EN-CA" style="font-family:"Courier New""> "creators_name",</span><o:p></o:p></p>
<p class="MsoNormal" style="text-autospace:none"><span lang="EN-CA" style="font-family:"Courier New""> "publication",</span><o:p></o:p></p>
<p class="MsoNormal" style="text-autospace:none"><span lang="EN-CA" style="font-family:"Courier New""> ]</span><o:p></o:p></p>
<p class="MsoNormal" style="text-autospace:none"><span lang="EN-CA" style="font-family:"Courier New""> },</span><o:p></o:p></p>
<p class="MsoNormal" style="text-autospace:none"><span lang="EN-CA" style="font-family:"Courier New""> { meta_fields => [ "date" ] },</span><o:p></o:p></p>
<p class="MsoNormal" style="text-autospace:none"><span lang="EN-CA" style="font-family:"Courier New"">
<span style="background:yellow;mso-highlight:yellow">{ meta_fields => [ "type" ] },</span></span><o:p></o:p></p>
<p class="MsoNormal" style="text-autospace:none"><span lang="EN-CA" style="font-family:"Courier New""> { meta_fields => [ "divisions" ] },</span><o:p></o:p></p>
<p class="MsoNormal" style="text-autospace:none"><span lang="EN-CA" style="font-family:"Courier New""> ],</span><o:p></o:p></p>
<p class="MsoNormal" style="text-autospace:none"><span lang="EN-CA" style="font-family:"Courier New""> preamble_phrase => "cgi/search:preamble",</span><o:p></o:p></p>
<p class="MsoNormal" style="text-autospace:none"><span lang="EN-CA" style="font-family:"Courier New""> title_phrase => "cgi/search:simple_search",</span><o:p></o:p></p>
<p class="MsoNormal" style="text-autospace:none"><span lang="EN-CA" style="font-family:"Courier New""> citation => "result",</span><o:p></o:p></p>
<p class="MsoNormal" style="text-autospace:none"><span lang="EN-CA" style="font-family:"Courier New""> page_size => 20,</span><o:p></o:p></p>
<p class="MsoNormal" style="text-autospace:none"><span lang="EN-CA" style="font-family:"Courier New""> order_methods => {</span><o:p></o:p></p>
<p class="MsoNormal" style="text-autospace:none"><span lang="EN-CA" style="font-family:"Courier New""> "byyear" => "-date/creators_name/title",</span><o:p></o:p></p>
<p class="MsoNormal" style="text-autospace:none"><span lang="EN-CA" style="font-family:"Courier New""> "byyearoldest" => "date/creators_name/title",</span><o:p></o:p></p>
<p class="MsoNormal" style="text-autospace:none"><span lang="EN-CA" style="font-family:"Courier New""> "byname" => "creators_name/-date/title",
</span><o:p></o:p></p>
<p class="MsoNormal" style="text-autospace:none"><span lang="EN-CA" style="font-family:"Courier New""> "bytitle" => "title/creators_name/-date"</span><o:p></o:p></p>
<p class="MsoNormal" style="text-autospace:none"><span lang="EN-CA" style="font-family:"Courier New""> },</span><o:p></o:p></p>
<p class="MsoNormal" style="text-autospace:none"><span lang="EN-CA" style="font-family:"Courier New""> default_order => "byyear",</span><o:p></o:p></p>
<p class="MsoNormal" style="text-autospace:none"><span lang="EN-CA" style="font-family:"Courier New""> show_zero_results => 1,</span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-family:"Courier New"">}; </span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-CA" style="font-size:12.0pt;font-family:"Sylfaen","serif""> </span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-CA" style="font-size:12.0pt;font-family:"Sylfaen","serif""> </span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-CA" style="font-size:12.0pt;font-family:"Sylfaen","serif"">Thanks!</span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-CA" style="font-size:12.0pt;font-family:"Sylfaen","serif""> </span><o:p></o:p></p>
<p class="MsoNormal"><span style="mso-fareast-language:FR-CA"><img border="0" width="173" height="82" id="_x0000_i1025" src="http://www.polymtl.ca/sc/img/logoType/logoseul/gauche/polytechnique_gauche_cmyk.jpg" alt="ttp://www.polymtl.ca/sc/img/logoType/logoseul/gauche/polytechnique_gauche_cmyk.jpg"></span><o:p></o:p></p>
<p class="MsoNormal"><b><span style="color:black;mso-fareast-language:FR-CA">Robin Sylvestre</span></b><o:p></o:p></p>
<p class="MsoNormal"><span style="color:black;mso-fareast-language:FR-CA">Technicien en documentation</span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:black;mso-fareast-language:FR-CA">Services techniques et systèmes informatisés</span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:black;mso-fareast-language:FR-CA">Bibliothèque Louise-Lalonde-Lamarre</span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:black;mso-fareast-language:FR-CA">École Polytechnique de Montréal</span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:black;mso-fareast-language:FR-CA">Tél.: 514-340-4711 poste 3743</span><o:p></o:p></p>
</div>
<font size="1"> <font face="Corbel"> <br />
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.<br /><br />
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.
</font></font></body></html>