16 import(
'classes.handler.Handler');
23 parent::__construct();
31 function index($args, $request) {
33 $press = $request->getPress();
34 if ($press ==
null) $request->redirect(
'index');
38 $contentOnly = $request->getUserVar(
'contentOnly');
40 switch(array_shift($args)) {
42 $content = $press->getLocalizedSetting(
'readerInformation');
43 $pageTitle =
'navigation.infoForReaders.long';
44 $pageCrumbTitle =
'navigation.infoForReaders';
47 $content = $press->getLocalizedSetting(
'authorInformation');
48 $pageTitle =
'navigation.infoForAuthors.long';
49 $pageCrumbTitle =
'navigation.infoForAuthors';
52 $content = $press->getLocalizedSetting(
'librarianInformation');
53 $pageTitle =
'navigation.infoForLibrarians.long';
54 $pageCrumbTitle =
'navigation.infoForLibrarians';
56 case 'competingInterestPolicy':
57 $content = $press->getLocalizedSetting(
'competingInterestPolicy');
58 $pageTitle = $pageCrumbTitle =
'navigation.competingInterestPolicy';
60 case 'sampleCopyrightWording':
61 $content = __(
'manager.setup.copyrightNotice.sample');
62 $pageTitle = $pageCrumbTitle =
'manager.setup.copyrightNotice';
65 $request->redirect($press->getPath());
70 $templateMgr->assign(
'pageCrumbTitle', $pageCrumbTitle);
71 $templateMgr->assign(
'pageTitle', $pageTitle);
72 $templateMgr->assign(
'content', $content);
73 $templateMgr->assign(
'contentOnly', $contentOnly);
75 $templateMgr->display(
'frontend/pages/information.tpl');
79 $this->
index(array(
'readers'), $request);
83 $this->
index(array(
'authors'), $request);
87 $this->
index(array(
'librarians'), $request);
91 return $this->
index(array(
'competingInterestPolicy'), $request);
95 $this->
index(array(
'sampleCopyrightWording'), $request);
103 parent::setupTemplate($request);
105 if (!$press->getSetting(
'restrictSiteAccess')) {
107 $templateMgr->setCacheability(CACHEABILITY_PUBLIC);