[EP-tech] Citation on raw db-field value?!

Gilles Fournié gilles.fournie at cirad.fr
Tue Jul 4 07:45:58 BST 2017


I think "as_string" may be what you are looking for.



    This strips any EPrints MetaField type from the value and returns a
    plain STRING. This is used to suppress the normal render function.
    So that, for example, a value from a set field will be printed as
    the database value, rather than the phrase associated with it.

Hope this helps

Le 03/07/2017 à 16:06, jens.vieler at id.uzh.ch a écrit :
> Hi List
> read the wiki, tested a couple of combinations... can't figure it out:
> is there a way to get the raw db-field value of an single eprint 
> inside a citation without getting the phrase?
> I want to use the language_mult field to flag out language changes 
> within the latest tool, using my special citation (Probably i have to 
> cut it from 3-char to 2-char... howto!?).
> Cheers
>  Jens
> -- 
> Jens Vieler
> Zentrale Informatik
> Universität Zürich
> Stampfenbachstrasse 73
> CH-8006 Zürich
> mail:  jens.vieler at id.uzh.ch
> phone: +41 44 63 56777
> http://www.id.uzh.ch
> *** 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/

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ecs.soton.ac.uk/pipermail/eprints-tech/attachments/20170704/6021c8cd/attachment.html 

More information about the Eprints-tech mailing list