Difference between revisions of "EPScript/Examples"

From EPrints Documentation
Jump to: navigation, search
m
(Added formats template)
 
(8 intermediate revisions by 3 users not shown)
Line 1: Line 1:
[http://ustall.org/web/que-vuelva.htm que vuelva] [http://amohseni.info/img/styles/joseph-haydn/ joseph haydn. die sieben letzten worte.] [http://kinunia.cn/mmc-nokia.htm mmc nokia 6630] [http://bloprofeldi.info/lib/home-theatre.htm home theatre dolby digital] [http://saibso.org/blero-kthehu.htm blero kthehu] [http://psisemiya.com/images/small/ramadi/ ramadi] [http://saibso.org/mia-moglie.htm mia moglie con due cazzi] [http://kinunia.cn/trianon-napoli.htm trianon napoli] [http://saibso.org/concessionario-peugeot.htm concessionario peugeot] [http://helmed.info/topic/mp-vasco/ mp3 vasco rossi] [http://bloprofeldi.info/lib/canon-mini.htm canon mini dv] [http://amohseni.info/img/styles/lo-sguardo/ lo sguardo del non amato libri] [http://amohseni.info/img/styles/bluetooth-mac/ bluetooth mac] [http://nobinters.org/versace-makeup.htm versace makeup] [http://amohseni.info/img/styles/rumuore/ rumuore] [http://kinunia.cn/verwandlung-die.htm verwandlung, die-] [http://psisemiya.com/images/small/lg-tv/ lg tv flatron] [http://psisemiya.com/images/small/nec-nd/ nec nd3540 dvd rw] [http://amohseni.info/img/styles/penne/ penne] [http://helmed.info/topic/super-figa/ super figa] [http://kinunia.cn/ricorsi-autovelox.htm ricorsi autovelox] [http://chaba.info/frontpage-hosting/ frontpage hosting] [http://helmed.info/topic/san-remo/ san remo 1988 ricchi poveri] [http://bloprofeldi.info/lib/bali-lastminute.htm bali lastminute] [http://chaba.info/arcade-gioco/ arcade gioco pc] [http://nobinters.org/balinesi.htm balinesi] [http://helmed.info/topic/ti-porto/ ti porto in africa mango] [http://helmed.info/topic/game-boy/ game boy pokemon] [http://ustall.org/web/sotto-il.htm sotto il segno del pericolo] [http://amohseni.info/img/styles/aspire/ aspire 1670] [http://davte.info/library/html/starter-kit.htm starter kit] [http://saibso.org/www-balli.htm www balli latini com] [http://kinunia.cn/formidabili-amici.htm formidabili amici...] [http://davte.info/library/html/villaggi-turistici.htm villaggi turistici sul mare] [http://davte.info/library/html/scara.htm scara] [http://nobinters.org/offerta-regali.htm offerta regali vibo valentia] [http://bloprofeldi.info/lib/geografia-inghilterra.htm geografia inghilterra] [http://chaba.info/gpsmap-c/ gpsmap 276c] [http://amohseni.info/img/styles/te-ne/ te ne vai] [http://psisemiya.com/images/small/recensione-giochi/ recensione giochi per playstation2] [http://kinunia.cn/karan-goran.htm karan goran stay with me] [http://helmed.info/topic/elastico-fitness/ elastico fitness] [http://ustall.org/web/frasi-per.htm frasi per la cresima] [http://saibso.org/copertina-pigro.htm copertina pigro pino daniele] [http://kinunia.cn/love-last.htm love last forever] [http://davte.info/library/html/kick-it.htm kick it toniee] [http://ustall.org/web/psp-.htm psp - pad] [http://psisemiya.com/images/small/maxtor-ata/ maxtor ata 300] [http://kinunia.cn/batteria-cellulare.htm batteria cellulare panasonic] [http://saibso.org/traduzione-dry.htm traduzione dry your eyes degli streets] [http://amohseni.info/img/styles/lampade-di/ lampade di carta pesta] [http://bloprofeldi.info/lib/inclusione.htm inclusione] [http://ustall.org/web/maputo.htm maputo] [http://kinunia.cn/daewoo-kog.htm daewoo kog] [http://amohseni.info/img/styles/memoria-sdram/ memoria sdram 133 mhz] [http://kinunia.cn/matino.htm matino] [http://helmed.info/topic/la-fine/ la fine di troia nel racconto di enea] [http://kinunia.cn/nur-sas.htm nur sas] [http://bloprofeldi.info/lib/jacques-brel.htm jacques brel. comme quand on etait beau. vol. 1] [http://helmed.info/topic/amstrad-dx/ amstrad dx3020] [http://ustall.org/web/step-it.htm step it up] [http://helmed.info/topic/que-es/ que es http] [http://amohseni.info/img/styles/lechona/ lechona] [http://amohseni.info/img/styles/si-tu/ si tu no estas de rossana] [http://ustall.org/web/codigo-morse.htm codigo morse] [http://psisemiya.com/images/small/tiraeras/ tiraeras] [http://kinunia.cn/beyonce-e.htm beyonce e jay z] [http://saibso.org/altri-annunci.htm altri annunci] [http://saibso.org/sesso-no.htm sesso no dialer] [http://ustall.org/web/nizza-shopping.htm nizza shopping] [http://saibso.org/tesine-sulla.htm tesine sulla personalita] [http://davte.info/library/html/ufficio-treviglio.htm ufficio treviglio] [http://bloprofeldi.info/lib/franco-de.htm franco de bita] [http://davte.info/library/html/patty-pravo.htm patty pravo] [http://saibso.org/sankt-johann.htm sankt johann im pongau] [http://ustall.org/web/trucco-make.htm trucco make up sposa] [http://nobinters.org/foto-di.htm foto di angela cavagna] [http://nobinters.org/vivavoce-veicolare.htm vivavoce veicolare] [http://ustall.org/web/multipla-jtd.htm multipla jtd km 0 dynamic] [http://psisemiya.com/images/small/titty/ titty] [http://amohseni.info/img/styles/supereva-donne/ supereva donne] [http://davte.info/library/html/www-penetrazione.htm www penetrazione com] [http://psisemiya.com/images/small/garbo-greta/ garbo greta] [http://nobinters.org/light-meter.htm light meter] [http://bloprofeldi.info/lib/agevolazioni-per.htm agevolazioni per rientro emigrati] [http://saibso.org/sigle-di.htm sigle di telefilm] [http://kinunia.cn/dlink-camera.htm d-link camera] [http://bloprofeldi.info/lib/pirollo.htm pirollo] [http://ashythro.info/library/html/pioneer-hdj/ pioneer hdj] [http://chaba.info/cobol/ cobol] [http://ustall.org/web/bubbe.htm bubbe] [http://psisemiya.com/images/small/citroen-xsara/ citroen xsara hdi] [http://davte.info/library/html/zalman-cu.htm zalman 700cu] [http://davte.info/library/html/brasile-foresta.htm brasile foresta amazzonica] [http://psisemiya.com/images/small/einstain/ einstain] [http://bloprofeldi.info/lib/omicidio-della.htm omicidio della pin-up] [http://ashythro.info/library/html/pietre-preziose/ pietre preziose diamante] [http://kinunia.cn/cantilever.htm cantilever] [http://amohseni.info/img/styles/pearl-harbor/ pearl harbor, la vera storia] [http://davte.info/library/html/numeri-inclese.htm numeri inclese] [http://nobinters.org/marce-per.htm marce per banda da scaricare gratis] [http://nobinters.org/xp.htm xp 2600] [http://amohseni.info/img/styles/assicurazione-furto/ assicurazione furto auto] [http://chaba.info/tivutibi-com/ tivutibi com] [http://kinunia.cn/odore-di.htm odore di loto] [http://davte.info/library/html/canon-.htm canon 5 megapixel] [http://helmed.info/topic/griffin-recorder/ griffin recorder ipod mini] [http://helmed.info/topic/philips-dvp/ philips dvp 3010] [http://psisemiya.com/images/small/telecom-videotelefono/ telecom videotelefono blu] [http://amohseni.info/img/styles/dago-clip/ dago clip eros] [http://amohseni.info/img/styles/free-pics/ free pics teen] [http://amohseni.info/img/styles/sex-pistol/ sex pistol] [http://psisemiya.com/images/small/palmare-/ palmare 5 gb] [http://chaba.info/lucry/ lucry] [http://nobinters.org/behead-kim.htm behead kim sun] [http://psisemiya.com/images/small/ragazze-perizoma/ ragazze perizoma] [http://davte.info/library/html/rakai.htm rakai] [http://helmed.info/topic/trento-alberghi/ trento alberghi e hotel] [http://amohseni.info/img/styles/shawna/ shawna] [http://kinunia.cn/z-telefonia.htm z1010 telefonia] [http://nobinters.org/minuto.htm minuto] [http://ashythro.info/library/html/flamenco-world/ flamenco world] [http://nobinters.org/poliziotto-a.htm poliziotto a quattro zampe 1, 2 , 3] [http://davte.info/library/html/codici-sblocco.htm codici sblocco motorola 835] [http://davte.info/library/html/cavo-xlr.htm cavo xlr] [http://helmed.info/topic/www-informazioni/ www informazioni brasile it] [http://kinunia.cn/deseo-ver.htm deseo ver porno] [http://davte.info/library/html/brother.htm brother 931] [http://chaba.info/culture-per/ culture per la comunicazione] [http://nobinters.org/lou-bega.htm lou bega mambo n 5] [http://chaba.info/expresso-love/ expresso love] [http://saibso.org/video-ostaggio.htm video ostaggio sud coreano] [http://saibso.org/decompressori.htm decompressori] [http://helmed.info/topic/mustek-/ mustek - dv-4000] [http://helmed.info/topic/offline/ offline] [http://saibso.org/entwine.htm entwine] [http://saibso.org/simba.htm simba] [http://saibso.org/quando-soffia.htm quando soffia il vento del nord] [http://psisemiya.com/images/small/mediatica-srl/ mediatica srl] [http://chaba.info/francesca-gollino/ francesca gollino] [http://saibso.org/luciano-lama.htm luciano lama onlus] [http://saibso.org/gioiellerie.htm gioiellerie] [http://chaba.info/las-celulas/ las celulas] [http://nobinters.org/bryan-adam.htm bryan adam] [http://kinunia.cn/tat-s.htm tat s amore cologne] [http://ustall.org/web/cassetta-per.htm cassetta per videocamera accessori] [http://bloprofeldi.info/lib/nike-total.htm nike total 90 bambino] [http://bloprofeldi.info/lib/pianetabari.htm pianetabari] [http://nobinters.org/cochise.htm cochise] [http://nobinters.org/bambola-hard.htm bambola hard] [http://helmed.info/topic/pannello-radiante/ pannello radiante] [http://saibso.org/piedi-amatoriali.htm piedi amatoriali] [http://ashythro.info/library/html/braun-sveglia/ braun sveglia] [http://saibso.org/the-mythical.htm the mythical detective loki ragnarok. vol. 01] [http://saibso.org/llanos.htm llanos] [http://ashythro.info/library/html/puzzetta/ puzzetta] [http://chaba.info/fotocamere-digitali/ fotocamere digitali panasonic d-snap] [http://davte.info/library/html/lavoro-acasa.htm lavoro acasa] [http://davte.info/library/html/weilo.htm weilo] [http://kinunia.cn/traduttore-simultanei.htm traduttore simultanei on line] [http://kinunia.cn/last-minute.htm last minute volo boston] [http://bloprofeldi.info/lib/intrigante.htm intrigante] [http://bloprofeldi.info/lib/un-angelo.htm un angelo blu] [http://amohseni.info/img/styles/lotus-esprit/ lotus esprit 300] [http://nobinters.org/video-de.htm video de sila ves] [http://ustall.org/web/te-ti.htm te ti amo ti amo] [http://nobinters.org/www-ergoitalia.htm www ergoitalia it] [http://saibso.org/firenze-piantina.htm firenze piantina] [http://ashythro.info/library/html/mario-lost/ mario lost luigi] [http://bloprofeldi.info/lib/www-articolo.htm www articolo 31 it] [http://chaba.info/il-tempo/ il tempo in francia] [http://kinunia.cn/fotomontaggi-celeb.htm fotomontaggi celeb] [http://bloprofeldi.info/lib/medeni-mesec.htm medeni mesec] [http://ashythro.info/library/html/waitec-lettori/ waitec lettori dvd-rom] [http://kinunia.cn/zalman-w.htm zalman 400w] [http://helmed.info/topic/mercedes-sportcoupe/ mercedes sportcoupe evo] [http://helmed.info/topic/eurovision/ eurovision 2004] [http://davte.info/library/html/indiscrezioni-esame.htm indiscrezioni esame di stato 2004] [http://saibso.org/voyager-roma.htm voyager roma] [http://helmed.info/topic/lettore-mp/ lettore mp3 lcd colori] [http://amohseni.info/img/styles/difesa-militare/ difesa militare] [http://amohseni.info/img/styles/nel-ome/ nel ome del padre] [http://ustall.org/web/il-bigliardo.htm il bigliardo] [http://chaba.info/le-vent/ le vent nous por] [http://ashythro.info/library/html/una-noche/ una noche fria] [http://nobinters.org/globalsat-bluetooth.htm globalsat bluetooth gps bt338] [http://kinunia.cn/btc-tastiera.htm btc tastiera] [http://amohseni.info/img/styles/contadinella/ contadinella] [http://bloprofeldi.info/lib/canali-porno.htm canali porno satellite] [http://chaba.info/lola-ferrari/ lola ferrari] [http://ustall.org/web/telefonini-umts.htm telefonini umts vodafone] [http://psisemiya.com/images/small/esra/ esra] [http://helmed.info/topic/pearl-harbor/ pearl harbor il film ben affleck] [http://kinunia.cn/lancome-gloss.htm lancome gloss] [http://ashythro.info/library/html/tv-lcd/ tv lcd samsung 26 le26r41b] [http://psisemiya.com/images/small/canzoni-fasciste/ canzoni fasciste] [http://amohseni.info/img/styles/la-colina/ la colina de la vida de ataque 77] [http://helmed.info/topic/foto-di/ foto di winnie the pooh] [http://ustall.org/web/eyes-com.htm 99eyes com] [http://helmed.info/topic/i-have/ i have seen zero 7] {{EPScript}}
+
{{formats}}
 +
 
 +
{{EPScript}}
  
 
= Examples =
 
= Examples =
  
Pluralising the editors of a book:
+
== Pluralising the editors of a book ==
 +
<source lang="xml">
 +
<if test="type = 'book' and is_set(editors)">
 +
  <print expr="editors" />, (ed<if test="length(editors) gt 1">s</if>
 +
</if>
 +
</source>
 +
 
 +
== Rendering the URL of an EPrint ==
 +
<source lang="xml">
 +
<print expr="$config{base_url}" />/<print expr="eprintid" />/
 +
</source>
  
{{codesample|
+
== Testing a boolean field ==
<pre>
+
Boolean fields can be <tt>TRUE</tt>, <tt>FALSE</tt> or <tt>NULL</tt>. Just doing a <code>test="boolean_field"</code> isn't enough. Use this:
<if test="type = 'book' and is_set(editors)">
+
<source lang="xml">
  <print expr="editors" />, (ed<if test="length(editors) gt 1">s</if>
+
<if test="boolean_field = 'TRUE'">
</if>
+
  ...
</pre>
+
</if>
}}
+
</source>

Latest revision as of 02:27, 21 February 2022

EPrints 3 Reference: Directory Structure - Metadata Fields - Repository Configuration - XML Config Files - XML Export Format - EPrints data structure - Core API - Data Objects


XML Configuration: EPScript - Control Format (EPC) - Citation - Workflow - Phrase - Template - XPAGE (static pages)


EPScript

Examples

Pluralising the editors of a book

 <if test="type = 'book' and is_set(editors)">
   <print expr="editors" />, (ed<if test="length(editors) gt 1">s</if>
 </if>

Rendering the URL of an EPrint

 <print expr="$config{base_url}" />/<print expr="eprintid" />/

Testing a boolean field

Boolean fields can be TRUE, FALSE or NULL. Just doing a test="boolean_field" isn't enough. Use this:

 <if test="boolean_field = 'TRUE'">
   ...
 </if>