Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
pkp/pkp-lib#10200 remove editorial team, add editorial masthead and h…
Browse files Browse the repository at this point in the history
…istory templates
kaitlinnewson committed Dec 13, 2024
1 parent 68eecbd commit e1e812a
Showing 8 changed files with 176 additions and 26 deletions.
1 change: 1 addition & 0 deletions less/import.less
Original file line number Diff line number Diff line change
@@ -55,6 +55,7 @@
@import "pages/contact.less";
@import "pages/orcid.less";
@import "pages/catalogCategory.less";
@import "pages/masthead.less";

@import "plugins/citationStyle/csl.less";
@import "plugins/recommendByAuthor/articleFooter.less";
2 changes: 1 addition & 1 deletion less/mix.less
Original file line number Diff line number Diff line change
@@ -46,7 +46,7 @@
cursor: pointer;
}

// for issue arhcive page
// for issue archive page

.issue-archive(@archive-margin) {
.issue_item:nth-child(4n+1) {
2 changes: 1 addition & 1 deletion less/pages/issueArchive.less
Original file line number Diff line number Diff line change
@@ -24,7 +24,7 @@
margin-bottom: 50px;
}

// issue arhcive page for different screens
// issue archive page for different screens

@media (min-width: 1800px) {
.issue-archive(55%);
39 changes: 39 additions & 0 deletions less/pages/masthead.less
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
/*
* @file plugins/themes/default/styles/pages/masthead.less
*
* Copyright (c) 2014-2024 Simon Fraser University
* Copyright (c) 2003-2024 John Willinsky
* Distributed under the GNU GPL v3. For full terms see the file docs/COPYING.
*
* @brief Styles applying to the masthead and editorial history page
* @link templates/frontend/pages/editorialMasthead.tpl
* @link templates/frontend/pages/editorialHistory.tpl
*/

.page_masthead {
h2 {
margin-top: 35px;
}

.user_listing {
padding: 0;
margin-top: 35px;
list-style-type: none;

li {
margin-bottom: 35px;
}

li > span {
display: block;
}

.name {
font-weight: bold;
}

.orcid_icon {
margin-left: 5px;
}
}
}
2 changes: 1 addition & 1 deletion templates/frontend/objects/article_summary.tpl
Original file line number Diff line number Diff line change
@@ -68,7 +68,7 @@
{foreach from=$article->getGalleys() item=galley}
{if $primaryGenreIds}
{assign var="file" value=$galley->getFile()}
{if !$galley->getRemoteUrl() && !($file && in_array($file->getGenreId(), $primaryGenreIds))}
{if !$galley->getData('urlRemote') && !($file && in_array($file->getGenreId(), $primaryGenreIds))}
{continue}
{/if}
{/if}
58 changes: 58 additions & 0 deletions templates/frontend/pages/editorialHistory.tpl
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
{**
* templates/frontend/pages/editorialHistory.tpl
*
* Copyright (c) 2024 Simon Fraser University
* Copyright (c) 2024 John Willinsky
* Distributed under the GNU GPL v3. For full terms see the file docs/COPYING.
*
* @brief Display context's editorial history page.
*
*}
{include file="frontend/components/header.tpl" pageTitle="common.editorialHistory"}

<main class="page page_masthead">
<div class="container-fluid container-page container-narrow">

<h1>{translate key="common.editorialHistory.page"}</h1>
<p>{translate key="common.editorialHistory.page.description"}</p>
{foreach from=$mastheadRoles item="mastheadRole"}
{if array_key_exists($mastheadRole->getId(), $mastheadUsers)}
<h2>{$mastheadRole->getLocalizedName()|escape}</h2>
<ul class="user_listing" role="list">
{foreach from=$mastheadUsers[$mastheadRole->getId()] item="mastheadUser"}
<li>
{strip}
<span class="date_start">
{foreach name="services" from=$mastheadUser['services'] item="service"}
{translate key="common.fromUntil" from=$service['dateStart'] until=$service['dateEnd']}
{if !$smarty.foreach.services.last}{translate key="common.commaListSeparator"}{/if}
{/foreach}
</span>
<span class="name">
{$mastheadUser['user']->getFullName()|escape}
{if $mastheadUser['user']->getData('orcid') && $mastheadUser['user']->getData('orcidAccessToken')}
<a class="orcid-image-url" href="{$mastheadUser['user']->getData('orcid')|escape}" target="_blank" aria-label="{translate key="common.editorialHistory.page.orcidLink" name=$mastheadUser['user']->getFullName()|escape}">
{if $orcidIcon}
{$orcidIcon}
{else}
<img src="{$baseUrl}/{$orcidImageUrl}">
{/if}
</a>
{/if}
</span>
{if !empty($mastheadUser['user']->getLocalizedData('affiliation'))}
<span class="affiliation">{$mastheadUser['user']->getLocalizedData('affiliation')|escape}</span>
{/if}
{/strip}
</li>
{/foreach}
</ul>
{/if}
{/foreach}

{include file="frontend/components/editLink.tpl" page="management" op="settings" path="context" anchor="masthead" sectionTitleKey="common.editorialHistory"}
{$currentContext->getLocalizedData('editorialHistory')}
</div>
</main><!-- .page -->

{include file="frontend/components/footer.tpl"}
75 changes: 75 additions & 0 deletions templates/frontend/pages/editorialMasthead.tpl
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
{**
* templates/frontend/pages/editorialMasthead.tpl
*
* Copyright (c) 2024 Simon Fraser University
* Copyright (c) 2024 John Willinsky
* Distributed under the GNU GPL v3. For full terms see the file docs/COPYING.
*
* @brief Display context's editorial masthead page.
*
*}
{include file="frontend/components/header.tpl" pageTitle="common.editorialMasthead"}

<main class="page page_masthead">
<div class="container-fluid container-page container-narrow">
<h1>{translate key="common.editorialMasthead"}</h1>
{foreach from=$mastheadRoles item="mastheadRole"}
{if array_key_exists($mastheadRole->getId(), $mastheadUsers)}
<h2>{$mastheadRole->getLocalizedName()|escape}</h2>
<ul class="user_listing" role="list">
{foreach from=$mastheadUsers[$mastheadRole->getId()] item="mastheadUser"}
<li>
{strip}
<span class="date_start">{translate key="common.fromUntil" from=$mastheadUser['dateStart'] until=""}</span>
<span class="name">
{$mastheadUser['user']->getFullName()|escape}
{if $mastheadUser['user']->getData('orcid') && $mastheadUser['user']->getData('orcidAccessToken')}
<a class="orcid-image-url" href="{$mastheadUser['user']->getData('orcid')|escape}" target="_blank" aria-label="{translate key="common.editorialHistory.page.orcidLink" name=$mastheadUser['user']->getFullName()|escape}">
{$orcidIcon}
</a>
{/if}
</span>
{if !empty($mastheadUser['user']->getLocalizedData('affiliation'))}
<span class="affiliation">{$mastheadUser['user']->getLocalizedData('affiliation')|escape}</span>
{/if}
{/strip}
</li>
{/foreach}
</ul>
{/if}
{/foreach}
<hr>
<p>
{capture assign=editorialHistoryUrl}{url page="about" op="editorialHistory" router=\PKP\core\PKPApplication::ROUTE_PAGE}{/capture}
{translate key="about.editorialMasthead.linkToEditorialHistory" url=$editorialHistoryUrl}
</p>

{if !empty($reviewers)}
<h2>{translate key="common.editorialMasthead.peerReviewers"}</h2>
<p>{translate key="common.editorialMasthead.peerReviewers.description" year=$previousYear}</p>
<ul class="user_listing" role="list">
{foreach from=$reviewers item="reviewer"}
<li>
{strip}
<span class="name">
{$reviewer->getFullName()|escape}
{if $reviewer->getData('orcid') && $reviewer->getData('orcidAccessToken')}
<span class="orcid">
<a href="{$reviewer->getData('orcid')|escape}" target="_blank" aria-label="{translate key="common.editorialHistory.page.orcidLink" name=$reviewer->getFullName()|escape}">
{$orcidIcon}
</a>
</span>
{/if}
</span>
{if !empty($reviewer->getLocalizedData('affiliation'))}
<span class="affiliation">{$reviewer->getLocalizedData('affiliation')|escape}</span>
{/if}
{/strip}
</li>
{/foreach}
</ul>
{/if}
</div>
</main><!-- .page -->

{include file="frontend/components/footer.tpl"}
23 changes: 0 additions & 23 deletions templates/frontend/pages/editorialTeam.tpl

This file was deleted.

0 comments on commit e1e812a

Please sign in to comment.