This repository has been archived by the owner on Dec 14, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1671 from ojs/hotfix/author-grid-translation
Author grid translation
Showing
17 changed files
with
215 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
<?php | ||
|
||
namespace Ojs\CoreBundle\Params; | ||
|
||
class IssueFileParams | ||
{ | ||
const OTHER = 0; | ||
const SUPPLEMENTARY_FILE = 1; | ||
const RESEARCH_METARIALS = 2; | ||
const RESEARCH_RESULTS = 3; | ||
const TRANSCRIPTS = 4; | ||
const DATA_ANALYSIS = 5; | ||
const DATA_SET = 6; | ||
const SOURCE_TEXT = 7; | ||
const PICTURES = 8; | ||
const TABLES = 9; | ||
const COPYRIGHT_TRANSFER_FORM = 10; | ||
const COMPETING_OF_INSTEREST_FILE = 11; | ||
|
||
/** | ||
* | ||
* @var array | ||
*/ | ||
public static $FILE_TYPES = array( | ||
self::OTHER => 'other', | ||
self::SUPPLEMENTARY_FILE => 'workflow.supp_file', | ||
self::RESEARCH_METARIALS => 'workflow.research_materials', | ||
self::RESEARCH_RESULTS => 'workflow.research_results', | ||
self::TRANSCRIPTS => 'transcripts', | ||
self::DATA_ANALYSIS => 'article.data.analysis', | ||
self::DATA_SET => 'dataset', | ||
self::SOURCE_TEXT => 'source.text', | ||
self::PICTURES => 'pictures', | ||
self::TABLES => 'tables', | ||
self::COPYRIGHT_TRANSFER_FORM => 'copyright.transfer.form', | ||
self::COMPETING_OF_INSTEREST_FILE => 'competing.of.interest.file', | ||
); | ||
|
||
/** | ||
* | ||
* @param integer $typeNum | ||
* @return string | ||
*/ | ||
public static function fileType($typeNum) | ||
{ | ||
return isset(self::$FILE_TYPES[$typeNum]) ? self::$FILE_TYPES[$typeNum] : null; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
38 changes: 38 additions & 0 deletions
38
src/Ojs/JournalBundle/Resources/views/JournalPage/sort.html.twig
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
{% extends '::ojsbase.html.twig' %} | ||
{% block title %}{{ 'title.page_sort'|trans }} {{ parent() }}{% endblock %} | ||
|
||
{% block breadcrumb %} | ||
{% set list = [ | ||
{'link': path('ojs_journal_dashboard_index', {journalId: selectedJournal().id}), 'title': 'dashboard'|trans}, | ||
{'link': path('ojs_journal_page_index', {'journalId': selectedJournal().id}),'title': 'title.pages'|trans}, | ||
{'title': 'title.page_sort'|trans} | ||
] %} | ||
{{ breadcrumb(list) }} | ||
{% endblock %} | ||
|
||
{% block body -%} | ||
<h1>{{ 'sort.pages'|trans }}</h1> | ||
{{ include('::flashbag.html.twig') }} | ||
<div class="row"> | ||
<form method="post" action="{{ path('ojs_journal_page_sort', {'journalId': selectedJournal().id}) }}"> | ||
<div class="col-sm-4 col-sm-push-4 well"> | ||
<ul id="sortable" class="list-group"> | ||
<input type="hidden" value='{{ jsonSortData|raw }}' name="sortData"/> | ||
{% for page in pages %} | ||
<li class="list-group-item" data-id="{{ page.id }}"> | ||
<h5> | ||
<i class="fa fa-arrows-v" aria-hidden="true"></i> | ||
{{ page.title }} | ||
</h5> | ||
</li> | ||
{% endfor %} | ||
</ul> | ||
<button class="btn btn-primary pull-right"> | ||
{{ 'update'|trans }} | ||
</button> | ||
</div> | ||
</form> | ||
</div> | ||
|
||
{{ actions({'back': {'href': path('ojs_journal_page_index', {'journalId': selectedJournal().id})}}) }} | ||
{% endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters