OJS OCS OMP OHS

You are viewing the PKP Support Forum | PKP Home Wiki



Statistics Articles Report - Missing affiliation

Are you an Editor, Author, or Journal Manager in need of help? Want to talk to us about workflow issues? This is your forum.

Moderators: jmacgreg, michael, vgabler, John

Forum rules
The Public Knowledge Project Support Forum is moving to http://forum.pkp.sfu.ca

This forum will be maintained permanently as an archived historical resource, but all new questions should be added to the new forum. Questions will no longer be monitored on this old forum after March 30, 2015.

Statistics Articles Report - Missing affiliation

Postby tarcisiop » Tue May 13, 2014 8:54 am

Hello to all

I'm having a problem with the Statistics Articles Report avaliabe at.
http://localhost/ojs/index.php/jounal/m ... statistics

Not showing the affiliation of the authors, I looked in the code and could not find what it is.
I know that the information goes into the system, through the mergeAuthors () method.
I can access it within this code snippet, by referencing $ Autors ['afilliation'];

ArticleReportPlugin.inc.php
Code: Select all
115                 while ($row =& $articlesIterator->next()) {
116                         $authors = $this->mergeAuthors($authorsIterator[$row['article_id']]->toArray());
117
118                         foreach ($columns as $index => $junk) {
119                                 if ($index == 'editor_decision') {
120                                         if (isset($decisions[$row['article_id']])) {
121                                                 $columns[$index] = $decisionMessages[$decisions[$row['article_id']]];
122                                         } else {
123                                                 $columns[$index] = $decisionMessages[null];
124                                         }
125                                 } elseif ($index == 'status') {
126                                         $columns[$index] = __($statusMap[$row[$index]]);
127                                 } elseif ($index == 'abstract') {
128                                         $columns[$index] = html_entity_decode(strip_tags($row[$index]));
129                                 } elseif (strstr($index, 'biography') !== false) {
130                                         // "Convert" HTML to text for export
131                                         $columns[$index] = isset($authors[$index])?html_entity_decode(strip_tags($authors[$index])):'';
132                                 } else {
133                                         if (isset($row[$index])) {
134                                                 $columns[$index] = $row[$index];
135                                         } else if (isset($authors[$index])) {
136                                                 $columns[$index] = $authors[$index];
137                                         } else $columns[$index] = '';
138                                 }
139                         }
140                         String::fputcsv($fp, $columns);
141                         unset($row);
142                         $authorIndex++;
143                 }
144
145                 fclose($fp);


But for some reason it does not go the generated file.
Could anyone help me?
tarcisiop
 
Posts: 61
Joined: Mon Apr 14, 2014 12:22 pm

Re: Statistics Articles Report - Missing affiliation

Postby tarcisiop » Thu May 15, 2014 4:35 am

Hello,

Here is the wrong place to that I guess.
I open this one:
viewtopic.php?f=8&t=12207

Thank you.
tarcisiop
 
Posts: 61
Joined: Mon Apr 14, 2014 12:22 pm


Return to OJS Editorial Support and Discussion

Who is online

Users browsing this forum: No registered users and 3 guests

cron