OJS OCS OMP OHS

You are viewing the PKP Support Forum | PKP Home Wiki



DOI links in references

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.

DOI links in references

Postby jorgecardoso » Sun May 13, 2012 9:12 am

Hi,

I have recently joined Crossref, and am in the process of implementing their guidelines.

I need to edit the references of the articles in order to include the outbound links, but I'm unable to create links:
I'm using the 'edit metadata' option of the article, but the references textbox does not allow any markup.

(I don't use the citation markup assistant because it is not working in my installation)

How do I include links in the references?

Thanks,
jorge
jorgecardoso
 
Posts: 6
Joined: Sun Dec 25, 2011 5:53 pm

Re: DOI links in references

Postby csimser » Fri May 18, 2012 1:39 pm

Jorge,
We haven't been able to get citation manager to work either so we've copy/pasted the references below the abstract.
I log in as an editor and add the DOIs by going to the submission summary > edit metadata.

Char Simser
New Prairie Press
Kansas State University
csimser
 
Posts: 9
Joined: Wed Sep 21, 2011 10:57 am
Location: Kansas State University

Re: DOI links in references

Postby jorgecardoso » Sat May 19, 2012 4:28 pm

Hi,

I just found a better way. It seems there were two problems:
1. TinyMCE plugin was not inserted into the citations textarea in the edit metadata view. So I changed TinyMCEPlugin.inc.php (added the last line):
Code: Select all
case 'copyeditor/saveMetadata':
            $count = max(1, count($templateMgr->get_template_vars('authors')));
            for ($i=0; $i<$count; $i++) {
               $fields[] = "authors-$i-biography";
               $fields[] = "authors-$i-competingInterests";
            }
            $fields[] = 'abstract';
            $fields[] = 'citations';
            break;


2. The article view did not allow for unsafe html. So I changed article.tpl(removed "|strip_unsafe_html"):
Code: Select all
{if $citationFactory->getCount()}
      <div id="articleCitations">
      <h4>{translate key="submission.citations"}</h4>
      <br />
      <div>
         {iterate from=citationFactory item=citation}
            <p>{$citation->getRawCitation()|strip_unsafe_html}</p>
         {/iterate}
      </div>
      <br />
      </div>
   {/if}


Now I can insert links in the citations textarea in the edit metadata page.
jorgecardoso
 
Posts: 6
Joined: Sun Dec 25, 2011 5:53 pm

Re: DOI links in references

Postby rvillahermosa » Wed Mar 04, 2015 9:36 am

Hi! this fix work but when click into save metadata then ojs redirect a forbidden error page and don`t save the changes. The problem is the character html tag into the textbox html references field than when savemetadata don`t work. ¿something idea for repair this bug?
rvillahermosa
 
Posts: 4
Joined: Wed Mar 04, 2015 9:32 am

Re: DOI links in references

Postby asmecher » Wed Mar 04, 2015 9:44 am

Hi rvillahermosa,

Check your web server's error log to see if something is captured there. This sounds like a mod_security rule that's accidentally triggering.

Regards,
Alec Smecher
Public Knowledge Project Team
asmecher
 
Posts: 10015
Joined: Wed Aug 10, 2005 12:56 pm

Re: DOI links in references

Postby rvillahermosa » Thu Mar 05, 2015 1:30 am

The error is: [212.163.40.94:7411-0#APVH_methaodos.org] File not found [/home/methaodo/public_html/403.shtml]

The error appears when trying to save the references in the window article metadata eg editor/ViewMetadata/50

if enter some other html tag <a> as happens ok but with the <p> that fails and with other html tab fails same.

In the page editor/viewMetadata/50 the final to the page after DOI section in the References section

[code]Referencias
Proporcione una lista con formato de las referencias de las obras mencionadas en este envío. Separe cada referencia con una línea en blanco.

Referencias
Mostrar
Tabla de contenidos No mostrar los nombres de los autores/as en las tablas de contenidos del número.:

<p>Rawls, J. (1997): “The idea of a public reason revisited”, University of Chicago Law Review, 94: 765-807.</p>
<p>Phillips, L. D. (1984): “A theory of requisite decision models”, Acta Psychologica, 56: 29-48. <a target="_blank" href="http://dx.doi.org/10.1016/0001-6918(84)90005-2">http://dx.doi.org/10.1016/0001-6918(84)90005-2</a></p>

And the page que appears is editor/saveMetadata

403
Forbidden

Access to this resource on the server is denied!

If delete the tags <p></p> is save ok. ¿which is the problem?

Regards.
rvillahermosa
 
Posts: 4
Joined: Wed Mar 04, 2015 9:32 am

Re: DOI links in references

Postby rvillahermosa » Thu Mar 05, 2015 2:05 am

In the log appears:

[05-Mar-2015 09:04:07 UTC] ojs2 has produced an error
Message: WARNING: Cannot use a scalar value as an array
In file: /home/methaodo/public_html/revista-methaodos/classes/journal/JournalSettingsDAO.inc.php
At line: 82
Stacktrace:
Server info:
OS: Linux
PHP Version: 5.4.38
Apache Version: N/A
DB Driver: mysql
DB server version: 5.5.42-cll
rvillahermosa
 
Posts: 4
Joined: Wed Mar 04, 2015 9:32 am

Re: DOI links in references

Postby rvillahermosa » Thu Mar 05, 2015 2:26 am

I inserted this into my .htaccess file at the root of my website:

<IfModule mod_security.c>
SecFilterEngine Off
SecFilterScanPOST Off
</IfModule>

and this seemed to fix the problem.

thanks.
rvillahermosa
 
Posts: 4
Joined: Wed Mar 04, 2015 9:32 am


Return to OJS Editorial Support and Discussion

Who is online

Users browsing this forum: Yahoo [Bot] and 2 guests