Table of Contents
At code4lib 2008 we will be giving a pre-conference session on Evergreen. This is what we're planning on doing; hopefully it will be useful material for future workshops.
To avoid any heartache associated with conflicting packages, etc., we have asked participants to bring a laptop with a bootable image or VMWare image (running Debian Etch 4.0 or Ubuntu Gutsy 7.10) dedicated to Evergreen.
To avoid relying on the network for downloading packages, we have also asked participants to install the prerequisites ahead of time using the Makefile.install prereq installer.
We'll bring CDs with copies of the OpenSRF and Evergreen tarballs in case the network gods are angry.
As we go through each of the following phases, we provide commentary that explains a little bit more about what's going on, how a given piece fits into the overall system, and what's happening in trunk to make things easier / better / faster / stronger.
|Dan||Burn CDs with tarballs and MARC data and script|
Download on your Linux server
- xulrunner linux tarball (for Debian desktop people who have an ancient xulrunner)
Download on your Windows machine (if you have one)
Install and configure Evergreen
- Install OpenSRF
- Install Evergreen
- Configure opensrf_core.xml
- Talk about the role of the router Jabber user versus the Evergreen application Jabber user.
- Configure opensrf.xml
- Talk about tuning (min connections, etc).
- Talk about the services (with reference to upcoming changes in trunk).
- Talk about database replicas (reports versus core).
- Configure Apache
- IP address changes
- Talk about what mod_gateway and mod_xmlent do for us
- Configure srfsh
- Test connection
- Introspect some services; call some services? Fun wow!
- Try out the cgi-bin configuration scripts at http://localhost/cgi-bin/config.cgi:
- Add a branch (talk about org_unit hierarchy)
- Flip through circ, copy status, user groups, permissions
- Mention Django admin alternative and likely future of admin
Import bib records and holdings
Dan has made 500 bib records in MARC21XML format from Laurentian available for download from the Evergreen downloads page at http://open-ils.org/~denials/import_demo.tar.gz (including a README, some custom scripts, and the current trunk versions of marc2bre.pl, direct_ingest.pl, and parallel_pg_loader.pl).
- Discuss: Evergreen concepts of libraries, copy locations, and the bib records/call numbers/copies hierarchy
- Extract the files from
import_demo.tar.gzand change directories:
tar xzf import_demo.tar.gz cd import_demo
- Follow the steps from the Gutenberg example for importing bibs by running the import_bibs.sh script:
# Ensure that the database name, user name, and password at the top of the script # match your settings before running this script: sh import_bibs.sh
- Good chance to talk about the IDL - "what the heck is an msfe?!!" - and database
- Edit pg_loader-output.sql to uncomment the "–COMMIT;" line to "COMMIT;" to enable your additions to the database to take place.
- Load pg_loader-output.sql into the database:
# Syntax: psql -U <username> -f pg_loader-output.sql <database> psql -U evergreen -f pg_loader-output.sql evergreen
- Run the quick metarecord map to enable placing holds:
psql -U evergreen -f quick_metarecord_map.sql evergreen
parse_holdings.plto generate a file called
parse_holdings.plis just a basic script Dan wrote to extract the holdings into plain-jane SQL for the staging table import (PostgreSQL COPY format could be used but we might as well keep it simple for those not used to PostgreSQL).
Take a look at the output of
parse_holdings.sh– a file named
insert_holdings.sql. It's just a bunch of INSERT statements with the relevant copy attributes - and should be easy to create something similar from your own ILS holdings information.
- Create the staging table:
psql -U evergreen -f import_staging_table.sql evergreen
- Insert the holdings into the staging table:
psql -U evergreen -f insert_holdings.sql evergreen
- Generate the locations, call numbers, and copies in the database from the entries in the staging table:
psql -U evergreen -f generate_copies.sql evergreen
Murph might be able to step in here and walk through a few interesting parts of the staff client.
- Create a patron with an
- Do some circs
- Circulation configuration - point out
- Groovy contextual help (soon to be available en français)
- Item type templates - point out
- Reporting interface if we feel spunky
- Offline interface:
- Where is it?
- How do you upload transactions once you're connected again?
- What happens with conflicts, etc?
- Discuss a bit of Mozilla XUL:
- Benefits of server side XUL
Now that we have real live holdings in our system, we can do fun things with the catalog.
Let's use the existing advocacy script and pick some interesting things to point out - shelf browsing, etc.
Customizing Evergreen: OPAC theme
We'll borrow from the OPAC customization documentation - thanks Karen!
Customizing Evergreen: new service
Patrons often forget passwords. Heck, I often forget passwords. The Evergreen catalog currently doesn't give you the ability to reset your password. We'll add that feature in front of a live audience.
- Add the OpenSRF service Perl Code
- For bonus points, define the service in
Open-ILS/web/common/js/config.jsand call the variable instead.