[EP-tech] Re: Browse by document type - How to filter and display only some types of documents

Sebastien Francois sf2 at ecs.soton.ac.uk
Fri Feb 21 09:41:40 GMT 2014


Hello,

You might be able to use "filters" in a view to achieve that:


                 filters => [
                         { meta_fields => [ "type" ], value => "article 
book monograph", describe => 0 }
                 ],

Or a variation of the above.

Seb.

PS: "Reperage" ~ "Feuilletage" plutot?

On 19/02/14 17:12, Fotsing, Jean Lazare wrote:
>
> Hi all,
>
>  Just below is the code I have defined in views.pl in order to display 
> the types of documents.
>
> {
>
>           id=>"doctype",
>
>           allow_null => 1,
>
>           hideempty => 1,
>
>              menus => [
>
>                {
>
>                  fields => ["type;quiet"],
>
>                },
>
>              ],
>
>              order=>"-date",
>
>                        variations => [
>
>   "creators_name;first_letter",
>
>                           "divisions",
>
>                           "thesis_type",
>
>                           "date",
>
>                           "DEFAULT"
>
> ],
>
>         },
>
> Here is the display:
>
> 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.
>
> Please, just tell/show  me which pieces I should insert into the above 
> code section in order to reach my goal.
>
> Regards
>
> John
>
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ecs.soton.ac.uk/pipermail/eprints-tech/attachments/20140221/a6894d07/attachment.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/png
Size: 8584 bytes
Desc: not available
Url : http://mailman.ecs.soton.ac.uk/pipermail/eprints-tech/attachments/20140221/a6894d07/attachment.png 


More information about the Eprints-tech mailing list