OJS OCS OMP OHS

You are viewing the PKP Support Forum | PKP Home Wiki



Problem with special characters when showing “Affiliation"

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

Moderators: jmacgreg, michael, John

Forum rules
What to do if you have a technical problem with OCS:

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. Please note that this FAQ is OJS-centric, but most issues are applicable to both platforms.

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 OCS Conference Support and Discussion subforum; if you have a development question, try the OCS Development subforum.

Problem with special characters when showing “Affiliation"

Postby obi » Wed Sep 22, 2010 3:15 am

Hi,
We have problem with special characters only when showing “Affiliation” on the browser. See an example at the URL: http://www.ub.uit.no/baser/ocs/index.ph ... rt/bio/2/0.

We are using OCS version 2.3.3.1 and UTF-8. We need help or point to us where we can make corrections.

Cheers
Obi
obi
 
Posts: 48
Joined: Wed Jun 09, 2004 5:56 am

Re: Problem with special characters when showing “Affiliation"

Postby mcrider » Fri Sep 24, 2010 12:57 pm

Hi Obi,

I've posted this as a bug: http://pkp.sfu.ca/bugzilla/show_bug.cgi?id=5950. I'm not sure if there is a reason for escaping the affiliation value, but in the mean time you can fix this by going into the templates/rt/bio.tpl file and at around line 23, change
Code: Select all
{if $author->getLocalizedAffiliation()}{$author->getLocalizedAffiliation()|escape}{/if}
to
Code: Select all
{if $author->getLocalizedAffiliation()}{$author->getLocalizedAffiliation()|strip_unsafe_html|nl2br}{/if}

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

Re: Problem with special characters when showing “Affiliation"

Postby obi » Tue Sep 28, 2010 2:47 am

Hi Matts,
Thank you very much. It works. I removed "escape" and replaced it with "strip_unsafe_html".

Cheers
Obi
obi
 
Posts: 48
Joined: Wed Jun 09, 2004 5:56 am


Return to OCS Technical Support

Who is online

Users browsing this forum: No registered users and 4 guests