From 9cf36b9ca4183ea784c82705235a1116e68d07f1 Mon Sep 17 00:00:00 2001 From: Frankl1nx Date: Sat, 15 Aug 2020 20:18:12 +0200 Subject: [PATCH 1/5] Add files via upload adding a page in OMP that displays the available book series. --- .../frontend/pages/catalogSeriesIndex.tpl | 66 +++++++++++++++++++ 1 file changed, 66 insertions(+) create mode 100644 templates/frontend/pages/catalogSeriesIndex.tpl diff --git a/templates/frontend/pages/catalogSeriesIndex.tpl b/templates/frontend/pages/catalogSeriesIndex.tpl new file mode 100644 index 00000000000..d3bfee12e25 --- /dev/null +++ b/templates/frontend/pages/catalogSeriesIndex.tpl @@ -0,0 +1,66 @@ +{** + * templates/frontend/pages/catalogSeries.tpl + * + * Copyright (c) 2014-2017 Simon Fraser University Library + * Copyright (c) 2003-2017 John Willinsky + * Distributed under the GNU GPL v2. For full terms see the file docs/COPYING. + * + * @brief Display the page to view books in a series in the catalog. + * + * @uses $series Series Current series being viewed + * @uses $publishedMonographs array List of published monographs in this series + * @uses $featuredMonographIds array List of featured monograph IDs in this series + * @uses $newReleasesMonographs array List of new monographs in this series + *} +{include file="frontend/components/header.tpl" pageTitle="plugins.block.browse.series"} + +
+ + {* Breadcrumb *} + {include file="frontend/components/breadcrumbs_catalog.tpl" type="series" currentTitleKey="plugins.block.browse.series"} + +

+ {translate key="plugins.block.browse.series"} +

+ + {* Index with series *} +
+ +
+ +
+ +{include file="frontend/components/footer.tpl"} From dfb35a745f10ccbb7aa51f3829dc6a29377b7392 Mon Sep 17 00:00:00 2001 From: Frankl1nx Date: Sat, 15 Aug 2020 20:21:03 +0200 Subject: [PATCH 2/5] Update index.php adding the overview page for the series: seriesIndex.tpl. it was noted that series.tpl would semantically more beautiful but that filename is already taken. --- pages/catalog/index.php | 1 + 1 file changed, 1 insertion(+) 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'); From 6f9921a7b4cb580c360fff00ab5ce8133659b53e Mon Sep 17 00:00:00 2001 From: Frankl1nx Date: Sat, 15 Aug 2020 20:25:45 +0200 Subject: [PATCH 3/5] Update CatalogHandler.inc.php edit facilitates an index page for series --- pages/catalog/CatalogHandler.inc.php | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) 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. From 94ebb6574c1b5a48bfcc69d1469f5b12f5151d17 Mon Sep 17 00:00:00 2001 From: Frankl1nx Date: Sun, 20 Sep 2020 19:16:10 +0200 Subject: [PATCH 4/5] Update catalogSeriesIndex.tpl --- .../frontend/pages/catalogSeriesIndex.tpl | 93 ++++++++++--------- 1 file changed, 48 insertions(+), 45 deletions(-) diff --git a/templates/frontend/pages/catalogSeriesIndex.tpl b/templates/frontend/pages/catalogSeriesIndex.tpl index d3bfee12e25..ad1c96706be 100644 --- a/templates/frontend/pages/catalogSeriesIndex.tpl +++ b/templates/frontend/pages/catalogSeriesIndex.tpl @@ -1,66 +1,69 @@ {** - * templates/frontend/pages/catalogSeries.tpl + * templates/frontend/pages/catalogSeriesIndex.tpl * - * Copyright (c) 2014-2017 Simon Fraser University Library - * Copyright (c) 2003-2017 John Willinsky + * 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 the page to view books in a series in the catalog. - * - * @uses $series Series Current series being viewed - * @uses $publishedMonographs array List of published monographs in this series - * @uses $featuredMonographIds array List of featured monograph IDs in this series - * @uses $newReleasesMonographs array List of new monographs in this series + * @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="plugins.block.browse.series"} + +{include file="frontend/components/header.tpl" pageTitle="series.series"}
{* Breadcrumb *} - {include file="frontend/components/breadcrumbs_catalog.tpl" type="series" currentTitleKey="plugins.block.browse.series"} + {include file="frontend/components/breadcrumbs_catalog.tpl" type="series" currentTitleKey="series.series"} -

- {translate key="plugins.block.browse.series"} -

+

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

{* Index with series *} -
-
-
{include file="frontend/components/footer.tpl"} From 61f5c0c592ede97a6acb72ec24bfa22029ce7952 Mon Sep 17 00:00:00 2001 From: Frankl1nx Date: Sun, 20 Sep 2020 19:19:21 +0200 Subject: [PATCH 5/5] Update catalogSeriesIndex.tpl --- templates/frontend/pages/catalogSeriesIndex.tpl | 1 + 1 file changed, 1 insertion(+) diff --git a/templates/frontend/pages/catalogSeriesIndex.tpl b/templates/frontend/pages/catalogSeriesIndex.tpl index ad1c96706be..20b8d0c7106 100644 --- a/templates/frontend/pages/catalogSeriesIndex.tpl +++ b/templates/frontend/pages/catalogSeriesIndex.tpl @@ -59,6 +59,7 @@ {/if} + {/iterate} {/if}