Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions controllers/grid/settings/category/form/CategoryForm.php
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,9 @@ public function fetch($request, $template = null, $display = false)
$templateMgr = TemplateManager::getManager($request);
$templateMgr->assign('categoryId', $this->getCategoryId());

$catalogPage = (Application::get()->getName() === 'ops') ? "preprints" : "catalog";
$templateMgr->assign('catalogPage', $catalogPage);

// Provide a list of root categories to the template
$rootCategoriesCollection = Repo::category()->getCollector()
->filterByParentIds([null])
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@

{fbvFormSection title="grid.category.path" required=true for="path"}
{capture assign="sampleUrl"}
{url router=\PKP\core\PKPApplication::ROUTE_PAGE page="catalog" op="category" path="path"}
{url router=\PKP\core\PKPApplication::ROUTE_PAGE page=$catalogPage op="category" path="path"}
{/capture}
{capture assign="instruct"}
{translate key="grid.category.urlWillBe" sampleUrl=$sampleUrl}
Expand All @@ -73,7 +73,7 @@
{if $image}
{fbvFormSection}
{capture assign="altTitle"}{translate key="submission.currentCoverImage"}{/capture}
<img class="pkp_helpers_container_center" height="{$image.thumbnailHeight}" width="{$image.thumbnailWidth}" src="{url router=\PKP\core\PKPApplication::ROUTE_PAGE page="catalog" op="thumbnail" type="category" id=$categoryId}" alt="{$altTitle|escape}" />
<img class="pkp_helpers_container_center" height="{$image.thumbnailHeight}" width="{$image.thumbnailWidth}" src="{url router=\PKP\core\PKPApplication::ROUTE_PAGE page=$catalogPage op="thumbnail" type="category" id=$categoryId}" alt="{$altTitle|escape}" />
{/fbvFormSection}
{/if}

Expand Down