Skip to content

Commit

Permalink
*8418* Fix author dashboard production stage in OJS
Browse files Browse the repository at this point in the history
  • Loading branch information
asmecher committed Sep 12, 2013
1 parent ef8ed6d commit 36746ee
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 15 deletions.
7 changes: 7 additions & 0 deletions classes/core/PKPApplication.inc.php
Expand Up @@ -561,6 +561,13 @@ static function getSubmissionDAO() {
assert(false); // Must be implemented by subclasses
}

/**
* Get the representation DAO.
*/
static function getRepresentationDAO() {
assert(false); // Must be implemented by subclasses
}

/**
* Get the DAO for ROLE_ID_SUB_EDITOR roles.
*/
Expand Down
27 changes: 12 additions & 15 deletions xml/schema/metrics.xml
Expand Up @@ -2,16 +2,15 @@
<!DOCTYPE schema SYSTEM "../../dtd/xmlSchema.dtd">

<!--
* metrics.xml
* xml/schema/metrics.xml
*
* Copyright (c) 2000-2012 John Willinsky
* Copyright (c) 2000-2013 John Willinsky
* Distributed under the GNU GPL v2. For full terms see the file docs/COPYING.
*
* Metrics schema in XML.
-->

<schema version="0.2">

<!--
*
* TABLE metrics
Expand All @@ -33,12 +32,11 @@
<NOTNULL />
</field>
<field name="day" type="C" size="8" />
<field name="month" type="C" size="6">
</field>
<field name="month" type="C" size="6"/>
<field name="file_type" type="I1" />
<field name="country_id" type="C2" size="2" />
<field name="region" type="I2" />
<field name="city" type="C2" size="255" />
<field name="region" type="I2" />
<field name="city" type="C2" size="255" />
<field name="metric_type" type="C2" size="255">
<NOTNULL />
</field>
Expand All @@ -50,16 +48,15 @@
<index name="metrics_load_id">
<col>load_id</col>
</index>
<index name="metrics_metric_type_journal_id">
<index name="metrics_metric_type_context_id">
<col>metric_type</col>
<col>context_id</col>
</index>
<index name="metrics_metric_type_submission_id_assoc_type">
<col>metric_type</col>
<col>journal_id</col>
<col>submission_id</col>
<col>assoc_type</col>
</index>
<index name="metrics_metric_type_article_id_assoc_type">
<col>metric_type</col>
<col>article_id</col>
<col>assoc_type</col>
</index>
<!-- TODO: more indexes, depending on use cases. -->
</table>

</schema>

0 comments on commit 36746ee

Please sign in to comment.