You are viewing the PKP Support Forum | PKP Home Wiki

Submissions in Review / Title / ...

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
The Public Knowledge Project Support Forum is moving to http://forum.pkp.sfu.ca

This forum will be maintained permanently as an archived historical resource, but all new questions should be added to the new forum. Questions will no longer be monitored on this old forum after March 30, 2015.

Submissions in Review / Title / ...

Postby gdardick » Sun Jan 26, 2014 1:52 pm

In relocating the OCS system to a new server with
MySQL 5.6.13
PHP 5.5.1
Win Svr 2008

the page for Submissions in Review now shows many of the article titles with one leading captal letter followed by three periods (I assume the titles over at least 39 characters).

Is there any way to get more than one letter for the title of large titles on that page?

(P.S. - I really did try to find this in the previous posts but could not find another example)
Last edited by gdardick on Sun Jan 26, 2014 5:53 pm, edited 1 time in total.
Posts: 29
Joined: Sun Sep 13, 2009 3:58 am

Re: Submissions in Review / Title / ...

Postby gdardick » Sun Jan 26, 2014 5:52 pm

ok - looking at the code/template I was able to search again and find where the error lied. The following helped:

The following also helped

However - it only helped enough to understand the problem. I circumvented the issue by increasing the size from 40 to 160 (i.e. so it wouldn't truncate).

I assume, that migrating from one system to the newer system changed the way the truncate function might work - but don't know enough to say for sure.
Posts: 29
Joined: Sun Sep 13, 2009 3:58 am

Re: Submissions in Review / Title / ...

Postby asmecher » Mon Jan 27, 2014 7:23 am

Hi gdardick,

It's been a while since we released a version of OCS; one thing to try would be to take a more modern copy of the smartyTruncate function from the current master branch of PKPTemplateManager.inc.php (https://github.com/pkp/pkp-lib/blob/mas ... er.inc.php) and replace your implementation of smartyTruncate with this one. See lib/pkp/classes/template/PKPTemplateManager.inc.php in your installation. It should be a drop-in replacement, but please back up that file before you make changes just in case.

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

Return to OCS Technical Support

Who is online

Users browsing this forum: No registered users and 1 guest