<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="Generator" content="Microsoft Word 14 (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:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";
        color:black;
        mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
pre
        {mso-style-priority:99;
        mso-style-link:"Préformaté HTML Car";
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New";
        color:black;}
tt
        {mso-style-priority:99;
        font-family:"Courier New";}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
        {mso-style-priority:99;
        mso-style-link:"Texte de bulles Car";
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:8.0pt;
        font-family:"Tahoma","sans-serif";
        color:black;
        mso-fareast-language:EN-US;}
span.PrformatHTMLCar
        {mso-style-name:"Préformaté HTML Car";
        mso-style-priority:99;
        mso-style-link:"Préformaté HTML";
        font-family:"Courier New";
        mso-fareast-language:FR-CA;}
span.TextedebullesCar
        {mso-style-name:"Texte de bulles Car";
        mso-style-priority:99;
        mso-style-link:"Texte de bulles";
        font-family:"Tahoma","sans-serif";}
span.EmailStyle22
        {mso-style-type:personal;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
span.EmailStyle23
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.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><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body bgcolor="white" lang="FR-CA" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span style="color:#1F497D">Hi,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-CA" style="color:#1F497D">Thanks a lot for helping me. The filters does the job as expected. Only the selected documents are now disclosed. <o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-CA" style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-CA" style="color:#1F497D">I will come back soon with some other Eprints related questions.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-CA" style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-CA" style="color:#1F497D">Regards<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-CA" style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-CA" style="color:#1F497D">Jean<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-CA" style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">p.s: <o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal">"Reperage" ~ "Feuilletage" plutot?. <o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-CA">Rep : I am still scanning the entire repository here. For sure, I will have to review several things. <br>
<br>
</span><span lang="EN-CA" style="color:#1F497D"><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-CA"><o:p> </o:p></span></p>
<div>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b><span lang="EN-CA" style="font-size:10.0pt;font-family:"Tahoma","sans-serif";color:windowtext;mso-fareast-language:FR-CA">De :</span></b><span lang="EN-CA" style="font-size:10.0pt;font-family:"Tahoma","sans-serif";color:windowtext;mso-fareast-language:FR-CA">
eprints-tech-bounces@ecs.soton.ac.uk [mailto:eprints-tech-bounces@ecs.soton.ac.uk]
<b>De la part de</b> Sebastien Francois<br>
<b>Envoyé </b></span><b><span lang="FR" style="font-size:10.0pt;font-family:"Tahoma","sans-serif";color:windowtext;mso-fareast-language:FR-CA">:</span></b><span lang="FR" style="font-size:10.0pt;font-family:"Tahoma","sans-serif";color:windowtext;mso-fareast-language:FR-CA">
21 février 2014 04:42<br>
<b>À :</b> eprints-tech@ecs.soton.ac.uk<br>
<b>Objet :</b> [EP-tech] Re: Browse by document type - How to filter and display only some types of documents<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<p class="MsoNormal">Hello,<br>
<br>
You might be able to use "filters" in a view to achieve that:<br>
<br>
<br>
<tt><span style="font-size:10.0pt"> filters => [</span></tt><span style="font-size:10.0pt;font-family:"Courier New""><br>
<tt> { meta_fields => [ "type" ], value => "article book monograph", describe => 0 }</tt><br>
<tt> ],</tt></span><br>
<br>
Or a variation of the above.<br>
<br>
Seb.<br>
<br>
PS: "Reperage" ~ "Feuilletage" plutot?<br>
<br>
On 19/02/14 17:12, Fotsing, Jean Lazare wrote:<o:p></o:p></p>
</div>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<p class="MsoNormal"><span lang="EN-CA">Hi all, </span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-CA"> Just below is the code I have defined in views.pl in order to display the types of documents.</span><o:p></o:p></p>
<p class="MsoNormal" style="background:white"><span lang="EN-CA" style="font-size:10.0pt">{</span><o:p></o:p></p>
<p class="MsoNormal" style="background:white"><span lang="EN-CA" style="font-size:10.0pt"> id=>"doctype",
</span><o:p></o:p></p>
<p class="MsoNormal" style="background:white"><span lang="EN-CA" style="font-size:10.0pt"> allow_null => 1,</span><o:p></o:p></p>
<p class="MsoNormal" style="background:white"><span lang="EN-CA" style="font-size:10.0pt"> hideempty => 1,</span><o:p></o:p></p>
<p class="MsoNormal" style="background:white"><span lang="EN-CA" style="font-size:10.0pt"> menus => [
</span><o:p></o:p></p>
<p class="MsoNormal" style="background:white"><span lang="EN-CA" style="font-size:10.0pt"> {
</span><o:p></o:p></p>
<p class="MsoNormal" style="background:white"><span lang="EN-CA" style="font-size:10.0pt"> fields => ["type;quiet"],
</span><o:p></o:p></p>
<p class="MsoNormal" style="background:white"><span lang="EN-CA" style="font-size:10.0pt"> },</span><o:p></o:p></p>
<p class="MsoNormal" style="background:white"><span lang="EN-CA" style="font-size:10.0pt">
</span><o:p></o:p></p>
<p class="MsoNormal" style="background:white"><span lang="EN-CA" style="font-size:10.0pt"> ],
</span><o:p></o:p></p>
<p class="MsoNormal" style="background:white"><span lang="EN-CA" style="font-size:10.0pt"> order=>"-date",</span><o:p></o:p></p>
<p class="MsoNormal" style="background:white"><span lang="EN-CA" style="font-size:10.0pt"> variations => [</span><o:p></o:p></p>
<p class="MsoNormal" style="background:white"><span lang="EN-CA" style="font-size:10.0pt"> "creators_name;first_letter",</span><o:p></o:p></p>
<p class="MsoNormal" style="background:white"><span lang="EN-CA" style="font-size:10.0pt"> "divisions",</span><o:p></o:p></p>
<p class="MsoNormal" style="background:white"><span lang="EN-CA" style="font-size:10.0pt"> "thesis_type",</span><o:p></o:p></p>
<p class="MsoNormal" style="background:white"><span lang="EN-CA" style="font-size:10.0pt"> "date",</span><o:p></o:p></p>
<p class="MsoNormal" style="background:white"><span lang="EN-CA" style="font-size:10.0pt"> "DEFAULT"
</span><o:p></o:p></p>
<p class="MsoNormal" style="background:white"><span lang="EN-CA" style="font-size:10.0pt"> </span><span style="font-size:10.0pt">],</span><o:p></o:p></p>
<p class="MsoNormal" style="background:white"><span style="font-size:10.0pt">
</span><o:p></o:p></p>
<p class="MsoNormal" style="background:white"><span style="font-size:10.0pt"> },</span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-CA"> </span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-CA">Here is the display:</span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-CA"> </span><o:p></o:p></p>
<p class="MsoNormal"><span style="mso-fareast-language:FR-CA"><img width="523" height="166" id="Image_x0020_1" src="cid:image001.png@01CF2EF1.29B27130"></span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-CA">There are 5 types of documents. I would very much like to filter and display only some types of these documents, such as Article, Livre, Monographie.</span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-CA">Please, just tell/show me which pieces I should insert into the above code section in order to reach my goal.</span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-CA"> </span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-CA">Regards</span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-CA"> </span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-CA">John</span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-CA"> </span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:12.0pt;font-family:"Times New Roman","serif";mso-fareast-language:FR-CA"><o:p> </o:p></span></p>
</blockquote>
<p class="MsoNormal"><span style="font-size:12.0pt;font-family:"Times New Roman","serif";mso-fareast-language:FR-CA"><o:p> </o:p></span></p>
</div>
</body>
</html>