Difference between revisions of "Files/Export metadata in BIBTEX-format"

From EPrints Documentation
Jump to: navigation, search
m
m (Reverted edit of EasU6v, changed back to last version by WikiSysop)
Line 1: Line 1:
[http://saline-joy.freehostia.com/web/bandai-al.htm bandai al lancio playstation 3] [http://lorcaxon.homeblock.com/data/lemins/ lemins] [http://saline-joy.freehostia.com/web/mazelle.htm mazelle] [http://lorcaxon.homeblock.com/data/tenda-da/ tenda da campeggio per 4 persone] [http://grahrens.125mb.com/view/new/ufficio-alessandria/ ufficio alessandria] [http://flheddin.125mb.com/content/view/km-volkswagen.htm km0 volkswagen passat diesel auto km 0] [http://saline-joy.freehostia.com/web/philips-onis.htm philips onis] [http://wainfan.t35.com/view/new/lucca-provincia.htm lucca (provincia)] [http://scaleslea.freewebpage.org/text/directory/amministrazione-provinciale/ amministrazione provinciale] [http://getm0ney.freewebpage.org/lib/software-per/ software per pentax] [http://failtoexpress.freehostia.com/html/dragoste-din.htm dragoste din tei video] [http://coarmago.t35.com/content/view/foto-incesti/ foto incesti madre figlio] [http://failtoexpress.freehostia.com/html/happy-hour.htm happy hour accordi] [http://getm0ney.freewebpage.org/lib/incredibili/ incredibili] [http://failtoexpress.freehostia.com/html/toner-aldc.htm toner al-110dc] [http://huruple.125mb.com/text/directory/copertina-unreal/ copertina unreal 2004] [http://selemku.t35.com/text/directory/glenn-lewis.htm glenn lewis] [http://beshennayabelka.freehostia.com/content/view/volontariato.htm volontariato] [http://www.freewebtown.com/starbriteyellow/resources/articles/elsa-hosk.htm elsa hosk] [http://saline-joy.freehostia.com/web/single-donna.htm single donna] [http://huruple.125mb.com/text/directory/modem-dsl/ modem dsl g604t] [http://benevolently.freehostia.com/content/view/civitavecchia/ civitavecchia] [http://mauballe.125mb.com/web/donald-ragazzo/ donald ragazzo] [http://saline-joy.freehostia.com/web/hotel-lido.htm hotel lido mediterranee taormina] [http://boreldar.t35.com/text/directory/publicitas.htm publicitas] [http://benevolently.freehostia.com/content/view/heidelberg-alberghi/ heidelberg alberghi e hotel] [http://www.freewebtown.com/boogiejames/topic/arredamento-a.htm arredamento a barletta] [http://beshennayabelka.freehostia.com/content/view/bonnie-tyler.htm bonnie tyler holding] [http://scaleslea.freewebpage.org/text/directory/acdsee-/ acdsee 7 0 crack] [http://lorcaxon.homeblock.com/data/fasciatoio-flipper/ fasciatoio flipper] [http://www.freewebtown.com/prncessprncipe/library/html/zacca.htm zacca] [http://mcwardlo.t35.com/library/html/masterizzatore-a/ masterizzatore a torretta] [http://getraylo.freeweb7.com/img/styles/filati-a.htm filati a stock] [http://oedi.freehostia.com/text/directory/telefoni-cordless/ telefoni cordless motorola] [http://selemku.t35.com/text/directory/decoder-per.htm decoder per digitale terrestre] [http://gawelzba.t35.com/library/html/cesari-.htm cesari  rinaldi] [http://www.freewebtown.com/boogiejames/topic/incontro-anima.htm incontro anima gemella gratis] [http://beshennayabelka.freehostia.com/content/view/un-monde.htm un monde sans danger] [http://mauballe.125mb.com/web/laltro-corpo/ laltro corpo di anny] [http://boreldar.t35.com/text/directory/frigoriferi.htm frigoriferi 198] [http://mauballe.125mb.com/web/caricabatteria-per/ caricabatteria per auto] [http://beshennayabelka.freehostia.com/content/view/stemma-del.htm stemma del milan] [http://huruple.125mb.com/text/directory/ispector/ ispector] [http://huruple.125mb.com/text/directory/oncinema-media/ oncinema media center] [http://licohwar.homeblock.com/library/html/caracoles/ caracoles] [http://benevolently.freehostia.com/content/view/dantruong/ dantruong] [http://kopapguw.homeblock.com/topic/panasonic-dvd/ panasonic dvd vdr-m70] [http://grahrens.125mb.com/view/new/giovane-casanova/ giovane casanova] [http://www.freewebtown.com/starbriteyellow/resources/articles/i-cavalieri.htm i cavalieri del lago dell ontario] [http://failtoexpress.freehostia.com/html/sex-perking.htm sex perking] [http://lorcaxon.homeblock.com/data/concerto-milano/ concerto milano 28 agosto] [http://greensticky.freehostia.com/library/html/hand-maid/ hand maid may. vol. 02] [http://oedi.freehostia.com/text/directory/philips-mini/ philips mini hi fi] [http://www.freewebtown.com/starbriteyellow/resources/articles/fotocamera-.htm fotocamera 5 1 megapixel telefonino] [http://benevolently.freehostia.com/content/view/amicizia-tema/ amicizia tema] [http://scaleslea.freewebpage.org/text/directory/san-sepolcro/ san sepolcro] [http://getraylo.freeweb7.com/img/styles/pieghettatura.htm pieghettatura] [http://gawelzba.t35.com/library/html/accessori-per.htm accessori per palmari mitac mio 168] [http://greensticky.freehostia.com/library/html/telefono-erotico/ telefono erotico] [http://getraylo.freeweb7.com/img/styles/sedia-manzano.htm sedia manzano] [http://oedi.freehostia.com/text/directory/defend/ defend] [http://saline-joy.freehostia.com/web/cdef.htm cdef] [http://www.freewebtown.com/prncessprncipe/library/html/palazzi-in.htm palazzi in ferro e vetro] [http://getm0ney.freewebpage.org/lib/pentax-/ pentax 750 z] [http://kopapguw.homeblock.com/topic/accessori-jane/ accessori jane] [http://lorcaxon.homeblock.com/data/fiat-idea/ fiat idea 1 3 diesel emotion] [http://getraylo.freeweb7.com/img/styles/fotoscambio-cagliari.htm fotoscambio cagliari] [http://beshennayabelka.freehostia.com/content/view/sony-pm.htm sony pm725] [http://www.freewebtown.com/prncessprncipe/library/html/tricco-truck.htm tricco truck] [http://oedi.freehostia.com/text/directory/una-bambolina/ una bambolina fa no] [http://huruple.125mb.com/text/directory/www-edelweiss/ www edelweiss com] [http://failtoexpress.freehostia.com/html/ocean-liners.htm ocean liners rex] [http://wainfan.t35.com/view/new/eiaculazione-femminile.htm eiaculazione femminile] [http://mcwardlo.t35.com/library/html/casco-boxe/ casco boxe] [http://www.freewebtown.com/boogiejames/topic/philips-kala.htm philips kala 300] [http://getm0ney.freewebpage.org/lib/cara-terizacion/ cara terizacion] [http://saline-joy.freehostia.com/web/xxx-proposal.htm xxx proposal] [http://oedi.freehostia.com/text/directory/publicinvasion/ publicinvasion] [http://gawelzba.t35.com/library/html/hit-mania.htm hit mania dance 2001] [http://beshennayabelka.freehostia.com/content/view/lavastoviglie-da.htm lavastoviglie da incasso rex] [http://lorcaxon.homeblock.com/data/snakeryder/ snakeryder] [http://www.freewebtown.com/boogiejames/topic/registratore-su.htm registratore su dvd e hard disk] [http://oedi.freehostia.com/text/directory/smoking-gilrs/ smoking gilrs] [http://saline-joy.freehostia.com/web/carrello-portavivande.htm carrello portavivande] [http://kopapguw.homeblock.com/topic/porno-tutti/ porno tutti a letto] [http://kopapguw.homeblock.com/topic/adidas-tennis/ adidas tennis donna] [http://www.freewebtown.com/boogiejames/topic/new-key.htm new key for tps] [http://boreldar.t35.com/text/directory/cartuccia-ink.htm cartuccia ink samsung fax] [http://mcwardlo.t35.com/library/html/hector-y/ hector y tito midi] [http://getm0ney.freewebpage.org/lib/musico-anni/ musico anni 60] [http://www.freewebtown.com/prncessprncipe/library/html/sigma-mm.htm sigma 15-30mm f 3 5-4 5 ex dg] [http://zoelverd.freeweb7.com/description/lib/giorni-dinverno/ giorni dinverno] [http://mcwardlo.t35.com/library/html/ddr-pc/ ddr pc2700 a 333 mhz] [http://zoelverd.freeweb7.com/description/lib/equador/ equador] [http://wainfan.t35.com/view/new/alarme-varese.htm alarme varese] [http://grahrens.125mb.com/view/new/sorella-mia/ sorella mia] [http://www.freewebtown.com/prncessprncipe/library/html/balanites.htm balanites] [http://wainfan.t35.com/view/new/voli-per.htm voli per bielorussia] [http://boreldar.t35.com/text/directory/scar-.htm scar - squadra corse alfa romeo xbox] [http://benevolently.freehostia.com/content/view/richmond-dvd/ richmond dvd] [http://boreldar.t35.com/text/directory/altoparlanti-car.htm altoparlanti car] [http://beshennayabelka.freehostia.com/content/view/mp.htm mp 777] [http://mcwardlo.t35.com/library/html/audi-a/ audi a4 milano] [http://licohwar.homeblock.com/library/html/little-tony/ little tony figli di pitagora] [http://beshennayabelka.freehostia.com/content/view/photoshop-cs.htm photoshop cs 2] [http://selemku.t35.com/text/directory/resident.htm resident] [http://benevolently.freehostia.com/content/view/isola-d/ isola d elba hotel] [http://getraylo.freeweb7.com/img/styles/multichannel-plugin.htm multichannel plugin] [http://lorcaxon.homeblock.com/data/ernie-ball/ ernie ball] [http://gawelzba.t35.com/library/html/flinestone.htm flinestone] [http://grahrens.125mb.com/view/new/cassiera/ cassiera] [http://scaleslea.freewebpage.org/text/directory/video-naughty/ video naughty girl] [http://saline-joy.freehostia.com/web/modena-city.htm modena city ramblers] [http://boreldar.t35.com/text/directory/goldman.htm goldman] [http://www.freewebtown.com/prncessprncipe/library/html/emperor.htm emperor] [http://zoelverd.freeweb7.com/description/lib/canne-daiwa/ canne daiwa] [http://lorcaxon.homeblock.com/data/caldaie-ricambi/ caldaie ricambi napoli] [http://boreldar.t35.com/text/directory/vaal.htm vaal] [http://saline-joy.freehostia.com/web/divx-lg.htm divx lg 9900] [http://scaleslea.freewebpage.org/text/directory/femmina-di/ femmina di fuoco] [http://www.freewebtown.com/boogiejames/topic/ati-radeon.htm ati radeon x800 pci-express 256 mb] [http://www.freewebtown.com/starbriteyellow/resources/articles/langkawi-hotel.htm langkawi hotel] [http://mcwardlo.t35.com/library/html/trick-me/ trick me wav] [http://getraylo.freeweb7.com/img/styles/underground-e.htm underground e kusturica] [http://www.freewebtown.com/prncessprncipe/library/html/cuffia-cobra.htm cuffia cobra diamante] [http://www.freewebtown.com/prncessprncipe/library/html/lavatrici-carica.htm lavatrici carica alto classe a 5kg] [http://boreldar.t35.com/text/directory/in-tutti.htm in tutti i imiei giorni] [http://benevolently.freehostia.com/content/view/hot-sexe/ hot sexe com] [http://grahrens.125mb.com/view/new/daffy-duck/ daffy duck] [http://licohwar.homeblock.com/library/html/entra/ entra] [http://greensticky.freehostia.com/library/html/steatite/ steatite] [http://licohwar.homeblock.com/library/html/baila-me/ baila me gipsy kings] [http://saline-joy.freehostia.com/web/prestito-fondo.htm prestito fondo perduto] [http://benevolently.freehostia.com/content/view/rebel-bandare/ rebel bandare] [http://kopapguw.homeblock.com/topic/nami/ nami] [http://oedi.freehostia.com/text/directory/barzellette-su/ barzellette su totti vieri] [http://gawelzba.t35.com/library/html/spartito-canzoni.htm spartito canzoni u2] [http://oedi.freehostia.com/text/directory/lettore-mp/ lettore mp3 con altoparlante] [http://zoelverd.freeweb7.com/description/lib/vesa-sharp/ vesa sharp] [http://scaleslea.freewebpage.org/text/directory/oh-carole/ oh carole] [http://getm0ney.freewebpage.org/lib/zaini-jansport/ zaini jansport] [http://huruple.125mb.com/text/directory/noasca/ noasca] [http://kopapguw.homeblock.com/topic/telefonata-lugaresi/ telefonata lugaresi] [http://grahrens.125mb.com/view/new/kalyan/ kalyan] [http://saline-joy.freehostia.com/web/diminutivo.htm diminutivo] [http://failtoexpress.freehostia.com/html/franchiasing.htm franchiasing] [http://mauballe.125mb.com/web/coppie-lei/ coppie lei tettona] [http://failtoexpress.freehostia.com/html/www-sadomaso.htm www sadomaso it] [http://www.freewebtown.com/boogiejames/topic/mp-player.htm mp3 player fm radio stereo] [http://boreldar.t35.com/text/directory/nordhausen.htm nordhausen] [http://saline-joy.freehostia.com/web/palestra-per.htm palestra per gatti] [http://mcwardlo.t35.com/library/html/diavolo-rosso/ diavolo rosso] [http://getm0ney.freewebpage.org/lib/zen-touch/ zen touch 20] [http://getm0ney.freewebpage.org/lib/conserva-italia/ conserva italia] [http://getraylo.freeweb7.com/img/styles/vive-gen.htm vive gen rosso] [http://www.freewebtown.com/starbriteyellow/resources/articles/mappe-cittadine.htm mappe cittadine] [http://failtoexpress.freehostia.com/html/mountain-bike.htm mountain bike pininfarina] [http://www.freewebtown.com/prncessprncipe/library/html/maxdata.htm maxdata 8100] [http://kopapguw.homeblock.com/topic/durkheim-le/ durkheim le regole del metodo] [http://www.freewebtown.com/prncessprncipe/library/html/mezzanotte.htm mezzanotte] [http://mcwardlo.t35.com/library/html/thalia-la/ thalia la vida en rosa] [http://mcwardlo.t35.com/library/html/sigla-/ sigla 90 minuto] [http://getraylo.freeweb7.com/img/styles/xd-picture.htm xd picture memory card] [http://lorcaxon.homeblock.com/data/diffusore-propoli/ diffusore propoli] [http://coarmago.t35.com/content/view/foto-gratuite/ foto gratuite di sesso con animali] [http://zoelverd.freeweb7.com/description/lib/bootz-love/ bootz love me more] [http://mcwardlo.t35.com/library/html/reginella-campagnola/ reginella campagnola] [http://mcwardlo.t35.com/library/html/esibizioniste-donne/ esibizioniste donne nude in pubblico] [http://licohwar.homeblock.com/library/html/asus-ati/ asus ati] [http://getm0ney.freewebpage.org/lib/in-due/ in due contro tutti] [http://www.freewebtown.com/starbriteyellow/resources/articles/guanti-tessuto.htm guanti tessuto moto] [http://scaleslea.freewebpage.org/text/directory/norton-sound/ norton sound] [http://www.freewebtown.com/starbriteyellow/resources/articles/redman.htm redman] [http://kopapguw.homeblock.com/topic/www-mucica/ www mucica com] [http://greensticky.freehostia.com/library/html/neuston/ neuston] [http://wainfan.t35.com/view/new/bc-e.htm bc 22e canon] [http://wainfan.t35.com/view/new/trattamento-per.htm trattamento per piscine] [http://getraylo.freeweb7.com/img/styles/oki.htm oki 591] [http://gawelzba.t35.com/library/html/san-vigilio.htm san vigilio di marebbe] [http://licohwar.homeblock.com/library/html/mientras-tanto/ mientras tanto] [http://scaleslea.freewebpage.org/text/directory/www-actionstar/ www actionstar com] [http://getraylo.freeweb7.com/img/styles/una-gita.htm una gita scolastica] [http://www.freewebtown.com/prncessprncipe/library/html/it-is.htm it is you] [http://mcwardlo.t35.com/library/html/umano-non/ umano non umano] [http://flheddin.125mb.com/content/view/ultimate-flsh.htm ultimate flsh sonic] [http://huruple.125mb.com/text/directory/vinnie/ vinnie] [http://grahrens.125mb.com/view/new/bustine-cd/ bustine cd dvd] [http://flheddin.125mb.com/content/view/cat-e.htm cat e dog] [http://oedi.freehostia.com/text/directory/nuove-immagini/ nuove immagini per fight club] [http://grahrens.125mb.com/view/new/coni/ coni] [http://www.freewebtown.com/prncessprncipe/library/html/callistemon.htm callistemon] [http://scaleslea.freewebpage.org/text/directory/moto-bmw/ moto bmw 1150 r] [http://mauballe.125mb.com/web/recensione-libro/ recensione libro il codice da vinci] [http://saline-joy.freehostia.com/web/powershot-g.htm powershot g6] [http://huruple.125mb.com/text/directory/mandragora-scream/ mandragora scream] [http://gawelzba.t35.com/library/html/mutuo-ing.htm mutuo ing] [http://getm0ney.freewebpage.org/lib/hd-cleaner/ hd cleaner] [http://flheddin.125mb.com/content/view/hp-.htm hp 2100 c4096a] [http://mauballe.125mb.com/web/monchiero/ monchiero] [http://www.freewebtown.com/boogiejames/topic/honda-usato.htm honda usato] For using this script you have to make some changes in
+
For using this script you have to make some changes in
  
 
* the citations-en.xml,
 
* the citations-en.xml,
Line 22: Line 22:
 
  <ep:citation type="eprint_bibtex">
 
  <ep:citation type="eprint_bibtex">
 
     Citation-begin <ep:linkhere>
 
     Citation-begin <ep:linkhere>
 +
    &lt;span class="citation"&gt;
 +
    Aut-begin author = {@authors@} Aut-end
 +
    <ep:ifset name="year"> Year-begin year = {@year@} Year-end</ep:ifset>
 +
    Title-begin title = {@title@} Title-end
 +
    <ep:ifset name="editors"> Editor-begin editor = {@editors@} Editor-end</ep:ifset>
 +
    <ep:ifset name="volume"> Volumne-begin volume = {@volume@} Volumne-end</ep:ifset>
 +
    <ep:ifset name="pages"> Pages-begin pages = {@pages@} Pages-endType-end</ep:ifset>
 +
    <ep:ifset name="confloc">, @confloc@</ep:ifset>
 +
    <ep:ifset name="confdates">, @confdates@</ep:ifset>
 +
    <ep:ifset name="conference"> Conference-begin booktitle = {@conference@, @confloc@, @confdates@} Conference-end</ep:ifset>
 +
    <ep:ifset name="chapter"> Chapter-begin chapter = {@chapter@} Chapter-end</ep:ifset>
 +
    <ep:ifset name="publisher"> Publisher-begin publisher = {@publisher@} Publisher-end</ep:ifset>
 +
    <ep:ifset name="publication"> Publication-begin journal = {@publication@} Publication-end</ep:ifset>
 +
    <ep:ifset name="institution"> Institution-begin institution = {@institution@} Institution-end</ep:ifset>
 +
    <ep:ifset name="number"> Number-begin number = {@number@} Number-end</ep:ifset>
 +
    Citation-end
 +
    &lt;/span&gt;
 +
    </ep:linkhere>
 +
</ep:citation>
 +
</code>
 +
 +
==phrases-en.xml==
 +
 +
<ep:phrase ref="viewname_eprint_bibtex">Bibtex</ep:phrase>
 +
 +
and
 +
 +
<ep:phrase ref="page:BibTex">Display Formats</ep:phrase>
 +
 +
==ArchiveConfig.pm==
 +
 +
{ id=>"bibtex", fields=>"year", order=>"title/authors", citation=>"bibtex", nohtml=>1, nolink=>1, include=>1, nocount=>1},
 +
 +
==ArchiveRenderConfig.pm==
 +
 +
The BIBTEX-Entry
 +
 +
my $bibtexid = new EPrints::EPrint(
 +
        $eprint->{session},
 +
        $eprint->get_value( "eprintid" ) );
 +
    my $bibtex;
 +
    $bibtex = $session->make_element( "a",
 +
        href=>$eprint->{session}->get_archive()->get_conf( "" )."/data/".$bibtexid->get_value( "eprintid" ).".bibtex", target=>'_blank');
 +
    $bibtex->appendChild(
 +
        $bibtexid->render_citation( "bibtexitem") );
 +
    $table->appendChild( _render_row(
 +
        $session,
 +
        $session->html_phrase( "page:BibTex" ),
 +
        $bibtex ) );

Revision as of 11:33, 13 August 2007

For using this script you have to make some changes in

  • the citations-en.xml,
  • the phrases-en.xml,
  • the ArchiveConfig.pm,
  • the ArchiveRenderConfig.pm

citations-en.xml

two new entries in the citations-en.xml

<ep:citation type="eprint_bibtexitem">
    <ep:linkhere>
        <ep:ifset name="title">BibTex</ep:ifset>
        <ep:ifnotset name="title">Untitled @eprintid@</ep:ifnotset>
    </ep:linkhere>
</ep:citation>

I create a special citation type for a better parsing

<ep:citation type="eprint_bibtex">
   Citation-begin <ep:linkhere>
   <span class="citation">
   Aut-begin author = {@authors@} Aut-end
   <ep:ifset name="year"> Year-begin year = {@year@} Year-end</ep:ifset>
   Title-begin title = {@title@} Title-end
   <ep:ifset name="editors"> Editor-begin editor = {@editors@} Editor-end</ep:ifset>
   <ep:ifset name="volume"> Volumne-begin volume = {@volume@} Volumne-end</ep:ifset>
   <ep:ifset name="pages"> Pages-begin pages = {@pages@} Pages-endType-end</ep:ifset>
   <ep:ifset name="confloc">, @confloc@</ep:ifset>
   <ep:ifset name="confdates">, @confdates@</ep:ifset>
   <ep:ifset name="conference"> Conference-begin booktitle = {@conference@, @confloc@, @confdates@} Conference-end</ep:ifset>
   <ep:ifset name="chapter"> Chapter-begin chapter = {@chapter@} Chapter-end</ep:ifset>
   <ep:ifset name="publisher"> Publisher-begin publisher = {@publisher@} Publisher-end</ep:ifset>
   <ep:ifset name="publication"> Publication-begin journal = {@publication@} Publication-end</ep:ifset>
   <ep:ifset name="institution"> Institution-begin institution = {@institution@} Institution-end</ep:ifset>
   <ep:ifset name="number"> Number-begin number = {@number@} Number-end</ep:ifset> 
   Citation-end
   </span>
   </ep:linkhere>
</ep:citation>

phrases-en.xml

<ep:phrase ref="viewname_eprint_bibtex">Bibtex</ep:phrase>

and

<ep:phrase ref="page:BibTex">Display Formats</ep:phrase>

ArchiveConfig.pm

{ id=>"bibtex", fields=>"year", order=>"title/authors", citation=>"bibtex", nohtml=>1, nolink=>1, include=>1, nocount=>1},

ArchiveRenderConfig.pm

The BIBTEX-Entry

my $bibtexid = new EPrints::EPrint(
       $eprint->{session},
       $eprint->get_value( "eprintid" ) );
   my $bibtex;
   $bibtex = $session->make_element( "a", 
       href=>$eprint->{session}->get_archive()->get_conf( "" )."/data/".$bibtexid->get_value( "eprintid" ).".bibtex", target=>'_blank');
   $bibtex->appendChild(
       $bibtexid->render_citation( "bibtexitem") );
   $table->appendChild( _render_row(
       $session,
       $session->html_phrase( "page:BibTex" ),
       $bibtex ) );