$sysconf['library_subname'].' | '.$sysconf['library_name'],
// total opac result page
'info' => __('Web Online Public Access Catalog - Use the search options to find documents quickly'),
// total opac result page
'total_pages' => 1,
// default header info
'header_info' => (utility::isMemberLogin() ? '
'.__('You are currently Logged on as member').':
'.$_SESSION['m_name'].' ('.$_SESSION['m_email'].') '.__('LOGOUT').' ' : ''),
// HTML metadata
'metadata' => '',
// JS
'js' => '',
// searched words for javascript highlight
'searched_words_js_array' => '',
'available_languages' => $available_languages
];
// OPAC Instance
$Opac = new Opac($opacVariable, $sysconf, $dbs);
// running hook to override process/variable before
// content load
$Opac->hookBeforeContent(function($Opac){
// Set header for CSP
$Opac->setCsp();
$Opac->setHeader('X-Content-Type-Options', 'nonsniff');
// running plugin based on hook
Plugins::getInstance()->execute(Plugins::CONTENT_BEFORE_LOAD, [$Opac]);
});
// Path process or show welcome page
$Opac->handle('p')->orWelcome();
// running hook to override process/variable after
// content load
$Opac->hookAfterContent(function($Opac){
Plugins::getInstance()->execute(Plugins::CONTENT_AFTER_LOAD, [$Opac]);
});
// templating
$Opac->parseToTemplate();