first commit

This commit is contained in:
CHIEFSOFT\ameye
2024-06-08 17:09:23 -04:00
commit df3a033196
17887 changed files with 8637778 additions and 0 deletions
@@ -0,0 +1,23 @@
{**
* templates/controllers/grid/articleGalleys/editFormat.tpl
*
* Copyright (c) 2014-2021 Simon Fraser University
* Copyright (c) 2003-2021 John Willinsky
* Distributed under the GNU GPL v3. For full terms see the file docs/COPYING.
*
* The "edit artilce galley" tabset.
*}
<script type="text/javascript">
// Attach the JS file tab handler.
$(function() {ldelim}
$('#editArticleGalleyMetadataTabs').pkpHandler('$.pkp.controllers.TabHandler');
{rdelim});
</script>
<div id="editArticleGalleyMetadataTabs">
<ul>
<li><a href="{url router=\PKP\core\PKPApplication::ROUTE_COMPONENT op="editGalleyTab" submissionId=$submissionId publicationId=$publicationId representationId=$representationId}">{translate key="grid.action.editMetadata"}</a></li>
{if $enableIdentifiers}
<li><a href="{url router=\PKP\core\PKPApplication::ROUTE_COMPONENT op="identifiers" submissionId=$submissionId publicationId=$publicationId representationId=$representationId}">{translate key="submission.identifiers"}</a></li>
{/if}
</ul>
</div>
@@ -0,0 +1,51 @@
{**
* templates/editor/issues/articleGalleyForm.tpl
*
* Copyright (c) 2014-2021 Simon Fraser University
* Copyright (c) 2003-2021 John Willinsky
* Distributed under the GNU GPL v3. For full terms see the file docs/COPYING.
*
* Form to add/edit an issue galley.
*}
{if $urlRemote}
{assign var="remoteRepresentation" value=true}
{else}
{assign var="remoteRepresentation" value=false}
{/if}
<script type="text/javascript">
$(function() {ldelim}
// Attach the form handler.
$('#articleGalleyForm').pkpHandler('$.pkp.controllers.grid.representations.form.RepresentationFormHandler',
{ldelim}
remoteRepresentation: {$remoteRepresentation|json_encode}
{rdelim}
);
{rdelim});
</script>
<form class="pkp_form" id="articleGalleyForm" method="post" action="{url op="updateGalley" submissionId=$submissionId publicationId=$publicationId representationId=$representationId}">
{csrf}
{fbvFormArea id="galley"}
{fbvFormSection title="submission.layout.galleyLabel" required=true}
{fbvElement type="text" label="submission.layout.galleyLabelInstructions" value=$label id="label" size=$fbvStyles.size.MEDIUM inline=true required=true disabled=$formDisabled}
{/fbvFormSection}
{fbvFormSection}
{fbvElement type="select" id="locale" label="common.language" from=$supportedLocales selected=$locale|default:$formLocale size=$fbvStyles.size.MEDIUM translate=false inline=true required=true disabled=$formDisabled}
{/fbvFormSection}
{fbvFormSection for="remotelyHostedContent" list=true}
{fbvElement type="checkbox" label="submission.layout.galley.remotelyHostedContent" id="remotelyHostedContent" disabled=$formDisabled}
<div id="remote" style="display:none">
{fbvElement type="text" id="urlRemote" label="submission.layout.galley.remoteURL" value=$urlRemote disabled=$formDisabled}
</div>
{/fbvFormSection}
{fbvFormSection id="urlPathSection" title="publication.urlPath"}
{fbvElement type="text" label="publication.urlPath.description" value=$urlPath id="urlPath" size=$fbvStyles.size.MEDIUM inline=true disabled=$formDisabled}
{/fbvFormSection}
{/fbvFormArea}
{if $supportsDependentFiles}
{capture assign=dependentFilesGridUrl}{url router=\PKP\core\PKPApplication::ROUTE_COMPONENT component="grid.files.dependent.DependentFilesGridHandler" op="fetchGrid" submissionId=$submissionId publicationId=$publicationId submissionFileId=$articleGalleyFile->getId() stageId=$smarty.const.WORKFLOW_STAGE_ID_PRODUCTION escape=false}{/capture}
{load_url_in_div id="dependentFilesGridDiv" url=$dependentFilesGridUrl}
{/if}
{fbvFormButtons submitText="common.save" submitDisabled=$formDisabled hideCancel=$formDisabled}
</form>
@@ -0,0 +1,55 @@
{**
* templates/editor/issues/issueGalleyForm.tpl
*
* Copyright (c) 2014-2021 Simon Fraser University
* Copyright (c) 2003-2021 John Willinsky
* Distributed under the GNU GPL v3. For full terms see the file docs/COPYING.
*
* Form to add/edit an issue galley.
*}
<script>
$(function() {ldelim}
// Attach the form handler.
$('#issueGalleyForm').pkpHandler(
'$.pkp.controllers.form.FileUploadFormHandler',
{ldelim}
$uploader: $('#pluploadgalley'),
uploaderOptions: {ldelim}
uploadUrl: {url|json_encode op="upload" issueId=$issueId escape=false},
baseUrl: {$baseUrl|json_encode},
browse_button: 'pkpIssueGalleyUploaderButton'
{rdelim}
{rdelim}
);
{rdelim});
</script>
<form class="pkp_form" id="issueGalleyForm" method="post" action="{url op="update" issueId=$issueId issueGalleyId=$issueGalleyId}">
{csrf}
{include file="controllers/notification/inPlaceNotification.tpl" notificationId="publicationMetadataFormFieldsNotification"}
{fbvFormArea id="file"}
{fbvFormSection title="editor.issues.galley" required="true"}
{include file="controllers/fileUploadContainer.tpl" id="pluploadgalley" browseButton="pkpIssueGalleyUploaderButton"}
<input type="hidden" name="temporaryFileId" id="temporaryFileId" value="" />
{if $issueGalley}
<a href="{url op="download" issueId=$issueId issueGalleyId=$issueGalleyId}" target="_blank">{$issueGalley->getOriginalFileName()|escape}</a>
{/if}
{/fbvFormSection}
{fbvFormSection title="submission.layout.galleyLabel" required="true"}
{fbvElement type="text" value=$label id="label" required="true"}
{/fbvFormSection}
{if $enablePublisherId}
{fbvFormSection title="submission.publisherId"}
{fbvElement type="text" value=$publicGalleyId id="publicGalleyId"}
{/fbvFormSection}
{/if}
{fbvFormSection title="common.language" required="true"}
{fbvElement type="select" id="galleyLocale" from=$supportedLocales selected=$galleyLocale|default:$formLocale translate=false required="true"}
{/fbvFormSection}
{fbvFormSection title="publication.urlPath"}
{fbvElement type="text" label="publication.urlPath.description" value=$urlPath id="urlPath" size=$fbvStyles.size.MEDIUM inline=true}
{/fbvFormSection}
{/fbvFormArea}
{fbvFormButtons submitText="common.save"}
</form>
@@ -0,0 +1,34 @@
{**
* templates/controllers/grid/issues/form/issueData.tpl
*
* Copyright (c) 2014-2021 Simon Fraser University
* Copyright (c) 2003-2021 John Willinsky
* Distributed under the GNU GPL v3. For full terms see the file docs/COPYING.
*
* Form for creation and modification of an issue
*}
<script>
$(function() {ldelim}
// Attach the form handler.
$('#issueAccessForm').pkpHandler('$.pkp.controllers.form.AjaxFormHandler');
{rdelim});
</script>
<form class="pkp_form" id="issueAccessForm" method="post" action="{url op="updateAccess" issueId=$issueId}">
{* Help Link *}
{help file="issue-management" section="edit-issue-data" class="pkp_help_tab"}
{csrf}
{include file="controllers/notification/inPlaceNotification.tpl" notificationId="issueAccessNotification"}
{fbvFormArea id="issueAccessArea"}
{fbvFormSection title="editor.issues.accessStatus"}
{fbvElement required="true" type="select" id="accessStatus" from=$accessOptions selected=$accessStatus}
{/fbvFormSection}
{fbvFormSection title="editor.issues.accessDate"}
{fbvElement type="text" id="openAccessDate" value=$openAccessDate size=$fbvStyles.size.SMALL class="datepicker"}
{/fbvFormSection}
{/fbvFormArea}
{fbvFormButtons submitText="common.save"}
</form>
@@ -0,0 +1,118 @@
{**
* templates/controllers/grid/issues/form/issueData.tpl
*
* Copyright (c) 2014-2021 Simon Fraser University
* Copyright (c) 2003-2021 John Willinsky
* Distributed under the GNU GPL v3. For full terms see the file docs/COPYING.
*
* Form for creation and modification of an issue
*}
{help file="issue-management" section="edit-issue-data" class="pkp_help_tab"}
<script>
$(function() {ldelim}
// Attach the form handler.
$('#issueForm').pkpHandler(
'$.pkp.controllers.form.FileUploadFormHandler',
{ldelim}
$uploader: $('#coverImageUploader'),
$preview: $('#coverImagePreview'),
uploaderOptions: {ldelim}
uploadUrl: {url|json_encode op="uploadFile" escape=false},
baseUrl: {$baseUrl|json_encode},
filters: {ldelim}
mime_types : [
{ldelim} title : "Image files", extensions : "jpg,jpeg,png,svg" {rdelim}
]
{rdelim}
{rdelim}
{rdelim}
);
{rdelim});
</script>
<form class="pkp_form" id="issueForm" method="post" action="{url op="updateIssue" issueId=$issueId}">
{csrf}
{include file="controllers/notification/inPlaceNotification.tpl" notificationId="issueDataNotification"}
{if $issue && $issue->getPublished()}
{assign var=issuePublished value=true}
{else}
{assign var=issuePublished value=false}
{/if}
{if $issuePublished}
{fbvFormArea id="datePublishedArea" title="editor.issues.datePublished"}
{fbvFormSection}
{if $issuePublished}
{fbvElement type="text" id="datePublished" value=$datePublished size=$fbvStyles.size.SMALL class="datepicker"}
{/if}
{/fbvFormSection}
{/fbvFormArea}
{/if}
{fbvFormArea id="identificationArea" title="editor.issues.identification"}
{fbvFormSection}
{fbvElement type="text" label="issue.volume" id="volume" value=$volume maxlength="40" inline=true size=$fbvStyles.size.SMALL}
{fbvElement type="text" label="issue.number" id="number" value=$number maxlength="40" inline=true size=$fbvStyles.size.SMALL}
{fbvElement type="text" label="issue.year" id="year" value=$year maxlength="4" inline=true size=$fbvStyles.size.SMALL}
{/fbvFormSection}
{fbvFormSection}
{fbvElement type="text" label="issue.title" id="title" value=$title multilingual=true}
{/fbvFormSection}
{fbvFormSection list=true}
{fbvElement type="checkbox" label="issue.volume" id="showVolume" checked=$showVolume inline=true value=1}
{fbvElement type="checkbox" label="issue.number" id="showNumber" checked=$showNumber inline=true value=1}
{fbvElement type="checkbox" label="issue.year" id="showYear" checked=$showYear inline=true value=1}
{fbvElement type="checkbox" label="issue.title" id="showTitle" checked=$showTitle inline=true value=1}
{/fbvFormSection}
{/fbvFormArea}
{fbvFormArea id="description" title="editor.issues.description"}
{fbvElement type="textarea" id="description" value=$description multilingual=true rich=true}
{/fbvFormArea}
{fbvFormArea id="coverImage" title="editor.issues.coverPage"}
{fbvFormSection}
{include file="controllers/fileUploadContainer.tpl" id="coverImageUploader"}
<input type="hidden" name="temporaryFileId" id="temporaryFileId" value="" />
{/fbvFormSection}
{fbvFormSection id="coverImagePreview"}
{if $coverImage != ''}
<div class="pkp_form_file_view pkp_form_image_view">
<div class="img">
<img src="{$publicFilesDir}/{$coverImage|escape:"url"}{'?'|uniqid}" {if $coverImageAlt !== ''} alt="{$coverImageAlt|escape}"{/if}>
</div>
<div class="data">
<span class="title">
{translate key="common.altText"}
</span>
<span class="value">
{fbvElement type="text" id="coverImageAltText" label="common.altTextInstructions" value=$coverImageAltText}
</span>
<div id="{$deleteCoverImageLinkAction->getId()}" class="actions">
{include file="linkAction/linkAction.tpl" action=$deleteCoverImageLinkAction contextId="issueForm"}
</div>
</div>
</div>
{/if}
{/fbvFormSection}
{/fbvFormArea}
{fbvFormSection title="publication.urlPath"}
{fbvElement type="text" label="publication.urlPath.description" value=$urlPath id="urlPath" size=$fbvStyles.size.MEDIUM inline=true}
{/fbvFormSection}
{foreach from=$pubIdPlugins item=pubIdPlugin}
{assign var=pubIdMetadataFile value=$pubIdPlugin->getPubIdMetadataFile()}
{include file="$pubIdMetadataFile" pubObject=$issue}
{/foreach}
{call_hook name="Templates::Editor::Issues::IssueData::AdditionalMetadata"}
{fbvFormButtons submitText="common.save"}
</form>
@@ -0,0 +1,28 @@
{**
* templates/controllers/grid/issues/issue.tpl
*
* Copyright (c) 2014-2021 Simon Fraser University
* Copyright (c) 2003-2021 John Willinsky
* Distributed under the GNU GPL v3. For full terms see the file docs/COPYING.
*
* The "edit issue" tabset.
*}
<script type="text/javascript">
// Attach the JS file tab handler.
$(function() {ldelim}
$('#editIssueTabs').pkpHandler('$.pkp.controllers.TabHandler');
{rdelim});
</script>
<div id="editIssueTabs">
<ul>
<li><a href="{url router=\PKP\core\PKPApplication::ROUTE_COMPONENT op="issueToc" issueId=$issueId}">{translate key="issue.toc"}</a></li>
<li><a href="{url router=\PKP\core\PKPApplication::ROUTE_COMPONENT op="editIssueData" issueId=$issueId}">{translate key="editor.issues.issueData"}</a></li>
<li><a href="{url router=\PKP\core\PKPApplication::ROUTE_COMPONENT op="issueGalleys" issueId=$issueId}">{translate key="editor.issues.galleys"}</a></li>
{if $enableIdentifiers}
<li id="identifiersTab"><a href="{url router=\PKP\core\PKPApplication::ROUTE_COMPONENT op="identifiers" issueId=$issueId}">{translate key="editor.issues.identifiers"}</a></li>
{/if}
{if $currentJournal->getData('publishingMode') == \APP\journal\Journal::PUBLISHING_MODE_SUBSCRIPTION}
<li><a href="{url router=\PKP\core\PKPApplication::ROUTE_COMPONENT op="access" issueId=$issueId}">{translate key="editor.issues.access"}</a></li>
{/if}
</ul>
</div>
@@ -0,0 +1,19 @@
{**
* templates/controllers/grid/issues/issueToc.tpl
*
* Copyright (c) 2014-2021 Simon Fraser University
* Copyright (c) 2003-2021 John Willinsky
* Distributed under the GNU GPL v3. For full terms see the file docs/COPYING.
*
* Display the issue's table of contents
*}
{help file="issue-management" section="edit-issue-toc" class="pkp_help_tab"}
<script>
$(function() {ldelim}
// Attach the form handler.
$('#issueTocForm').pkpHandler('$.pkp.controllers.form.AjaxFormHandler');
{rdelim});
</script>
{capture assign=issueTocGridUrl}{url router=\PKP\core\PKPApplication::ROUTE_COMPONENT component="grid.toc.TocGridHandler" op="fetchGrid" issueId=$issue->getId() escape=false}{/capture}
{load_url_in_div id="issueTocGridContainer" url=$issueTocGridUrl}
@@ -0,0 +1,46 @@
{**
* templates/controllers/grid/pubIds/form/assignPublicIdentifiersForm.tpl
*
* Copyright (c) 2014-2021 Simon Fraser University
* Copyright (c) 2003-2021 John Willinsky
* Distributed under the GNU GPL v3. For full terms see the file docs/COPYING.
*
*}
<script>
$(function() {ldelim}
// Attach the form handler.
$('#assignPublicIdentifierForm').pkpHandler(
'$.pkp.controllers.form.AjaxFormHandler',
{ldelim}
trackFormChanges: true
{rdelim}
);
{rdelim});
</script>
{if $pubObject instanceof Issue}
<form class="pkp_form" id="assignPublicIdentifierForm" method="post" action="{url component="grid.issues.FutureIssueGridHandler" op="publishIssue" escape=false}">
<input type="hidden" name="issueId" value="{$pubObject->getId()|escape}" />
<input type="hidden" name="confirmed" value=true />
{assign var=hideCancel value=false}
{fbvFormSection for="sendIssueNotification" list="true"}
{fbvElement type="checkbox" name="sendIssueNotification" id="sendIssueNotification" checked=true label="notification.sendNotificationConfirmation" inline=true}
{/fbvFormSection}
{elseif $pubObject instanceof Article}
<form class="pkp_form" id="assignPublicIdentifierForm" method="post" action="{url router=\PKP\core\PKPApplication::ROUTE_COMPONENT component="tab.issueEntry.IssueEntryTabHandler" op="assignPubIds" escape=false}">
<input type="hidden" name="submissionId" value="{$pubObject->getId()|escape}" />
<input type="hidden" name="stageId" value="{$formParams.stageId|escape}" />
{assign var=hideCancel value=true}
{/if}
{csrf}
{if $confirmationText}
<p>{$confirmationText}</p>
{/if}
{if $approval}
{foreach from=$pubIdPlugins item=pubIdPlugin}
{assign var=pubIdAssignFile value=$pubIdPlugin->getPubIdAssignFile()}
{assign var=canBeAssigned value=$pubIdPlugin->canBeAssigned($pubObject)}
{include file="$pubIdAssignFile" pubIdPlugin=$pubIdPlugin pubObject=$pubObject canBeAssigned=$canBeAssigned}
{/foreach}
{/if}
{fbvFormButtons id="assignPublicIdentifierForm" submitText="common.ok" hideCancel=$hideCancel}
</form>
@@ -0,0 +1,28 @@
{**
* templates/controllers/grid/pubIds/pubIdExportIssuesGridFilter.tpl
*
* Copyright (c) 2014-2021 Simon Fraser University
* Copyright (c) 2000-2021 John Willinsky
* Distributed under the GNU GPL v3. For full terms see the file docs/COPYING.
*
* Filter template for issues lists.
*}
{assign var="formId" value="issuesListFilter-"|concat:$filterData.gridId}
<script type="text/javascript">
// Attach the form handler to the form.
$('#{$formId}').pkpHandler('$.pkp.controllers.form.ClientFormHandler',
{ldelim}
trackFormChanges: false
{rdelim}
);
</script>
<form class="pkp_form filter" id="{$formId}" action="{url op="fetchGrid"}" method="post">
{csrf}
{fbvFormArea id="issueSearchFormArea"|concat:$filterData.gridId}
{fbvFormSection}
{fbvElement type="select" name="statusId" id="statusId"|concat:$filterData.gridId from=$filterData.status selected=$filterSelectionData.statusId size=$fbvStyles.size.SMALL translate=false inline="true"}
{/fbvFormSection}
{* Buttons generate their own section *}
{fbvFormButtons hideCancel=true submitText="common.search"}
{/fbvFormArea}
</form>
@@ -0,0 +1,32 @@
{**
* templates/controllers/grid/pubIds/pubIdExportRepresentationsGridFilter.tpl
*
* Copyright (c) 2014-2021 Simon Fraser University
* Copyright (c) 2000-2021 John Willinsky
* Distributed under the GNU GPL v3. For full terms see the file docs/COPYING.
*
* Filter template for representations lists.
*}
{assign var="formId" value="representationsListFilter-"|concat:$filterData.gridId}
<script type="text/javascript">
// Attach the form handler to the form.
$('#{$formId}').pkpHandler('$.pkp.controllers.form.ClientFormHandler',
{ldelim}
trackFormChanges: false
{rdelim}
);
</script>
<form class="pkp_form filter" id="{$formId}" action="{url op="fetchGrid"}" method="post">
{fbvFormArea id="representationSearchFormArea"|concat:$filterData.gridId}
{fbvFormSection}
{fbvElement type="select" name="column" id="column"|concat:$filterData.gridId from=$filterData.columns selected=$filterSelectionData.column size=$fbvStyles.size.SMALL translate=false inline="true"}
{fbvElement type="search" name="search" id="search"|concat:$filterData.gridId value=$filterSelectionData.search size=$fbvStyles.size.MEDIUM inline="true"}
{/fbvFormSection}
{fbvFormSection}
{fbvElement type="select" name="issueId" id="issueId"|concat:$filterData.gridId from=$filterData.issues selected=$filterSelectionData.issueId size=$fbvStyles.size.SMALL translate=false inline="true"}
{fbvElement type="select" name="statusId" id="statusId"|concat:$filterData.gridId from=$filterData.status selected=$filterSelectionData.statusId size=$fbvStyles.size.SMALL translate=false inline="true"}
{/fbvFormSection}
{* Buttons generate their own section *}
{fbvFormButtons hideCancel=true submitText="common.search"}
{/fbvFormArea}
</form>
@@ -0,0 +1,84 @@
{**
* templates/controllers/grid/settings/section/form/sectionForm.tpl
*
* Copyright (c) 2014-2021 Simon Fraser University
* Copyright (c) 2003-2021 John Willinsky
* Distributed under the GNU GPL v3. For full terms see the file docs/COPYING.
*
* Section form under journal management.
*}
<script type="text/javascript">
$(function() {ldelim}
// Attach the form handler.
$('#sectionForm').pkpHandler('$.pkp.controllers.form.AjaxFormHandler');
{rdelim});
</script>
<form class="pkp_form" id="sectionForm" method="post" action="{url router=\PKP\core\PKPApplication::ROUTE_COMPONENT component="grid.settings.sections.SectionGridHandler" op="updateSection" sectionId=$sectionId}">
{csrf}
<input type="hidden" name="sectionId" value="{$sectionId|default:""|escape}"/>
{include file="controllers/notification/inPlaceNotification.tpl" notificationId="sectionFormNotification"}
{fbvFormArea id="sectionInfo"}
{fbvFormSection}
{fbvElement type="text" multilingual=true id="title" label="section.title" value=$title size=$fbvStyles.size.MEDIUM inline=true required=true}
{fbvElement type="text" multilingual=true id="abbrev" label="section.abbreviation" value=$abbrev maxlength="80" size=$fbvStyles.size.SMALL inline=true required=true}
{/fbvFormSection}
{fbvFormSection title="manager.sections.policy" for="policy"}
{fbvElement type="textarea" multilingual=true id="policy" value=$policy rich=true}
{/fbvFormSection}
{/fbvFormArea}
{fbvFormArea id="sectionMisc"}
{fbvFormSection title="manager.sections.wordCount" for="wordCount" inline=true size=$fbvStyles.size.MEDIUM}
{fbvElement type="text" id="wordCount" value=$wordCount maxlength="80" label="manager.sections.wordCountInstructions"}
{/fbvFormSection}
{if count($reviewFormOptions)>0}
{fbvFormSection title="submission.reviewForm" for="reviewFormId" inline=true size=$fbvStyles.size.MEDIUM}
{fbvElement type="select" id="reviewFormId" defaultLabel="manager.reviewForms.noneChosen"|translate defaultValue="" from=$reviewFormOptions selected=$reviewFormId translate=false size=$fbvStyles.size.MEDIUM inline=true}
{/fbvFormSection}
{/if}
{call_hook name="Templates::Manager::Sections::SectionForm::AdditionalMetadata" sectionId=$sectionId}
{/fbvFormArea}
{fbvFormArea id="indexingInfo" title="submission.sectionOptions"}
{fbvFormSection list=true}
{fbvElement type="checkbox" id="isInactive" checked=$isInactive label="manager.sections.form.deactivateSection"}
{fbvElement type="checkbox" id="metaReviewed" checked=$metaReviewed label="manager.sections.submissionReview"}
{fbvElement type="checkbox" id="abstractsNotRequired" checked=$abstractsNotRequired label="manager.sections.abstractsNotRequired"}
{fbvElement type="checkbox" id="metaIndexed" checked=$metaIndexed label="manager.sections.submissionIndexing"}
{fbvElement type="checkbox" id="editorRestricted" checked=$editorRestricted label="manager.sections.editorRestriction"}
{fbvElement type="checkbox" id="hideTitle" checked=$hideTitle label="manager.sections.hideTocTitle"}
{fbvElement type="checkbox" id="hideAuthor" checked=$hideAuthor label="manager.sections.hideTocAuthor"}
{/fbvFormSection}
{fbvFormSection for="identifyType" title="manager.sections.identifyType"}
{fbvElement type="text" id="identifyType" label="manager.sections.identifyTypeExamples" value=$identifyType multilingual=true size=$fbvStyles.size.MEDIUM}
{/fbvFormSection}
{/fbvFormArea}
{fbvFormSection list=true title="manager.sections.form.assignEditors"}
<div>{translate key="manager.sections.form.assignEditors.description"}</div>
{foreach from=$assignableUserGroups item="assignableUserGroup"}
{assign var="role" value=$assignableUserGroup.userGroup->getLocalizedName()}
{assign var="userGroupId" value=$assignableUserGroup.userGroup->getId()}
{foreach from=$assignableUserGroup.users item=$username key="id"}
{fbvElement
type="checkbox"
id="subEditors[{$userGroupId|escape}][]"
value=$id
checked=(isset($subeditorUserGroups[$id]) && in_array($userGroupId, $subeditorUserGroups[$id]))
label={translate key="manager.sections.form.assignEditorAs" name=$username|escape role=$role|escape}
translate=false
}
{/foreach}
{/foreach}
{/fbvFormSection}
{fbvFormButtons submitText="common.save"}
</form>
@@ -0,0 +1,33 @@
{**
* templates/controllers/grid/pubIds/exportPublishedSubmissionsGridFilter.tpl
*
* Copyright (c) 2014-2021 Simon Fraser University
* Copyright (c) 2000-2021 John Willinsky
* Distributed under the GNU GPL v3. For full terms see the file docs/COPYING.
*
* Filter template for submissions lists.
*}
{assign var="formId" value="submissionsListFilter-"|concat:$filterData.gridId}
<script type="text/javascript">
// Attach the form handler to the form.
$('#{$formId}').pkpHandler('$.pkp.controllers.form.ClientFormHandler',
{ldelim}
trackFormChanges: false
{rdelim}
);
</script>
<form class="pkp_form filter" id="{$formId}" action="{url op="fetchGrid"}" method="post">
{csrf}
{fbvFormArea id="submissionSearchFormArea"|concat:$filterData.gridId}
{fbvFormSection}
{fbvElement type="select" name="column" id="column"|concat:$filterData.gridId from=$filterData.columns selected=$filterSelectionData.column size=$fbvStyles.size.SMALL translate=false inline="true"}
{fbvElement type="search" name="search" id="search"|concat:$filterData.gridId value=$filterSelectionData.search size=$fbvStyles.size.MEDIUM inline="true"}
{/fbvFormSection}
{fbvFormSection}
{fbvElement type="select" name="issueId" id="issueId"|concat:$filterData.gridId from=$filterData.issues selected=$filterSelectionData.issueId size=$fbvStyles.size.SMALL translate=false inline="true"}
{fbvElement type="select" name="statusId" id="statusId"|concat:$filterData.gridId from=$filterData.status selected=$filterSelectionData.statusId size=$fbvStyles.size.SMALL translate=false inline="true"}
{/fbvFormSection}
{* Buttons generate their own section *}
{fbvFormButtons hideCancel=true submitText="common.search"}
{/fbvFormArea}
</form>
@@ -0,0 +1,29 @@
{**
* templates/controllers/grid/subscriptions/subscriptionsGridFilter.tpl
*
* Copyright (c) 2014-2021 Simon Fraser University
* Copyright (c) 2000-2021 John Willinsky
* Distributed under the GNU GPL v3. For full terms see the file docs/COPYING.
*
* Filter template for individual subscriptions grid.
*}
{assign var=formId value="filterForm-"|concat:$grid->getId()}
<script type="text/javascript">
// Attach the form handler to the form.
$('#{$formId}').pkpHandler('$.pkp.controllers.form.ClientFormHandler',
{ldelim}
trackFormChanges: false
{rdelim}
);
</script>
<form class="pkp_form filter" id="{$formId}" action="{url op="fetchGrid"}" method="post">
{csrf}
{fbvFormArea id="subscriptionsSearchFormArea"}
{fbvFormSection title="common.search" for="search"}
{fbvElement type="select" id="searchField" from=$filterData.fieldOptions selected=$filterSelectionData.searchField inline=true size=$fbvStyles.size.SMALL}
{fbvElement type="select" id="searchMatch" from=$filterData.matchOptions selected=$filterSelectionData.searchMatch inline=true size=$fbvStyles.size.SMALL}
{fbvElement type="search" name="search" id="search" value=$filterSelectionData.search size=$fbvStyles.size.LARGE inline="true"}
{/fbvFormSection}
{fbvFormButtons hideCancel=true submitText="common.search"}
{/fbvFormArea}
</form>
@@ -0,0 +1,22 @@
{**
* templates/controllers/grid/users/reviewer/readReview.tpl
*
* Copyright (c) 2014-2021 Simon Fraser University
* Copyright (c) 2003-2021 John Willinsky
* Distributed under the GNU GPL v3. For full terms see the file docs/COPYING.
*
* Screen to let user read a review.
*
*}
{capture assign="reviewerRecommendations"}
{include file="reviewer/review/reviewerRecommendations.tpl" description="reviewer.article.selectRecommendation.byEditor" required=false}
{/capture}
<script type="text/javascript">
$(function() {ldelim}
// Attach the form handler.
$('#readReviewForm').pkpHandler('$.pkp.controllers.form.AjaxFormHandler');
{rdelim});
</script>
{include file="core:controllers/grid/users/reviewer/readReview.tpl"}
@@ -0,0 +1,18 @@
{**
* templates/controllers/modals/publish/assignToIssue.tpl
*
* Copyright (c) 2014-2021 Simon Fraser University
* Copyright (c) 2003-2021 John Willinsky
* Distributed under the GNU GPL v3. For full terms see the file docs/COPYING.
*
* @brief Assign publication to issue before scheduling for publication
*}
{assign var="uuid" value=""|uniqid|escape}
<div id="assign-{$uuid}" class="pkpWorkflow__publishModal">
<pkp-form v-bind="components.{$smarty.const.FORM_ASSIGN_TO_ISSUE}" @set="set" />
<script type="text/javascript">
pkp.registry.init('assign-{$uuid}', 'Container', {$assignData|json_encode});
</script>
</div>
@@ -0,0 +1,18 @@
{**
* templates/controllers/tab/authorDashboard/production.tpl
*
* Copyright (c) 2014-2021 Simon Fraser University
* Copyright (c) 2003-2021 John Willinsky
* Distributed under the GNU GPL v3. For full terms see the file docs/COPYING.
*
* Display the production stage on the author dashboard.
*}
{if $submission->getStageId() >= $smarty.const.WORKFLOW_STAGE_ID_PRODUCTION}
{include file="authorDashboard/submissionEmails.tpl" submissionEmails=$productionEmails}
<!-- Display queries grid -->
{capture assign=queriesGridUrl}{url router=\PKP\core\PKPApplication::ROUTE_COMPONENT component="grid.queries.QueriesGridHandler" op="fetchGrid" submissionId=$submission->getId() stageId=$smarty.const.WORKFLOW_STAGE_ID_PRODUCTION escape=false}{/capture}
{load_url_in_div id="queriesGrid" url=$queriesGridUrl}
{else}
{translate key="submission.stageNotInitiated"}
{/if}
@@ -0,0 +1,58 @@
{**
* templates/controllers/tab/pubIds/form/publicIdentifiersForm.tpl
*
* Copyright (c) 2014-2021 Simon Fraser University
* Copyright (c) 2003-2021 John Willinsky
* Distributed under the GNU GPL v3. For full terms see the file docs/COPYING.
*
*}
<script>
$(function() {ldelim}
// Attach the form handler.
$('#publicIdentifiersForm').pkpHandler(
'$.pkp.controllers.form.AjaxFormHandler',
{ldelim}
trackFormChanges: true
{rdelim}
);
{rdelim});
</script>
{if $pubObject instanceof Article}
<form class="pkp_form" id="publicIdentifiersForm" method="post" action="{url router=\PKP\core\PKPApplication::ROUTE_COMPONENT op="updateIdentifiers"}">
{include file="controllers/notification/inPlaceNotification.tpl" notificationId="publicationIdentifiersFormFieldsNotification"}
<input type="hidden" name="submissionId" value="{$pubObject->getId()|escape}" />
<input type="hidden" name="stageId" value="{$stageId|escape}" />
<input type="hidden" name="tabPos" value="1" />
<input type="hidden" name="displayedInContainer" value="{$formParams.displayedInContainer|escape}" />
<input type="hidden" name="tab" value="identifiers" />
{elseif $pubObject instanceof \PKP\galley\Galley}
<form class="pkp_form" id="publicIdentifiersForm" method="post" action="{url component="grid.articleGalleys.ArticleGalleyGridHandler" op="updateIdentifiers" submissionId=$submissionId publicationId=$pubObject->getData('publicationId') representationId=$pubObject->getId() escape=false}">
{include file="controllers/notification/inPlaceNotification.tpl" notificationId="representationIdentifiersFormFieldsNotification"}
{elseif $pubObject instanceof SubmissionFile}
<form class="pkp_form" id="publicIdentifiersForm" method="post" action="{url component="api.file.ManageFileApiHandler" op="updateIdentifiers" fileId=$pubObject->getId() submissionId=$pubObject->getData('submissionId') stageId=$stageId fileStageId=$pubObject->getFileStage() escape=false}">
{include file="controllers/notification/inPlaceNotification.tpl" notificationId="fileIdentifiersFormFieldsNotification"}
{else} {* $pubObject instanceof Issue *}
<form class="pkp_form" id="publicIdentifiersForm" method="post" action="{url router=\PKP\core\PKPApplication::ROUTE_COMPONENT op="updateIdentifiers" issueId=$pubObject->getId()}">
{include file="controllers/notification/inPlaceNotification.tpl" notificationId="issueIdentifiersFormFieldsNotification"}
{/if}
{csrf}
{* Help Link *}
{help file="issue-management" section="edit-issue-identifiers" class="pkp_help_tab"}
{*include file="common/formErrors.tpl"*}
{if $enablePublisherId}
{fbvFormSection}
{fbvElement type="text" label="submission.publisherId" id="publisherId" name="publisherId" value=$publisherId size=$fbvStyles.size.MEDIUM disabled=$formDisabled}
{/fbvFormSection}
{/if}
{foreach from=$pubIdPlugins item=pubIdPlugin}
{assign var=pubIdMetadataFile value=$pubIdPlugin->getPubIdMetadataFile()}
{assign var=canBeAssigned value=$pubIdPlugin->canBeAssigned($pubObject)}
{include file="$pubIdMetadataFile" pubObject=$pubObject canBeAssigned=$canBeAssigned formDisabled=$formDisabled}
{/foreach}
{call_hook name="Templates::Controllers::Tab::PubIds::Form::PublicIdentifiersForm"}
{fbvFormButtons id="publicIdentifiersFormSubmit" submitText="common.save" submitDisabled=$formDisabled hideCancel=$formDisabled}
</form>
@@ -0,0 +1,31 @@
{**
* templates/controllers/tab/workflow/production.tpl
*
* Copyright (c) 2014-2021 Simon Fraser University
* Copyright (c) 2003-2021 John Willinsky
* Distributed under the GNU GPL v3. For full terms see the file docs/COPYING.
*
* Production workflow stage
*}
{* Help tab *}
{help file="editorial-workflow/production" class="pkp_help_tab"}
<div id="production">
{include file="controllers/notification/inPlaceNotification.tpl" notificationId="productionNotification" requestOptions=$productionNotificationRequestOptions refreshOn="stageStatusUpdated"}
<div class="pkp_workflow_sidebar">
{capture assign=productionEditorDecisionsUrl}{url router=\PKP\core\PKPApplication::ROUTE_PAGE page="workflow" op="editorDecisionActions" submissionId=$submission->getId() stageId=$stageId escape=false}{/capture}
{load_url_in_div id="productionEditorDecisionsDiv" url=$productionEditorDecisionsUrl class="editorDecisionActions pkp_tab_actions"}
{capture assign=stageParticipantGridUrl}{url router=\PKP\core\PKPApplication::ROUTE_COMPONENT component="grid.users.stageParticipant.StageParticipantGridHandler" op="fetchGrid" submissionId=$submission->getId() stageId=$stageId escape=false}{/capture}
{load_url_in_div id="stageParticipantGridContainer" url=$stageParticipantGridUrl class="pkp_participants_grid"}
</div>
<div class="pkp_workflow_content">
{capture assign=productionReadyFilesGridUrl}{url router=\PKP\core\PKPApplication::ROUTE_COMPONENT component="grid.files.productionReady.ProductionReadyFilesGridHandler" op="fetchGrid" submissionId=$submission->getId() stageId=$stageId escape=false}{/capture}
{load_url_in_div id="productionReadyFilesGridDiv" url=$productionReadyFilesGridUrl}
{capture assign=queriesGridUrl}{url router=\PKP\core\PKPApplication::ROUTE_COMPONENT component="grid.queries.QueriesGridHandler" op="fetchGrid" submissionId=$submission->getId() stageId=$stageId escape=false}{/capture}
{load_url_in_div id="queriesGrid" url=$queriesGridUrl}
</div>
</div>