diff --git a/less/import.less b/less/import.less index 8c0d64f..4028745 100644 --- a/less/import.less +++ b/less/import.less @@ -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"; diff --git a/less/mix.less b/less/mix.less index 07273b2..9aa6ba7 100644 --- a/less/mix.less +++ b/less/mix.less @@ -46,7 +46,7 @@ cursor: pointer; } -// for issue arhcive page +// for issue archive page .issue-archive(@archive-margin) { .issue_item:nth-child(4n+1) { diff --git a/less/pages/issueArchive.less b/less/pages/issueArchive.less index 6786d0e..423d332 100644 --- a/less/pages/issueArchive.less +++ b/less/pages/issueArchive.less @@ -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%); diff --git a/less/pages/masthead.less b/less/pages/masthead.less new file mode 100644 index 0000000..2f6c730 --- /dev/null +++ b/less/pages/masthead.less @@ -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; + } + } +} diff --git a/templates/frontend/objects/article_summary.tpl b/templates/frontend/objects/article_summary.tpl index 0500f0e..9b46bc8 100644 --- a/templates/frontend/objects/article_summary.tpl +++ b/templates/frontend/objects/article_summary.tpl @@ -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} diff --git a/templates/frontend/pages/editorialHistory.tpl b/templates/frontend/pages/editorialHistory.tpl new file mode 100644 index 0000000..9fb6f7b --- /dev/null +++ b/templates/frontend/pages/editorialHistory.tpl @@ -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"} + +
+
+ +

{translate key="common.editorialHistory.page"}

+

{translate key="common.editorialHistory.page.description"}

+ {foreach from=$mastheadRoles item="mastheadRole"} + {if array_key_exists($mastheadRole->getId(), $mastheadUsers)} +

{$mastheadRole->getLocalizedName()|escape}

+ + {/if} + {/foreach} + + {include file="frontend/components/editLink.tpl" page="management" op="settings" path="context" anchor="masthead" sectionTitleKey="common.editorialHistory"} + {$currentContext->getLocalizedData('editorialHistory')} +
+
+ +{include file="frontend/components/footer.tpl"} diff --git a/templates/frontend/pages/editorialMasthead.tpl b/templates/frontend/pages/editorialMasthead.tpl new file mode 100644 index 0000000..35a1cdb --- /dev/null +++ b/templates/frontend/pages/editorialMasthead.tpl @@ -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"} + +
+
+

{translate key="common.editorialMasthead"}

+ {foreach from=$mastheadRoles item="mastheadRole"} + {if array_key_exists($mastheadRole->getId(), $mastheadUsers)} +

{$mastheadRole->getLocalizedName()|escape}

+ + {/if} + {/foreach} +
+

+ {capture assign=editorialHistoryUrl}{url page="about" op="editorialHistory" router=\PKP\core\PKPApplication::ROUTE_PAGE}{/capture} + {translate key="about.editorialMasthead.linkToEditorialHistory" url=$editorialHistoryUrl} +

+ + {if !empty($reviewers)} +

{translate key="common.editorialMasthead.peerReviewers"}

+

{translate key="common.editorialMasthead.peerReviewers.description" year=$previousYear}

+ + {/if} +
+
+ +{include file="frontend/components/footer.tpl"} diff --git a/templates/frontend/pages/editorialTeam.tpl b/templates/frontend/pages/editorialTeam.tpl deleted file mode 100644 index 5ebfbac..0000000 --- a/templates/frontend/pages/editorialTeam.tpl +++ /dev/null @@ -1,23 +0,0 @@ -{** - * templates/frontend/pages/editorialTeam.tpl - * - * Copyright (c) 2014-2020 Simon Fraser University - * 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 the editorial team. - * - * @uses $currentContext Journal|Press The current journal or press - *} - -{include file="frontend/components/header.tpl" pageTitle="about.editorialTeam"} - -
-
- {include file="frontend/components/headings.tpl" currentTitleKey="about.editorialTeam"} - {include file="frontend/components/editLink.tpl" page="management" op="settings" path="context" anchor="masthead" sectionTitleKey="about.editorialTeam"} - {$currentContext->getLocalizedSetting('editorialTeam')} -
-
- -{include file="frontend/components/footer.tpl"}