OJS OCS OMP OHS

You are viewing the PKP Support Forum | PKP Home Wiki



URLs in Article Abstracts Don't Work Anymore

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.

URLs in Article Abstracts Don't Work Anymore

Postby thebigaym » Thu Apr 05, 2012 9:55 am

I don't know the OJS version we're on now. I used to be able to know it from a tag in the code of any web page. How do I find that out?

I just published an article at http://jima.imana.org/article/view/7903. The URLs in the article abstract are not working. Any help?

This is the code I entered in the article's abstract.
<p>DOI: <a href="http://dx.doi.org/10.5915/44-1-7903" target="_blank">http://dx.doi.org/10.5915/44-1-7903</a></p><p>The notion of bodily integrity forms an important part of the value-structure of many religions and cultures. In this paper, we explore the notion of bodily integrity in Islam focusing on male circumcision. Our aim is to contribute to a better understanding of the Muslim perspective and of the differences and similarities between Western and Islamic ethical structures, in particular, regarding the concept of bodily integrity.</p>

This is the code which shows up in the web page when viewing the article abstract.

<div id="articleAbstract">
<h4>Abstract</h4>
<br />
<div><p>DOI: <a>http://dx.doi.org/10.5915/44-1-7903</a></p><p>The notion of bodily integrity forms an important part of the value-structure of many religions and cultures. In this paper, we explore the notion of bodily integrity in Islam focusing on male circumcision. Our aim is to contribute to a better understanding of the Muslim perspective and of the differences and similarities between Western and Islamic ethical structures, in particular, regarding the concept of bodily integrity.</p></div>
<br />
</div>
thebigaym
 
Posts: 45
Joined: Thu Apr 09, 2009 8:25 am

Re: URLs in Article Abstracts Don't Work Anymore

Postby jmacgreg » Thu Apr 19, 2012 10:01 pm

Hi thebigaym,

The article abstract and galley pages are actually the only pages that don't include version information in the HTML -- you can view the source to any other page, such as your journal's home page, and see the version information. In your case, you are using OJS 2.3.7.

It appears that TinyMCE is stripping the <a href> tags and converting them to simple <a> tags. I'm not sure whether this is intentional or not; I'll ask a developer to look into it and get back to you. In the meantime, you may want to take a look at the TinyMCE website and documentation.

Cheers,
James
jmacgreg
 
Posts: 4190
Joined: Tue Feb 14, 2006 10:50 am

Re: URLs in Article Abstracts Don't Work Anymore

Postby andymp » Sun Apr 22, 2012 4:57 am

Hi James,

Same here. TinyMCE is stripping <a href> tags and also all other tags. But it happens only in some pages (article pages and Editorial Team Board page, and not in Editorial Policies page, for example).

Our OJS version is 2.3.7. We tried to reinstall last version of TinyMCE as indicated here: http://pkp.sfu.ca/bugzilla/show_bug.cgi?id=7227. And it's not working. We also tried to modify the "allowed_html" in config.php.inc by inserting <a |href> instead of <a>, but it was useless for us.

We checked my MySQL database and everything seems OK there (the database keeps tags as entered in the fields). We also checked the versions table and the TinyMCE plugin is "1" "1" "0". Is that correct?

As as example, here you have a usual article presentation page: http://www.relacionesinternacionales.in ... %5B%5D=334

The abstract field ("Resumen" in our web page) strips all HTML tags and the source code appears as:

<div>Este artículo analiza la universidad occidentalizada y su fundamentalismo eurocéntrico en relación a las luchas de los grupos racializados en Estados Unidos y su impacto en la formación de los estudios étnicos al interior de la estructura epistémica de las universidades. De este modo, discute cuestiones relacionadas con el racismo/sexismo epistémico y los dilemas que los programas de estudios étnicos afrontan en la actualidad; particularmente, las formas de colonización disciplinaria, el multiculturalismo liberal y las políticas identitarias (“identity politics”). This article is an analysis of the Westernized university and its Eurocentric fundamentalism in relation to the subaltern struggles of racialized groups in the United States and its impact on the formation of ethnic studies in the university’s epistemic structure. The article goes on to discuss questions of epistemic racism/sexism and the dilemmas that ethnic studies programs confront today in particular forms of disciplinary colonization, liberal multiculturalism and identity politics.</div>

But when we edit this article metadata as Manager, Editor or Author, the HTML tags are there, as well as in our database:

<div><p>Este artículo analiza la universidad occidentalizada y su fundamentalismo eurocéntrico en relación a las luchas de los grupos racializados en Estados Unidos y su impacto en la formación de los estudios étnicos al interior de la estructura epistémica de las universidades. De este modo, discute cuestiones relacionadas con el racismo/sexismo epistémico y los dilemas que los programas de estudios étnicos afrontan en la actualidad; particularmente, las formas de colonización disciplinaria, el multiculturalismo liberal y las políticas identitarias (“identity politics”). </p><p></p>
<p><em>This article is an analysis of the Westernized university and its Eurocentric fundamentalism in relation to the subaltern struggles of racialized groups in the United States and its impact on the formation of ethnic studies in the university’s epistemic structure. The article goes on to discuss questions of epistemic racism/sexism and the dilemmas that ethnic studies programs confront today in particular forms of disciplinary colonization, liberal multiculturalism and identity politics.</em></p></div>

We've never had any problem with TinyMCE Plugin in earlier OJS versions (2.2.2 and 2.3.4), and what's really odd, we first installed OJS 2.3.7 locally (fresh install), did all our custom changes, then uploaded to our server (we also upgraded our database, as recommended). So when we found this "error", we checked again our local installation, and everything worked there as it should. We reuploaded the local article templates, the generic plugin folder andthe lib/pkp/lib/tinymce folder, but nothing changed.

We also looked at TinyMCE documentation and website. And we don't want to comment out $fields[] = 'abstract'; in TinyMCEPlugin.inc.php. So right now we have no more ideas.

Cheers,
Andy
Webmaster
www.relacionesinternacionales.info
andymp
 
Posts: 6
Joined: Fri Apr 22, 2011 12:44 pm

Re: URLs in Article Abstracts Don't Work Anymore

Postby mcrider » Wed Apr 25, 2012 10:03 am

Hi folks,

We do strip links and other potentially dangerous HTML from text when it is displayed (but not when its saved to the database). Stripping links is generally a good thing because it prevents link spam. But if you do want links to appear, you just need to update your config.inc.php file -- at about line 235, there is a line for allowed_html. Add the tag <a href> and the links should start to behave normally.

Cheers,
Matt
mcrider
 
Posts: 952
Joined: Mon May 05, 2008 10:29 am
Location: Vancouver, BC


Return to OJS Editorial Support and Discussion

Who is online

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