EPrints Technical Mailing List Archive

Message: #06679

< Previous (by date) | Next (by date) > | < Previous (in thread) | Next (in thread) > | Messages - Most Recent First | Threads - Most Recent First

Re: [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

On 03/07/2017 15:06, jens.vieler@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!?).

Jens Vieler
Zentrale Informatik
Universität Zürich
Stampfenbachstrasse 73
CH-8006 Zürich

mail:  jens.vieler@id.uzh.ch
phone: +41 44 63 56777

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