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

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



Thank you Christopher and Gilles. :-)

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



Von:	Christopher Gutteridge <cjg at ecs.soton.ac.uk>
An:	eprints-tech at ecs.soton.ac.uk, jens.vieler at id.uzh.ch
Datum:	04.07.2017 11:01
Betreff:	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
<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/20170704/050e2d2a/attachment.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: graycol.gif
Type: image/gif
Size: 105 bytes
Desc: not available
Url : http://mailman.ecs.soton.ac.uk/pipermail/eprints-tech/attachments/20170704/050e2d2a/attachment.gif