[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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



The as_string(<value>) method will output the raw value of a field 
rather than the rendered version.

There's also a substr(<value>,<offset>,<length>) which may prove useful 
here.

Not all the methods got documented on 
<https://wiki.eprints.org/w/EPScript> but you can find the full list of 
method names, at least, as the run_METHOD subs in
<https://github.com/eprints/eprints/blob/3.3/perl_lib/EPrints/Script/Compiled.pm>



On 03/07/2017 15:06, jens.vieler at id.uzh.ch wrote:
>
> 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/

-- 
Christopher Gutteridge -- http://users.ecs.soton.ac.uk/cjg

University of Southampton Open Data Service: http://data.southampton.ac.uk/
You should read our Web & Data Innovation blog: http://blogs.ecs.soton.ac.uk/webteam/

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