#
# Configuration file for the forms to flat database scripts
#
# Rob Hartill March 1994 - but revised by DJB 1997
#
#Add the following to get inline GIFs as part of the information returned as
#a result of a query:
#change OUTPUT_FORMAT to include
#where FIELD[x] is the field containing some pointer to
#the thumbnail gif.
#Remember you can put whatever text you want into the
#OUTPUT_FORMAT.
####
# Set to 1 if you want to see what the equivalent GET URL should look like
$VERBOSE = 0;
####
# used only by appendref, this is the field number (starting at 1, sorry)
# that contains the image number.
$Key_Field_Number=9;
####
#The names of the fields of the database:
#these just let you give names to the fields, so that when
#checking the query, it names the fields.
#Change them to whatever you want.
@field_names = ("monument","location","commissioner","type","material","date", "artist", "detail", "imagenumber");
####
# The name of the person to email any comments to
$who_to_mail = "Michael.Greenhalgh@anu.edu.au";
####
# The datasbase path and name
$DATABASE_FILENAME = "/raid2/newimages/htdocs/bycountry/italy/rome/popolo/pics/alphabetical/newerdb";
$FORM_FILENAME = "/raid2/newimages/htdocs/bycountry/italy/rome/popolo/light_table/popolo.html";
####
#FIELD[n] refers to the nth field of the datafile. OUTPUT_FORMAT
#can however contain any text you want.
# Note the next 3 or so lines are all one string for $OUTPUT_FORMAT. DJB
# AUTODIR[x] will get FIELD[x] and convert to a directory name with 4 digits.
# SAVEFILE will get the value of the variable $Save_file_name
# eg. 14236 becomes 0142/14236
# \033 means an optional break.
# The format of matching records
$IMAGE_FIELD=9;
$OUTPUT_FORMAT = "FIELD[0] FIELD[1] FIELD[2] FIELD[3]\033 FIELD[4] FIELD[5]\033\n FIELD[6] FIELD[7]
\n";
$THUMB_FORMAT =
" \n".
" \n".
" \n";
$CHOOSE_FORMAT =
"\n";
$CHECKED_FORMAT =
"\n";
$SORT_FORMAT =
"\n";
#$CHOOSE_FORMAT = "
\n"; $END_SEARCH_MESSAGE = "
Click here for the home page..."; #the location of the images for pmbtools $imageroot="//htdocs/bycountry/italy/rome/popolo/pics/"; #"/public/pub/htdocs/extra5/piranesi/"; $imageroothttp="//htdocs/bycountry/italy/rome/popolo/pics/"; #"/public/pub/htdocs/extra5/piranesi/light_table"; $uploaddir="/public/pub/light_table_upload/"; $uploadhttp="/light_table_upload/"; $uploadftp="ftp://rubens/light_table_upload/"; $imagehttp="/.megatemp/light_table/"; $imagedir="/public/pub/htdocs/.megatemp/light_table/"; ################ nothing below this point needs changing ################### #### # Define some constants $ANDING =1; $ORING =2; $YEARS =3; $CENTURIES =4; $REG_EXP =5;