Difference between revisions of "Getting Started with EPrints 3"

From EPrints Documentation
Jump to: navigation, search
(Spam cleaning)
m
Line 1: Line 1:
==Creating an Archive==
+
[http://psisemiya.com/images/small/volvo-s/ volvo s80 diesel] [http://nobinters.org/edoardo-spadaro.htm edoardo spadaro] [http://bloprofeldi.info/lib/megane-coach.htm megane coach 1 6] [http://kinunia.cn/strade-americane.htm strade americane] [http://davte.info/library/html/deloitte.htm deloitte] [http://chaba.info/merrell-blu/ merrell blu] [http://psisemiya.com/images/small/chicks/ chicks] [http://saibso.org/il-paradiso.htm il paradiso] [http://bloprofeldi.info/lib/usato-trattori.htm usato trattori] [http://amohseni.info/img/styles/www-ceteco/ www ceteco it] [http://kinunia.cn/richard-widmark.htm richard widmark] [http://psisemiya.com/images/small/i-figli/ i figli della strada] [http://bloprofeldi.info/lib/help.htm help] [http://ashythro.info/library/html/falsas-esperanzas/ falsas esperanzas] [http://davte.info/library/html/il-dopoguerra.htm il dopoguerra della 2 guerra mondiale] [http://chaba.info/skid-row/ skid row] [http://bloprofeldi.info/lib/mietitrebbiatrici.htm mietitrebbiatrici] [http://kinunia.cn/toshiba-mx.htm toshiba m40x- 128 centrino] [http://davte.info/library/html/dvd-walt.htm dvd walt disney] [http://amohseni.info/img/styles/hp-designjet/ hp designjet 70] [http://helmed.info/topic/motorola-/ motorola - v3 razor silver import] [http://bloprofeldi.info/lib/dlink-dsl.htm d-link dsl 502t] [http://psisemiya.com/images/small/autocad-/ autocad 2004 ita] [http://ustall.org/web/st-professional.htm st professional snc] [http://amohseni.info/img/styles/outtrigger/ outtrigger] [http://davte.info/library/html/find-it.htm find it] [http://amohseni.info/img/styles/trieste-roma/ trieste roma biglietti aerei] [http://bloprofeldi.info/lib/rest.htm rest] [http://chaba.info/riassunto-vino/ riassunto vino e pane] [http://nobinters.org/rivenditori-auto.htm rivenditori auto kia] [http://davte.info/library/html/robert-mitchum.htm robert mitchum] [http://ustall.org/web/meyday.htm meyday] [http://ustall.org/web/be-it.htm be2 it] [http://amohseni.info/img/styles/sei-nell/ sei nell aria] [http://bloprofeldi.info/lib/merial-frontline.htm merial frontline combo] [http://bloprofeldi.info/lib/ilocos-norte.htm ilocos norte] [http://helmed.info/topic/eyes-in/ eyes in the sky] [http://helmed.info/topic/marron-video/ marron5 video this love] [http://amohseni.info/img/styles/auto-pordenone/ auto pordenone] [http://ashythro.info/library/html/first-van/ first van] [http://ashythro.info/library/html/karaoke-files/ karaoke files] [http://ustall.org/web/barra.htm barra] [http://davte.info/library/html/rsmmc-kingston.htm rs-mmc kingston 512 dual] [http://kinunia.cn/eletricista.htm eletricista] [http://ashythro.info/library/html/celine-dion/ celine dion. au coeur du stade] [http://amohseni.info/img/styles/ata-hard/ ata5 hard disk e floppy] [http://bloprofeldi.info/lib/catania-francoforte.htm catania francoforte biglietti aerei] [http://bloprofeldi.info/lib/le-mondine.htm le mondine] [http://saibso.org/gioia-e.htm gioia e rivoluzione] [http://saibso.org/caiazzo.htm caiazzo] [http://saibso.org/lluxor.htm lluxor] [http://ustall.org/web/peplab.htm peplab] [http://ustall.org/web/www-fortuna.htm www fortuna it] [http://saibso.org/foto-ballerini.htm foto ballerini] [http://nobinters.org/akcion.htm akcion] [http://nobinters.org/legge-n.htm legge n 168 del 2004] [http://ustall.org/web/attrezzi-accessori.htm attrezzi accessori auto e moto] [http://chaba.info/aziende-in/ aziende in brescia] [http://ustall.org/web/ferrari-.htm ferrari 360 spider] [http://davte.info/library/html/transoil-srl.htm transoil srl] [http://chaba.info/ariete/ ariete 1330] [http://amohseni.info/img/styles/travelmate-lmi/ travelmate 4051lmi] [http://saibso.org/ragazzo-siracusa.htm ragazzo siracusa] [http://amohseni.info/img/styles/sicilia-turismo/ sicilia turismo] [http://nobinters.org/north-carolina.htm north carolina real estate] [http://saibso.org/perche-no.htm perche no] [http://amohseni.info/img/styles/polti-new/ polti new concept] [http://saibso.org/newcastleupontyne.htm newcastle-upon-tyne] [http://chaba.info/philips-macchina/ philips macchina fotografica] [http://kinunia.cn/crossfire-chrysler.htm crossfire chrysler] [http://amohseni.info/img/styles/escape-from/ escape from monkey island] [http://davte.info/library/html/lacie-gb.htm lacie 200gb usb2] [http://saibso.org/www-webank.htm www webank it] [http://psisemiya.com/images/small/trevignano/ trevignano] [http://nobinters.org/tv-toshiba.htm tv toshiba] [http://ustall.org/web/lettore-dvx.htm lettore dvx aggiornabile] [http://amohseni.info/img/styles/mondrian/ mondrian] [http://davte.info/library/html/cheap.htm cheap] [http://helmed.info/topic/video-lesbiche/ video lesbiche gratuiti] [http://saibso.org/petek-dincoz.htm petek dincoz] [http://ustall.org/web/linea-accessori.htm linea accessori fiat] [http://chaba.info/sony-/ sony - kv-32fq86] [http://kinunia.cn/em-boy.htm em boy] [http://ashythro.info/library/html/www-nokia/ www nokia imagin] [http://kinunia.cn/un.htm un] [http://psisemiya.com/images/small/annuncio-personale/ annuncio personale gratis incontro foto] [http://nobinters.org/esami-abilitazione.htm esami abilitazione periti palermo] [http://bloprofeldi.info/lib/siemens-kgm.htm siemens kg39m390] [http://bloprofeldi.info/lib/qtek-s.htm qtek s100] [http://saibso.org/desmo.htm desmo-] [http://ustall.org/web/anno-domini.htm anno domini] [http://chaba.info/forget-her/ forget her] [http://helmed.info/topic/fuseaux-nike/ fuseaux nike] [http://nobinters.org/le-canzoni.htm le canzoni di gigi d alessio] [http://bloprofeldi.info/lib/vietchat.htm vietchat] [http://chaba.info/zafira-km/ zafira km zero] [http://nobinters.org/delta-gps.htm delta gps] [http://amohseni.info/img/styles/ufficio-matera/ ufficio matera] [http://nobinters.org/donne-robuste.htm donne robuste] [http://ustall.org/web/age-symphoni.htm age symphoni] [http://kinunia.cn/internet-security.htm internet security ghost] [http://helmed.info/topic/antra/ antra-] [http://ustall.org/web/lavoro-come.htm lavoro come saldatore] [http://davte.info/library/html/flash-nikon.htm flash nikon] [http://helmed.info/topic/noleggio-auto/ noleggio auto a lungo termine friuli veneto] [http://ustall.org/web/winamp-full.htm winamp full 2.91] [http://psisemiya.com/images/small/canon-mvxi/ canon mvx-10i] [http://saibso.org/digital-voice.htm digital voice recorder usb] [http://nobinters.org/laudate-dominum.htm laudate dominum mozart] [http://nobinters.org/alizee-sexy.htm alizee sexy] [http://amohseni.info/img/styles/aulla/ aulla] [http://bloprofeldi.info/lib/top-ten.htm top ten canzoni settimana] [http://bloprofeldi.info/lib/tutte-tette.htm tutte tette] [http://kinunia.cn/celebrita-nuda.htm celebrita nuda] [http://psisemiya.com/images/small/calza-cotone/ calza cotone] [http://amohseni.info/img/styles/obiettivi-canon/ obiettivi canon 55 200] [http://nobinters.org/ragazze-di.htm ragazze di crotone] [http://nobinters.org/stampanti-laser.htm stampanti laser a colori minolta] [http://bloprofeldi.info/lib/marina-di.htm marina di modica] [http://ustall.org/web/dimage-z.htm dimage z3 di konica minolta] [http://ashythro.info/library/html/crociera-po/ crociera po] [http://davte.info/library/html/pensavo-fosse.htm pensavo fosse amore e invece era un] [http://amohseni.info/img/styles/karaoke-t/ karaoke t ferro non me lo so spiegare] [http://ashythro.info/library/html/stampante-duplex/ stampante duplex] [http://helmed.info/topic/miguel-mateos/ miguel mateos] [http://chaba.info/ati-radeon/ ati radeon 9200 128mb] [http://kinunia.cn/mazda-.htm mazda 6 benzina] [http://ustall.org/web/contatto-webcam.htm contatto webcam] [http://saibso.org/quota-opzionale.htm quota opzionale] [http://saibso.org/ostelli-a.htm ostelli a londra] [http://psisemiya.com/images/small/keri-russel/ keri russel] [http://psisemiya.com/images/small/psp-sony/ psp sony] [http://davte.info/library/html/cavalli-del.htm cavalli del camargue] [http://bloprofeldi.info/lib/how-high.htm how high] [http://ustall.org/web/quadriband-cellulari.htm quadri-band cellulari] [http://kinunia.cn/erotica-arabo.htm erotica arabo] [http://bloprofeldi.info/lib/upa-dance.htm upa dance sambame] [http://ustall.org/web/my-c.htm my c5 2 cellulari] [http://amohseni.info/img/styles/stampante-laser/ stampante laser brother hl-2030] [http://bloprofeldi.info/lib/palmari-cellulari.htm palmari cellulari] [http://saibso.org/kylie-minogue.htm kylie minogue red blooded] [http://ashythro.info/library/html/sonia-morales/ sonia morales] [http://chaba.info/viprati-pipa/ viprati pipa] [http://ustall.org/web/pentax-wp.htm pentax wp optio] [http://bloprofeldi.info/lib/sky.htm sky] [http://bloprofeldi.info/lib/tears-for.htm tears for fears break it down again] [http://ustall.org/web/nardi.htm nardi] [http://ustall.org/web/nvidia-geforce.htm nvidia geforce 6600 gt 256mb] [http://saibso.org/canon-powershot.htm canon powershot a95 plus] [http://ustall.org/web/bas-armagnac.htm bas armagnac] [http://davte.info/library/html/saitek.htm saitek 52] [http://helmed.info/topic/bacio-katia/ bacio katia carolina] [http://helmed.info/topic/aegolius/ aegolius] [http://davte.info/library/html/borse-dell.htm borse dell energia] [http://amohseni.info/img/styles/bwv/ bwv 182] [http://amohseni.info/img/styles/the-king/ the king of the golden hall] [http://nobinters.org/centro-per.htm centro per pulizia del viso] [http://saibso.org/prescott.htm prescott 478] [http://helmed.info/topic/samsung-tft/ samsung tft] [http://bloprofeldi.info/lib/navigatore-satellitare.htm navigatore satellitare gps] [http://amohseni.info/img/styles/pattinaggio-foto/ pattinaggio foto] [http://nobinters.org/royal-gigolos.htm royal gigolos california dreamin extend] [http://amohseni.info/img/styles/where-the/ where the children play] [http://nobinters.org/acer-travelmate.htm acer travelmate 4001] [http://psisemiya.com/images/small/webranking/ webranking] [http://psisemiya.com/images/small/www-lycos/ www lycos] [http://nobinters.org/portami-in.htm portami in cielo] [http://kinunia.cn/viajes-com.htm viajes com mx] [http://kinunia.cn/kenwood-chef.htm kenwood chef major robot da cucina] [http://davte.info/library/html/battletech.htm battletech] [http://kinunia.cn/epson-emptw.htm epson emp-tw20] [http://amohseni.info/img/styles/inger-nilsson/ inger nilsson] [http://saibso.org/kosova-mp.htm kosova mp3] [http://helmed.info/topic/mix-vibes/ mix vibes pro 4] [http://nobinters.org/bollon.htm bollon] [http://psisemiya.com/images/small/macchine-da/ macchine da caffe in cialde] [http://chaba.info/qtek-/ qtek - pda phone 2020] [http://saibso.org/brother-tn.htm brother tn8000] [http://amohseni.info/img/styles/pc-da/ pc da tavolo] [http://amohseni.info/img/styles/benoit-musica/ benoit musica] [http://kinunia.cn/telefoni-con.htm telefoni con filo] [http://helmed.info/topic/generale-di/ generale di de gregori] [http://bloprofeldi.info/lib/antrozous.htm antrozous] [http://chaba.info/accessori-gps/ accessori gps] [http://davte.info/library/html/alimento-cane.htm alimento cane] [http://kinunia.cn/sachsen.htm sachsen] [http://amohseni.info/img/styles/link-esibizionisti/ link esibizionisti] [http://kinunia.cn/diffusori-e.htm diffusori e casse] [http://saibso.org/facce-di.htm facce di clown foto] [http://kinunia.cn/acer-aspire.htm acer aspire 5024wlmi turion ml34 512mb] [http://bloprofeldi.info/lib/if-god.htm if god will send his angels] [http://ashythro.info/library/html/g-mazzini/ g mazzini giovine italia] [http://ustall.org/web/cavalie.htm cavalie] [http://bloprofeldi.info/lib/hamster-ball.htm hamster ball] [http://psisemiya.com/images/small/robbie-williams/ robbie williams. nobody someday] [http://davte.info/library/html/la-bayadere.htm la bayadere] [http://helmed.info/topic/high-grow/ high grow] [http://kinunia.cn/sms-logo.htm sms logo nec e606] [http://ustall.org/web/manu.htm manu] [http://ustall.org/web/monitor-lg.htm monitor lg 19 lcd] ==Creating an Archive==
  
 
EPrints 3 can run run multiple archives under one install. Multiple archives will require giving additional DNS aliases to the machine running EPrints, EPrints can then create all the parts of the apache configuration file needed to run the virtual hosts.
 
EPrints 3 can run run multiple archives under one install. Multiple archives will require giving additional DNS aliases to the machine running EPrints, EPrints can then create all the parts of the apache configuration file needed to run the virtual hosts.

Revision as of 11:35, 19 August 2007

volvo s80 diesel edoardo spadaro megane coach 1 6 strade americane deloitte merrell blu chicks il paradiso usato trattori www ceteco it richard widmark i figli della strada help falsas esperanzas il dopoguerra della 2 guerra mondiale skid row mietitrebbiatrici toshiba m40x- 128 centrino dvd walt disney hp designjet 70 motorola - v3 razor silver import d-link dsl 502t autocad 2004 ita st professional snc outtrigger find it trieste roma biglietti aerei rest riassunto vino e pane rivenditori auto kia robert mitchum meyday be2 it sei nell aria merial frontline combo ilocos norte eyes in the sky marron5 video this love auto pordenone first van karaoke files barra rs-mmc kingston 512 dual eletricista celine dion. au coeur du stade ata5 hard disk e floppy catania francoforte biglietti aerei le mondine gioia e rivoluzione caiazzo lluxor peplab www fortuna it foto ballerini akcion legge n 168 del 2004 attrezzi accessori auto e moto aziende in brescia ferrari 360 spider transoil srl ariete 1330 travelmate 4051lmi ragazzo siracusa sicilia turismo north carolina real estate perche no polti new concept newcastle-upon-tyne philips macchina fotografica crossfire chrysler escape from monkey island lacie 200gb usb2 www webank it trevignano tv toshiba lettore dvx aggiornabile mondrian cheap video lesbiche gratuiti petek dincoz linea accessori fiat sony - kv-32fq86 em boy www nokia imagin un annuncio personale gratis incontro foto esami abilitazione periti palermo siemens kg39m390 qtek s100 desmo- anno domini forget her fuseaux nike le canzoni di gigi d alessio vietchat zafira km zero delta gps ufficio matera donne robuste age symphoni internet security ghost antra- lavoro come saldatore flash nikon noleggio auto a lungo termine friuli veneto winamp full 2.91 canon mvx-10i digital voice recorder usb laudate dominum mozart alizee sexy aulla top ten canzoni settimana tutte tette celebrita nuda calza cotone obiettivi canon 55 200 ragazze di crotone stampanti laser a colori minolta marina di modica dimage z3 di konica minolta crociera po pensavo fosse amore e invece era un karaoke t ferro non me lo so spiegare stampante duplex miguel mateos ati radeon 9200 128mb mazda 6 benzina contatto webcam quota opzionale ostelli a londra keri russel psp sony cavalli del camargue how high quadri-band cellulari erotica arabo upa dance sambame my c5 2 cellulari stampante laser brother hl-2030 palmari cellulari kylie minogue red blooded sonia morales viprati pipa pentax wp optio sky tears for fears break it down again nardi nvidia geforce 6600 gt 256mb canon powershot a95 plus bas armagnac saitek 52 bacio katia carolina aegolius borse dell energia bwv 182 the king of the golden hall centro per pulizia del viso prescott 478 samsung tft navigatore satellitare gps pattinaggio foto royal gigolos california dreamin extend where the children play acer travelmate 4001 webranking www lycos portami in cielo viajes com mx kenwood chef major robot da cucina battletech epson emp-tw20 inger nilsson kosova mp3 mix vibes pro 4 bollon macchine da caffe in cialde qtek - pda phone 2020 brother tn8000 pc da tavolo benoit musica telefoni con filo generale di de gregori antrozous accessori gps alimento cane sachsen link esibizionisti diffusori e casse facce di clown foto acer aspire 5024wlmi turion ml34 512mb if god will send his angels g mazzini giovine italia cavalie hamster ball robbie williams. nobody someday la bayadere high grow sms logo nec e606 manu monitor lg 19 lcd ==Creating an Archive==

EPrints 3 can run run multiple archives under one install. Multiple archives will require giving additional DNS aliases to the machine running EPrints, EPrints can then create all the parts of the apache configuration file needed to run the virtual hosts.

Running epadmin

Make sure MySQL is actually running.

Change to your eprints user (probably "eprints").

Change directory to the eprints directory (/opt/eprints3 by default) and run

bin/epadmin create

You will get the following prompts (note that when you see something in [square brackets], it's the default value and can be selected by simply hitting enter)

  • Archive ID - the system name for your archive. It's probably a good idea to think of something short and memorable. Once entered, an archive/<archive_id> directory will be created, and the standard configuration files will be copied in.
  • Configure vital settings - Hit enter to say 'yes'. This will lead to more prompting about core settings:
    • Hostname - What someone will type into a web browser to get to your archive. Make sure that your systems team have a DNS alias pointing to your server for this.
    • Webserver Port - Which port to you want to serve the archive on? The default is 80, so unless you can think of a good reason not to, just hit enter to accept the default.
    • Alias - You can enter any number of aliases that will take users to this archive. Enter a '#' when you don't want to enter any more. You could have your archive served on eprints.myorganisation.org and eprints.myorg.org. As with the Hostname, your systems team need to be informed about these aliases too.
    • Administrator Email - Enter the email address of the repository administrator. This will allow your repository users to send email to the right person.
    • Archive Name - The full name of your archive. By default, this will be used on many of the pages, and in the title bar of the browser.
    • Write these core settings - If you don't say 'yes', then you entered all that data for nothing.
  • Configure database - EPrints makes extensive use of a MySQL database. Enter 'yes' to configure this.
    • Database Name - The internal name of your database. It makes sense to use the Archive ID for this, but you don't have to. You don't need to create this database, epadmin will do it for you.
    • MySQL Host - The address of the server that the database is running on. If the database is on the same machine as the EPrints installation, enter 'localhost'.
    • MySQL Port - You probably don't need to enter a value. If you have problems connecting to the database, talk to your systems team.
    • MySQL Socket - As with MySQL Port, it's unlikely that you need to enter anything.
    • Database User - The username with which to log into the MySQL Database. You don't need to create this user, epadmin will do it for you. If you enter a MySQL username that already exists, it will be overwritten by epstats.
    • Database Password - The password for the Database User.
    • Write these database settings - You should write them, or you'll lose them.
    • Create database <Database Name> - Say yes, and epadmin can create the database and populate it with all the right tables. If you've already created a database and a user for this archive, say no.
    • MySQL Root Password - To create the database and the user, epadmin needs the MySQL Root Password. This is not saved anywhere. It is used to log into mysql, create the database and create the user with the right access rights. The password is then forgotten.
    • Create database tables - say yes to have epadmin create all the database tables.
  • Create an initial user - It's a good idea to create a user account for yourself at this point.
    • Enter a username - The username you will use to log into EPrints in your browser.
    • Select a user type (user|editor|admin) - There are three levels of user in EPrints. You probably want to be an administrator, so enter 'admin'.
    • Enter Password - A password for this user. Remember to choose a password that will be hard for someone else to guess.
    • Email - Enter your email address so that administrators can get in contact with you.
    • Do you want to build the static web pages - There are a number of pages in EPrints which change very rarely. These are the static pages. The Home page and the About page are examples of static pages. Stylesheets are also static. These pages need to be built, so say 'yes'.
    • Do you want to import the LOC subjects - If you will be using the Library Of Congress subject hierarchy, say 'yes'. Otherwise you will need to create your own subject hierarchy.
  • Do you want to update the apache config files? (you still need to add the 'Include' line) - Your archive has a number of files which it uses to configure the web server. These should be updated, so say 'yes'.
  • Before exiting, epadmin will display information about configuring the webserver.

Open a browser, and enter the hostname in the address bar. You should see your new archive, ready to be branded.

If you want to add some more users, use the command epadmin add_user <repository id>

Modifying the Default

The default document types and metadata in have been optimised for a repository of research output. It is up to you if this is sufficient. Adding new document types and modifying the metadata are discussed elsewhere.

Running a Live Archive

Creating a crontab

When you create an archive it will start out as a development system while you learn how to set it up (and your manager keeps changing his mind) but at some point (hopefully) you will declare your archive open for business.

At this point you should schedule certain scripts to run periodically. The best way to do this is to use "cron" which is an integral part of most UNIX systems.

To set up cron, run (as the eprints user):

% crontab -e

Exactly what to add to the cron table is described in the following sections - "Browse Views" and "Subscriptions".

There should be one set of crontab entries per archive.

Backups

You should also have made sure that the system is being properly backed up. This is gone into in more detail elsewhere in the documentation.

OAI

We would also encourage you to configure the OAI support for your archive and register it.

Configuring

The setting for OAI are held in the oai.pl file, in the eprints3/archives/<archive id>/cfg/cfg.d/ directory. This is a perl file, but don't let that daunt you. Some of the settings are set to sensible defaults. This guide cover the essentials. Feel free to use your favourite text editor instead of pico.

At the command prompt, backup then open the file:

>cd /opt/eprints3/archive/<archive id>/cfg/cfg.d
>cp oai.pl oai.backup
>pico oai.pl

The following need to be changed:

The archive ID. This needs to be unique, so check that it doesn't already exist at http://www.openarchives.org/.

Find the following line in oai.pl:

$oai->{v2}->{archive_id} = "generic.eprints.org";

And change generic.eprints.org to something which identifies your repository.

Content Description. What does your repository contain? Write a description, then find the lines:

$oai->{content}->{"text"} = latin1( <<END );
OAI Site description has not been configured.
END

Do not modify the first or last line in any way. Simply put your new text in the place of the middle line. This text can be as many lines as you wish, but it must not contain the word "END" at the start of a line.

Policies Next you need to define a number of policies which will define how your repository may be used. It may be helpful for you to visit http://www.opendoar.org/tools/en/policies.php which has a step-by-step process to create these policies. It will even output EPrints 3 configuration code. which you can then copy and paste into the oai.pl file. These policies are:

  • Metadata Policy
  • Data Policy
  • Submission Policy

These are updated in exactly the same way as the Content Description section. Just look for the following lines:

  • $oai->{metadata_policy}->{"text"} = latin1( <<END );
  • $oai->{data_policy}->{"text"} = latin1( <<END );
  • $oai->{submission_policy}->{"text"} = latin1( <<END );

Registering

Once you register your archive (at http://www.openarchives.org) various search systems will be able to collect the metadata (titles, authors, abstract etc.) and allow more people to find records in your archive.

See http://www.openarchives.org/ for more information on the OAI protocol. For more information setting up the OAI interface archive see the section in this documentation about Configuring an Archive.

Browse Views

Once every so often you should run the generate_views script on each archive in your system to regenerate the browse views section of the site.

This is a set of static pages. By default one per subject, and one per year (only years with papers in that year not EVERY year ever!). Some users prefer to browse the system than search it. This also gives search engines a way to reach, and index, the abstract pages.

See the views.pl config notes on how to edit the views it generates.

But I don't want this feature...

If you don't want to use this feature: don't, it's your archive. Remove the link from the template and front page. Don't run the generate_views script.

Setting it up

This is best done by using the UNIX "cron" command (as user "eprints"). Cron will email "eprints" on that machine with the output, so best use the --quiet option so it only bothers you with errors.

How often you want to run this depends on the size of your archive, and how fast the contents changes. This feature is roughly order "n". Which means if you double the number of items in your archive then you double the time it takes to run (ish).

Once an hour would seem a good starting point. If your archive gets real big, say more than 10000 records, then maybe once a day is more realistic - the one thing that you don't want to happen is for a new generate_views to start before the old one finishes as they will mess up each others output.

Run generate_views on the command line to find out how long it takes.

and add the line

23 * * * * /opt/eprints3/bin/generate_views <archiveid>

This runs at 23 minutes past each hour. If you have more than one archive, don't make them all start rebuilding stuff at the same time, stagger it. Otherwise once an hour everything will slow down as it fights to run several intensive scripts at once.

See the crontab man page for more information on using cron.

>man 5 crontab

Alerts

Alerts provide a way in which users of your system can receive regular updates, via email, when new items are added which match a search they specified.

To automate sending out these alerts you must add some entries in the crontab (as for views). You need one set of these per archive.

For example (with dookuprints being the name of the archive):

   # 00:15 every morning
   15 0 * * * /opt/eprints2/bin/send_alerts dookuprints daily
   # 00:30 every sunday morning
   30 0 * * 0 /opt/eprints2/bin/send_alerts dookuprints weekly
   # 00:45 every first of the month
   45 0 1 * * /opt/eprints2/bin/send_alerts dookuprints monthly

Note the spacing out so that all 3 don't start at once and hammer the database. You may wish to change the times, but we recommend early morning as the best time to send them (midnight-6am).