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
This forum is meant for general questions about the usability of OJS from an everyday user's perspective: journal managers, authors, and editors are welcome to post questions here, as are librarians and other support staff. We welcome general questions about the role of OJS and how the workflow works, as well as specific function- or user-related questions.

What to do if you have general, workflow or usability questions about OJS:

1. Read the documentation. We've written documentation to cover from OJS basics to system administration and code development, and we encourage you to read it.

2. take a look at the tutorials. We will continue to add tutorials covering OJS basics as time goes on.

3. Post a question. Questions are always welcome here, but if it's a technical question you should probably post to the OJS Technical Support subforum; if you have a development question, try the OJS Development subforum.

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'];

Code: Select all
115                 while ($row =& $articlesIterator->next()) {
116                         $authors = $this->mergeAuthors($authorsIterator[$row['article_id']]->toArray());
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                 }
145                 fclose($fp);

But for some reason it does not go the generated file.
Could anyone help me?
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


Here is the wrong place to that I guess.
I open this one:

Thank you.
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 1 guest