[index] [prev] [next] [options] [help]
See the Contact page for how to subscribe and unsubscribe.

eprints_tech messages

Please note: this page shows emails that have been sent to the eprints_tech mailing list. Some of these may be spam emails we have failed to filter.

Re: [EP-tech] Filtering a view

From: Adam Field <af05v AT ecs.soton.ac.uk>
Date: Wed, 14 Dec 2016 23:24:14 +0000


Threading: [EP-tech] Filtering a view from Adam.Moore AT liverpool.ac.uk
      • This Message


Whenever I need to do something fancy with browse views, I create automatic 
fields and browse based on that.  There's a training video:

http://wiki.eprints.org/w/Training_Video:Automatic_Fields

Essentially, you create a new field, and copy the values you're interested in 
into that field, then browse on that field instead of the original one.

--
Adam Field

On 14 Dec 2016, at 13:34, Jean-Marie Le Bechec <Jean-Marie.LeBechec AT 
inp-toulouse.fr> wrote:

> Thanks john but It does not do the trick. I specify my need. I have this:
> 
> <1.png>
> 
> and i want something like in my view:
> 
> <3.png>
> 
> and not like (What I can do:)
> 
> <2.png>
> 
> All your suggestions are good to take!
> 
> Jean-Marie
> 
> 
> 
> Le 14/12/2016 à 13:45, John Salter a écrit :
>> Hi Jean-Marie,
>> I haven't tested this, but it might work…
>> In the view config, define a menu with the sub-field ('institution'), 
and 'allow_null' set to 0. Something like:
>>  
>> menus => [
>>   {
>>     fields => [ "creators_institution" ],
>>     allow_null => 0,
>>     …
>>   },
>>   {
>>     …
>>   },
>> }
>>  
>> Cheers,
>> John
>>  
>> PS (in case you don’t know) you can re-generate just one view using 
the '--view' option with bin/generate_views
>>  
>> From: eprints-tech-bounces AT ecs.soton.ac.uk 
[mailto:eprints-tech-bounces AT ecs.soton.ac.uk] On Behalf Of Jean-Marie Le 
Bechec
>> Sent: 14 December 2016 12:28
>> To: eprints-tech AT ecs.soton.ac.uk
>> Subject: [EP-tech] Filtering a view
>>  
>> Hello all,
>> 
>> I want to create an author index that only refers to authors whose 
institution field is filled :
>> 
>> <Mail Attachment.png>
>> 
>> How can we do that? I have seen the solution of Alan Stiles 
(http://www.eprints.org/tech.php/14651.html) but I can not manage to make it 
work. Maybe a problem with Eprints version? I work with eprints in version 
3.3.12.
>> 
>> Thank you for your help.
>> 
>> Jean-Marie
>> 
>> 
>> 
>> -- 
>>  
>> ***********************************************
>> Jean Marie Le Bechec
>> Service Commun de la Documentation
>> Responsable ingenierie documentaire
>> &
>> Direction du Systeme d'Information
>> Referent Etudes
>>  
>> Institut National Polytechnique de Toulouse
>> 6 allee Emile Monso - bp 34038 -
>> 31029 Toulouse cedex 4
>> Tel : 05 34 32 31 16
>> Tel Port : 06 40 81 35 68
>> Mail : lebechec AT inp-toulouse.fr
>> *********************************************** 
>> 
>> 
>> *** 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/
> 
> -- 
> 
> ***********************************************
> Jean Marie Le Bechec
> Service Commun de la Documentation
> Responsable ingenierie documentaire
> &
> Direction du Systeme d'Information
> Referent Etudes
> 
> Institut National Polytechnique de Toulouse
> 6 allee Emile Monso - bp 34038 -
> 31029 Toulouse cedex 4
> Tel : 05 34 32 31 16
> Tel Port : 06 40 81 35 68
> Mail : lebechec AT inp-toulouse.fr
> *********************************************** 
> *** 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/


ATTACHMENT: message.html!

*** 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/

[index] [prev] [next] [options] [help]