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
Original file line number Diff line number Diff line change
Expand Up @@ -665,6 +665,8 @@ COM_PUBLICATIONS_CONFIG_FTP_DOC="FTP download guide"
COM_PUBLICATIONS_CONFIG_FTP_DOC_DESC="A guide regarding how to download large dataset using ftp client"
COM_PUBLICATIONS_CONFIG_SEARCH_CATEGORY="Search category"
COM_PUBLICATIONS_CONFIG_SEARCH_CATEGORY_DESC="Search category in tag section of publication submission"
COM_PUBLICATIONS_CONFIG_DATA_PUBLISHING_GUIDE="Data Publishing Self Assessment Guide"
COM_PUBLICATIONS_CONFIG_DATA_PUBLISHING_GUIDE_DESC="A self assessment guide for user to understand what is required in data publishing"

; Types
COM_PUBLICATIONS_TYPES="Types"
Expand Down
1 change: 1 addition & 0 deletions core/components/com_publications/config/config.xml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@
<option value="0">JOFF</option>
<option value="1">JON</option>
</field>
<field name="data_publishing_self_assessment_guide" type="text" menu="hide" default="" label="COM_PUBLICATIONS_CONFIG_DATA_PUBLISHING_GUIDE" description="COM_PUBLICATIONS_CONFIG_DATA_PUBLISHING_GUIDE_DESC" />
</fieldset>
<fieldset name="CURATION">
<field name="curatorreplyto" type="text" menu="hide" default="" label="COM_PUBLICATIONS_CONFIG_CURATOR_REPLYTO" description="COM_PUBLICATIONS_CONFIG_CURATOR_REPLYTO_DESC" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,7 @@ PLG_PROJECTS_PUBLICATIONS_PLEASE_USE="Please use"
PLG_PROJECTS_PUBLICATIONS_RELEASE_DATE="Public release date"
PLG_PROJECTS_PUBLICATIONS_ARCHIVED_ON="Archived on"
PLG_PROJECTS_PUBLICATIONS_ARCHIVED_NO_CHANGE="This publication version can no longer be modified in any way."
PLG_PROJECTS_PUBLICATIONS_SELF_ASSESSMENT_GUIDE="Data Publishing Self Assessment Guide"

PLG_PROJECTS_PUBLICATIONS_DISK_USAGE="Disk usage"
PLG_PROJECTS_PUBLICATIONS_DISK_USAGE_TOOLTIP="View disk usage"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
}
$inuse = ($inuse > 100) ? 100 : $inuse;
$approachingQuota = $this->project->config('approachingQuota', 85);
$selfAssessmentGuide = $this->pub->config()->get('data_publishing_self_assessment_guide', '');
$approachingQuota = intval($approachingQuota) > 0 ? $approachingQuota : 85;
$warning = ($inuse > $approachingQuota) ? 1 : 0;

Expand All @@ -43,6 +44,11 @@
<a class="icon-add btn" href="/pubs/#/prjs/<?php echo $this->project->get('id'); ?>"><?php echo Lang::txt('PLG_PROJECTS_PUBLICATIONS_START_PUBLICATION'); ?></a>
</li>
<?php } else { ?>
<?php if(!empty($selfAssessmentGuide)) { ?>
<li>
<a class="icon-file btn" target="_blank" href="<?php echo $selfAssessmentGuide; ?>"><?php echo Lang::txt('PLG_PROJECTS_PUBLICATIONS_SELF_ASSESSMENT_GUIDE'); ?></a>
</li>
<?php } ?>
<li>
<a class="icon-add btn" href="<?php echo Route::url($this->project->link('publications') . '&action=start'); ?>"><?php echo Lang::txt('PLG_PROJECTS_PUBLICATIONS_START_PUBLICATION'); ?></a>
</li>
Expand Down