diff --git a/pages/catalog/CatalogHandler.inc.php b/pages/catalog/CatalogHandler.inc.php index 6499b2bca64..70fdaec9265 100644 --- a/pages/catalog/CatalogHandler.inc.php +++ b/pages/catalog/CatalogHandler.inc.php @@ -179,6 +179,26 @@ function series($args, $request) { return $templateMgr->display('frontend/pages/catalogSeries.tpl'); } + + /** Show an index of the available series. + * @param $args array + * @param $request PKPRequest + * @return string + */ + + function seriesIndex($args, $request) { + $templateMgr = TemplateManager::getManager($request); + $this->setupTemplate($request); + $press = $request->getPress(); + + // Provide a list of series to browse + $seriesDao = DAORegistry::getDAO('SeriesDAO'); + $series = $seriesDao->getByPressId($press->getId()); + $templateMgr->assign('browseSeriesFactory', $series); + + // Display + $templateMgr->display('frontend/pages/catalogSeriesIndex.tpl'); + } /** * @deprecated Since OMP 3.2.1, use pages/search instead. diff --git a/pages/catalog/index.php b/pages/catalog/index.php index 8fd34e3c149..c40acc620e1 100644 --- a/pages/catalog/index.php +++ b/pages/catalog/index.php @@ -23,6 +23,7 @@ case 'fullSize': case 'newReleases': case 'series': + case 'seriesIndex': case 'thumbnail': case 'results': define('HANDLER_CLASS', 'CatalogHandler'); diff --git a/templates/frontend/pages/catalogSeriesIndex.tpl b/templates/frontend/pages/catalogSeriesIndex.tpl new file mode 100644 index 00000000000..20b8d0c7106 --- /dev/null +++ b/templates/frontend/pages/catalogSeriesIndex.tpl @@ -0,0 +1,70 @@ +{** + * templates/frontend/pages/catalogSeriesIndex.tpl + * + * Copyright (c) 2014-2020 Simon Fraser University Library + * Copyright (c) 2003-2020 John Willinsky + * Distributed under the GNU GPL v2. For full terms see the file docs/COPYING. + * + * @brief Display a page with an overview the Book series in the press. + * @uses $browseSeriesFactory array List of series + *} + +{include file="frontend/components/header.tpl" pageTitle="series.series"} + +
+ + {* Breadcrumb *} + {include file="frontend/components/breadcrumbs_catalog.tpl" type="series" currentTitleKey="series.series"} + +

+ {translate key="series.series"} +

+ + {* Index with series *} +
+ +
+
+ +{include file="frontend/components/footer.tpl"}