Extension Packages

From EPrints Documentation
Revision as of 15:39, 21 August 2007 by WidQlg (Talk | contribs)

Jump to: navigation, search

trucchi giochi xbox santa fe hyundai archeologia a perugia excape tabella millesimale microfono ps2 lotus esprit 2.2 fiale per capelli aspirapolvere con battitappeto decoder con contributo statale rs-mmc dv per nokia 6630 512 posizione 69 bracciale topazio argento occidentale (papua nuova guinea) cuba e lavana tre gendarmi a new york happy di clinique roiate toyota paseo quiz patente viaccess key 20 11 2004 live in hyde park mediterraneo colonna sonora film www bassanodelgrappa it olympus fotocamera digitale 5 0 citta di pisa mr funky uv lampada crypt super ciro ver el video de tardes negras deep purple child in tima sara maldonado world rally championship ii extreme www msn com iovine patrizia grace of my heart foto di misilmeri www alessandro preziosi it testi delle canzoni dei 24 grana bubble bobbe 2 matriosca chacker vdo dayton 2604 bachatahits citofono titanic mp3 titanic fronte dal palco live jura 385 classe a lavastoviglie kapula canon 50mm 1 8 canadiangirl yala cowboy bebop. vol. 03 ultimo cd degli u2 sandisk mp3 buongiorno napoli alberghi treviso nec lcd 15 siti internet lecco juliana big brother giochi nuovi immagini talpa con paola perego cinzia molena nuda kokkola accessori bambini pioneer deh-4700mp pc siemens brazil sblocco z1010 bmw 525 screesavers fiat punto elx 5p 2000 lingeries outcast marley dvd impresa lombardia giovane stafania orlando fz 61 1 suker per sempre yu-gi-oh dawn of destiny viridiana router adsl 125 mbps austro-daimler hotel economici madrid interattivo foto scooter preparati izoard, col d- costo rottame karan goran figaro, le- calcolo isee scanner lg 600 panasonic dp 2310 www taglia42 it video karaoke italia gratis trani a gogo morte lorna svije archie shepp. quartet. part 2 il mare derba thief 3 - trailer la cantante dei black eyes peas www scienze uniba it cranberries zombi fscaller pulangkanlah betsabe tinto rosse ilocos norte case rustiche bormio albergo zoom 90 calcio finanziamenti fondo perduto test sul futuro contenido de la letra de cambio foredil brescia harrods it com estados unidos vigliaccheria toolbox starray karma malo malo pomalo tastiera touch comprar vivienda testo della canzone universal prayer escape from monkey island nortek lettore di mp3 1gb mirage paps due nuovi filmati per gran turismo 4 opel astra 1 7 bilancia philips edizione gold per rise of nations eugene amstrong video albergo forli olio essenziale di limone apoteosi t shirt maniche lunghe donna frisinga stampante hp 450 tendina giordani ddr notebook tenda 3 persone robbie wilson kosheen catch you www fica etq heiltsuk mutandina usata fuori strada subaru dirty dancing xu 440 lettore dvd home theatre asus p4p800 x router adsl zyxel piccolo uomo natalia millan halmahera pagina iniziale my immortal nuova versione orchidea 71 franz listz miroslav altavilla philips 7630 logitech desktop ex 100 musoduro robbie willims mare di piu caldaie ricambi napoli southwest com ona je poput djeteta 100 na jednoga jeep nuova grand cherokee 2005 herramientas de negociacion clubprive milano mp-e 65mm asphalt urban gt2 pro evolution soccer 4 scontato a fine mese www enature net meteo biella regina elisabetta sia di fornaci immagini o foto del kamasutra corvo torvo fiat scudo jtd abito firmato nx6110 740 sen kombi canzone california dei phantom planet hamsterball www un posto al sole com sunshine baby la spada del deserto www verona volley it viava la pappa periyar funkytown kreuk An extension package is a .tgz file containing multiple files which adds a suite of functionality when unpacked in the /opt/eprint3 directory.

An extension can be as simple as a plugin plus a css file or add a whole exciting suite of new features.

Things you might want to put into an eprints extension package:

  • Plugins: perl_lib/EPrints/Plugin/...
  • Themes: lib/themes/...
  • scripts: bin/...
  • CGI scripts: cgi/...
  • autocompletion scripts: cgi/users/lookup/...
  • phrase files for use by plugins or scripts: lib/lang/.../phrases/...
  • images, icons, javascript and css files to support your plugins or scripts: lib/static/...

Other things you might want to include are...

  • configuration files
  • repository specific phrase files
  • autocompletion data files

...but these can't be installed directly as they must go in the repository specific directory: archives/ARCHIVEID/cfg/ If you have more than 2 files to go in the archive cfg dir you may consider including a second .tgz file to unpack in archives/ARCHIVEID/cfg/

The handy thing is that plugins are autoloaded, .xml files in the phrases directory are autoloaded and .pl files in the archive cfg.d are autoloaded. So if you want to give your plugin some config options, you could just give a .pl file to copy into the cfg.d/ dir looking something like.

$c->{extension}->{my_cool_extension}->{option_1} = 1;
$c->{extension}->{my_cool_extension}->{keep_alive} = "always";

etc.

You could use a shorter path in the $c datastructure, but try and make sure it's distinct to your extension so clashes don't happen.