OJS OCS OMP OHS

You are viewing the PKP Support Forum | PKP Home Wiki



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
What to do if you have a technical problem with OJS:

1. Search the forum. You can do this from the Advanced Search Page or from our Google Custom Search, which will search the entire PKP site. If you are encountering an error, we especially recommend searching the forum for said error.

2. Check the FAQ to see if your question or error has already been resolved.

3. Post a question, but please, only after trying the above two solutions. If it's a workflow or usability question you should probably post to the OJS Editorial Support and Discussion subforum; if you have a development question, try the OJS Development subforum.

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

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
asmecher
 
Posts: 8599
Joined: Wed Aug 10, 2005 12:56 pm

Re: Statistics Articles Report - Missing affiliation

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

Alec,

Thank you

Regards,
Tarcisio Pereira
tarcisiop
 
Posts: 21
Joined: Mon Apr 14, 2014 12:22 pm


Return to OJS Technical Support

Who is online

Users browsing this forum: Google [Bot] and 4 guests