#!/usr/local/bin/perl -w # #salami for doing a midjpg setup which INCLUDES a database file # # # This one is intended for a suite that has been through midjpg, # and also has a database. Has inline tiny JPGs, links to medium-sized # JPGs and links to the huge JPGs stored elsewhere. # the config file for DJB's new salami. Unlike Rob Hartill's, # this is actual perl code and most of the names are the same as # the one for the database forms access "config.ph". # At a pinch you could copy one of those and hope ... # Actually you would have to add @sortfields, that is new. # But perhaps it will be added to the forms access soon. # and here, field numbers always start at 0, not 1, oh well. # The filename for the list of accession (sp?) numbers you want # for the lecture. If this is a normal salami run, comment # this line out! #$ACC_FILENAME="numbers"; # The field number for the acc no. Remember, count starting at 0. #$ACC_FIELDNO=0; # the database file we want sliced $DATABASE_FILENAME="ledoux.db"; # the field seperator character in the database $FIELD_SEPARATOR=","; # the directory to put the slices in $directory="."; # fields to sort by, starting at the most important, to the least # important. Give the field number (starting at 0) preceded by an # optional control character. n means numeric field. y means year # or century field (it counts BC as negative). d means dictionary # order (ignore case). no control letter gets you ascii order. # the first sortfield will also get a master ready-index. @sortfields=("d5", "d4", "d3"); # number of rows of thumbgifs per page $MAX_ROWS=4; # number of thumbnails side by side $THUMBS_ACCROSS=3; # number of entries on each index page. $indexlength=16; # header for index pages $indexheader="Ledoux and his Circle"; # running header for indexed pages $runningheader=""; $runningfooter="
\n"; # the format to display the thumbnail gifs with. # FIELD[n] gets the n'th field from the database, starting at 0. <== NB # FIELD[n/xyz] same, but if the field is empty, xyz instead. # AUTODIR[n] gets the directory number that would go with FIELD[n] # using the Official Art History Laserdisk Standard Number Scheme # BEFORE_THUMBS must have a and AFTER_THUMBS must have # You can add other stuff such as blank lines as well. # This is the command used to figure out the size of the BIG image. # So the directory should be where the BIG images are kept. $JSIZE_COMMAND="/usr/local/bin/jsize < /public/pub/htdocs/extra5/piranesi/AUTODIR[0]/FIELD[0].JPG 2> /dev/null"; $BEFORE_THUMBS="". "Ledoux and his Circle\n"; $THUMB_FORMAT= "\n". "\n". # The little inline JPG. "\n". "\n". "\n". "\n". "
\n". # Hotlink to the BIG image, give a full URL. "\n". "BIG
\n". # Hotlink to the medium sized JPG created by midjpg. "300
\n". "
\n". # Interesting database fields. "FIELD[4]
FIELD[5] FIELD[1] FIELD[3]
JSIZE
\n"; # a fancy example. Adds a blank space after each row. replace
# with the caption of you choice! $AFTER_THUMBS="
\n"; #$AFTER_THUMBS="\n"; # Keep empty: semi-obsolete. $OUTPUT_FORMAT=""; # so require will succeed: 1;