Statistics Articles Report - Missing affiliation

Are you responsible for making OJS work -- installing, upgrading, migrating or troubleshooting? Do you think you've found a bug? Post in this forum.

Moderators: jmacgreg, btbell, michael, bdgregg, barbarah, asmecher

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.
tarcisiop
Posts: 61
Joined: Mon Apr 14, 2014 12:22 pm

Statistics Articles Report - Missing affiliation

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

Hello to all

I'm having a problem with the Statistics Articles Report avaliabe at.
http://localhost/[ojs_install_path]/index.php/[journal]/manager/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?

asmecher
Posts: 10015
Joined: Wed Aug 10, 2005 12:56 pm
Contact:

Re: Statistics Articles Report - Missing affiliation

Postby asmecher » Thu May 15, 2014 8:37 am

Hi tarcisiop,

I found a typo in that report plugin -- see http://pkp.sfu.ca/bugzilla/show_bug.cgi?id=8756 for a patch. (It's a small one-line change.)

Thanks for reporting!

Regards,
Alec Smecher
Public Knowledge Project Team

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

Re: Statistics Articles Report - Missing affiliation

Postby tarcisiop » Thu May 15, 2014 9:11 am

Alec,

Thank you

Regards,
Tarcisio Pereira


Return to “OJS Technical Support”

Who is online

Users browsing this forum: Yahoo [Bot] and 1 guest