You can do this using capitalizeTitle, but if this translator is for
inclusion with Zotero, we are phasing out the Framework and would likely
not take new FW translators. There are excellent code template
available, together with a number of helper functions that make writing
translators in plain js hardly more complex than using FW and you then
can use the entirety of JS. See
https://www.mediawiki.org/wiki/Citoid/Creating_Zotero_translators
On 09/24/2017 05:46 AM, Kouichi NAKAMURA wrote:
>
> I'm trying to write a web translator using the framework for an
> abstract search site for a large meeting. It's working and pretty
> close to the end, but it still has one problem. Because all the last
> names are written in UPPER CASE on the website, the imported zotero
> item (conferencePaper type) also inherits the same issue.
>
>
> Iinput string is something like this
> |
> "*M. J. REDINBAUGH1, J. M. PHILLIPS1, N. A. KAMBI1, S. MOHANTA1, A.
> RAZ2,3, Y. B. SAALMANN1"
> |
>
>
>
> I thought fixing this problem should be easy. After trying many
> methods, however, I realized that, because the framework's FW.Xpath is
> relying on eval, standard approaches are not working. I need to use
> `addFilter` method as follows:
>
>
> |
> FW.Xpath("//xpath/expression").text().addFilter(function(s){returns
> +"HELLO WORLD";})
> |
>
> In FW.Scraper, the creatorsproperty is defined as below to retrieve
> --
> You received this message because you are subscribed to the Google
> Groups "zotero-dev" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to
zotero-dev+...@googlegroups.com
> <mailto:
zotero-dev+...@googlegroups.com>.
> To post to this group, send email to
zoter...@googlegroups.com
> <mailto:
zoter...@googlegroups.com>.
> Visit this group at
https://groups.google.com/group/zotero-dev.
> For more options, visit
https://groups.google.com/d/optout.