#
# This is a PERL include-file, part of electronic 
# document distribution system for PSESCAPE-97
#
# $Id: defines.pl,v 1.19 1997/01/22 15:53:12 steinhau Exp $
# $Source: /local/web/PSESCAPE-97/perl/RCS/defines.pl,v $
#
# Purpose:
#    global definitions and tables
#
# Author: Steinar Hauan <steinhau@pvv.org>
#

$DEBUG        =  1;    # global debug level
$ROOT_DIR     = "/local/web/PSESCAPE-97";

$FTP_ROOT_DIR = "/local/anonftp/incoming";
$PSE_ROOT_URL = "http://www.kjemi.unit.no/PSESCAPE-97";

$CONTROL_DIR  = "$ROOT_DIR/control";
$ARTICLE_DIR  = "$ROOT_DIR/articles";
$REJECT_DIR   = "$ARTICLE_DIR/reject";
$TEMPLATE_DIR = "$ROOT_DIR/etc";
$SPOOL_DIR    = "$ROOT_DIR/spool";
$SPOOL_URL    = "$PSE_ROOT_URL/spool";

$PRINT_FILE   = "/BIN/PSE-97/print.pl";
$LPR          = "/usr/ucb/lpr -s";
$ARCHIVE_PRINTER = "pselaser";

$ABSTRACT_SPOOL_DIR  = "$SPOOL_DIR/abstracts";
$ABSTRACT_SPOOL_URL  = "$SPOOL_URL/abstracts";
$ARTICLE_SPOOL_DIR  = "$SPOOL_DIR/articles";
$ARTICLE_SPOOL_URL  = "$SPOOL_URL/articles";

$PSEADM       = "pseadm\@kjemi.unit.no";
$EMAIL_ADMIN  = "<A HREF=\"mailto:$PSEADM\">PSESCAPE-97 computer administration</A>";

$STATUS_OK    =  0;
$STATUS_ERROR = -1;

$ABS_CONFIRM     = "$ROOT_DIR/etc/confirm-abstract.template";
$PAP_CONFIRM     = "$ROOT_DIR/etc/confirm-paper.template";
$MIN_REF = 1;
$MAX_REF = 10000;

# Program paths
$AWK  = "awk";
$CP   = "cp -p";
$FILE = "file";
$LN   = "ln -s";
$MD   = "mkdir -p";
$MV   = "mv";
$LS   = "ls";
$SED  = "sed";
$SORT = "sort";
$TAIL = "/store/gnu/bin/tail";
$FIND = "/store/gnu/bin/find";

# suid programs for pseadm
$MAIL = "$ROOT_DIR/bin/elm";
$SUID_MV  = "$ROOT_DIR/bin/suid_mv";
$UNLINK  = "$ROOT_DIR/bin/ftprm.pl";
$TEX2PS = "$ROOT_DIR/bin/tex2ps";

@TAGS =
    (
     'firstname',
     'lastname',
     'email',
     'fax',
     'phone',
     'adress',
     'psfile',
     'title',
     'session',
     'comment',
     'authors',
     'type',
     'review',
     'feedback'
     );


@PAPER_TAGS =
    (
     'firstname',
     'lastname',
     'email',
     'fax',
     'phone',
     'adress',
     'psfile',
     'title',
     'authors',
     'comment',
     'ptype',
     'review',
     'affiliation'
     );

@FINAL_TAGS =
    (
     'psfile',
     'comment'
     );

# definition of document types
# accessible through GetDocType()
@DOC_TYPES =
    (
     'abstract',
     'paper',
     'review'
     );

# definition of document status
# accessible through GetDocStatus()

$DEFAULT_DOC_STATUS = "undetermined";
@DOC_STATUS =
    (
     $DEFAULT_DOC_STATUS,
     'oral',
     'poster',
     'rejected',
     'plenary'
     );

@SESSIONS =
    (
     'Design and synthesis',
     'Control and operations',
     'Modelling, simulation and numerical methods',
     'Intelligent systems',
     'Industrial applications and case studies'
     );


# definition of runtime error conditions
# in order of possible apperance
# accessible through sub GetError()
@ERROR_TYPES =
    (
     'Incomplete control file',
     'Datafile missing',
     'Datafile of unknown type'
     );
