Findaidclass.cfg
From DLXS Documentation
package FCGlobals;
- Copyright 2003, The Regents of The University of Michigan, All Rights Reserved
- Permission is hereby granted, free of charge, to any person obtaining
- a copy of this software and associated documentation files (the
- "Software"), to deal in the Software without restriction, including
- without limitation the rights to use, copy, modify, merge, publish,
- distribute, sublicense, and/or sell copies of the Software, and to
- permit persons to whom the Software is furnished to do so, subject
- to the following conditions:
- The above copyright notice and this permission notice shall be
- included in all copies or substantial portions of the Software.
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
- EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
- MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
- IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
- CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
- TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
- SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
BEGIN { require 'LibGlobals.cfg'; }
- **********************************************************************
- required definitions for findaid-idx
- > OPEN CONFIG BLOCK =================================================
- > print "\n\nConfiguring findaidclass.cfg\n\n";
- > CLOSE CONFIG BLOCK ================================================
- unbuffered output
$| = 1;
- **********************************************************************
- DAO filtering
- **********************************************************************
- > OPEN CONFIG BLOCK =================================================
$gEnableDaoResolution = 1;
- > $gEnableDaoResolution = query_option( q{Enable filtering of DAOs. . },
- > $gEnableDaoResolution, qw( 1 0 ) );
- > CLOSE CONFIG BLOCK ================================================
$gNameResolver = ;
$gIdResolverHost = $LibGlobals::gIdResolver;
- Needed for object factory attributes
$gClassName = 'findaid'; $gClassSubPath = '/f/findaid'; $gClassModulePath = 'cgi/f/findaid';
- Class level PIFiller modules (used when needed in cross collection
- mode (see lib/DLXSApp::CreatePiFiller)
$gAppXsltPiFillerModule = 'FindaidAppXsltPIFiller';
- **********************************************************************
- D a t a b a s e C o n f i g u r a t i o n
- **********************************************************************
- DEBUGGING
$gUseDevMySQLServer = 0;
$MySQL_server = $gUseDevMySQLServer ? $LibGlobals::MySQL_devserver : $LibGlobals::MySQL_prodserver; $MySQL_datasourcename = qq{DBI:mysql:$LibGlobals::MySQL_dbname:$FCGlobals::MySQL_server:};
%gDBCollTables = ('Collection' => {'Select' => ['*'],
'Class' => "$FCGlobals::gClassName"}, 'FindaidClass' => {'Select' => ['*'], 'Class' => "$FCGlobals::gClassName"}, );
%gDBGroupTables = ('GroupData' => {'Select' => ['*'],
'Class' => "$FCGlobals::gClassName"}, 'GroupColl' => {'Select' => ['groupid', 'collids'], 'Class' => "$FCGlobals::gClassName"}, 'FindaidClassGroup'=> {'Select' => ['*'], 'Class' => "$FCGlobals::gClassName"}, );
@gDBBrowseItemTables = (
'ItemColl', 'ItemBrowse', 'ItemBrowseCounts', );
%gDatabaseConfig =
(
'CSV' => { 'datasourcename' => $LibGlobals::CSV_datasourcename, 'user' => , 'password' => , 'dbcolltables' => \%gDBCollTables, 'dbgrouptables' => \%gDBGroupTables, }, 'MySQL'=> { 'datasourcename' => $FCGlobals::MySQL_datasourcename, 'user' => $LibGlobals::MySQL_username, 'password' => $LibGlobals::MySQL_password, 'dbcolltables' => \%gDBCollTables, 'dbgrouptables' => \%gDBGroupTables, 'dbcharset' => $LibGlobals::MySQL_charset, },
);
- **********************************************************************
- location of html template files (web DocRoot space)
- **********************************************************************
$gTermMapperFilePath = '/misc/f/findaid/maps'; $gClassHtmlDir = $ENV{'DLXSROOT'} . '/web/f/findaid/'; # actual doc root directory $gClassHtmlDocRoot = '/f/findaid/'; # server doc root alias
- Fallback directories
$gGroupHtmlDir = $ENV{'DLXSROOT'} . '/web/'; $gCollHtmlDir = $ENV{'DLXSROOT'} . '/web/';
$gScriptDir = '/cgi/f/findaid/'; # server cgi script root alias
- **********************************************************************
- Results display slicing and sorting
- **********************************************************************
$gGlobalSortThreshold = 1000; $gDefaultSliceSize = 25; $gBrowseSliceSize = 0; # no slicing $gDefaultStart = 1; $gPageGroupSize = 10;
- **********************************************************************
- Package is a place where one might keep routines that are very
- specific to a local implementation. Then follow one or more routines
- in that package that might be needed.
- **********************************************************************
$gAllSelectedLabel = 'results.allselectedcolls';
- **********************************************************************
- CGI locations (actual server cgi root and URL for it
- **********************************************************************
$gHTTPPrefix = 'http://' . &DlpsUtils::Find_HTTP_HostName; $gClassCgiRoot = '/cgi/f/findaid/findaid-idx'; $gClassCgi = $gHTTPPrefix . $gClassCgiRoot; $gHelpLink = '/f/findaid/help';
- Title (text or graphic) to display for Cross-Collection mode
$gCrossCollectionTitle = 'graphic:umdlfindaid-smbanner.gif'; $gHomePageName = 'home'; $gHomePortalPageName = 'home';
- **********************************************************************
- Hash of section heads that XPAT should search for. A reference to
- this hash is added as member data keyed by 'tocheads' to the
- FindaidClass object at initialization time. Comment out those that
- are missing in your finding aids.
- **********************************************************************
%gSectHeadsHash = (
'bioghist-t' => { 'collection' => qq{Biography}, 'recordgrp' => qq{History}, }, 'controlaccess-t' => qq{Subject Terms}, 'frontmatter-t' => qq{Title Page}, 'arrangement-t' => qq{Arrangement}, 'scopecontent-t' => qq{Collection Scope and Content Note}, 'summaryinfo-t' => qq{Summary Information}, 'contentslist-t' => qq{Contents List}, 'admininfo-t' => qq{Access and Use}, 'add-t' => qq{Additional Descriptive Data}, );
- **********************************************************************
- File extensions allowable in entity names (for filtering)
- **********************************************************************
@gEntityExtensionsToCheck = (
'.gif', '.jpeg', '.jpg', '.tif', '.tiff', '.mov', '.GIF', '.JPEG', '.JPG', '.TIF', '.TIFF', '.MOV', );
- **********************************************************************
- Name of XML template files for each type of "page" and results
- **********************************************************************
%gXmlFiles = (
'home' => { 'default' => 'home.xml' },
# pages with search forms 'simple' => { 'default' => 'search.xml' }, 'boolean' => { 'default' => 'search.xml' }, # to text XML/XSLT Plan B and Item table based dynamic browsing 'browse' => { 'default' => 'browse.xml' },
# result views 'reslist' => { 'default' => 'reslist.xml', 'detail' => 'reslist.xml', 'standard' => 'text.xml', 'text' => 'text.xml', },
'bbaglist' => { 'default' => 'bookbag.xml' }, 'bbagemail' => { 'default' => 'bookbag.xml' }, 'bbagcount' => { 'default' => 'bbagcount.xml' },
'simplebbag' => { 'default' => 'bookbag.xml' }, 'booleanbbag' => { 'default' => 'bookbag.xml' },
'viewtextnote' => { 'default' => 'viewtextnote.xml' }, 'history' => { 'default' => 'searchhistory.xml' }, 'text' => { 'default' => 'text.xml' }, );
$gEmailBookbagXsl = 'bbagemailoutput.xsl';
$gDownloadBookbagXsl = 'bbagdownloadoutput.xsl';
- Hash defines the labels that correspond to the sort fields specified
- in the 'sortflds' collmgr field
@gSortFieldsOrder =
( 'occur', 'author', 'title', 'datea', 'dated', 'freq', );
%gSortFields =
( 'occur' => 'not sorted', 'author' => 'creator', 'title' => 'title', 'datea' => 'date ascending', 'dated' => 'date descending', 'freq' => 'frequency', );
$gOverSortThresholdMsg_XML = qq{sort.overthreshold};
@gBooleanOperators = ('AND', 'OR', 'NOT',); @gProximityOperators = ('NEAR', 'NOT NEAR', 'FOLLOWED BY', 'NOT FOLLOWED BY');
- **********************************************************************
- standard errors
- **********************************************************************
%gERRORS = (
'PAGE_NOT_FOUND' => qq{Cannot find html template page: }, 'NO_COLLS' => qq{No collections available: }, 'NO_Q1' => qq{You must enter a search term when submitting a search: }, 'NO_CITE1' => qq{You must enter a search term when submitting a search: }, 'NO_SESSION' => qq{Problem starting session: }, 'XPAT_START_ERROR' => qq{XPat search engine failed start up: }, 'XPAT_SEARCH_ERROR' => qq{XPat search engine returned an error, call for help: }, 'NO_ID' => qq{Target view requires id parameter: }, 'NO_IDNO' => qq{idno parameter required: }, 'NO_DIDNO' => qq{didno parameter required: }, 'BAD_FIELD_TYPE' => qq{Invalid field type from colldb: }, 'NOTE_FILTER' => qq{Error during notes filtering: }, 'BAD_PI' => qq{Error during PI processing: }, );
- server web root for transient, cached html pages and pageviewer image caching
$gCacheDir = $ENV{'DLXSROOT'} . '/web/cache/'; $gCacheDocRoot = '/cache/'; $gCacheHtmlDir = $ENV{'DLXSROOT'} . '/web/cache/';
- ***** General configuration
$adminLink = $LibGlobals::gGeneralEmailLink; $adminText = $LibGlobals::gGeneralEmailText;
- end global variables
- ---------------------------------------------------------------------
1;