#* Additional initialization activity #**************************************************************************** ## get default collection name class myQuery extends Query { function getDefault() { $sql = "SELECT * FROM `collection_dm` " . " WHERE `default_flg`='Y' "; //echo "sql=$sql <br />"; return $this->select01($sql); } } $Q = new myQuery(); $Q->connect(); $s = $Q->getDefault(); $Q->close(); //print_r($s); $postVars['defaultCollect'] = $s['description']; ## set protocol flag if ($postVars[protocol] == 'YAZ') { //echo " want to use YAZ protocol <br />"; $useYAZ = true; $useSRU = false; } else { if ($postVars[protocol] == 'SRU') { //echo " want to use SRU protocol <br />"; $useSRU = true; $useYAZ = false; } else { echo "invalid protocol '{$postVars['protocol']}' specified."; }