OJS OCS OMP OHS

You are viewing the PKP Support Forum | PKP Home Wiki



Text cuts off - no word wrap on Synopsis pages

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

Moderators: jmacgreg, michael, asmecher

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.

Text cuts off - no word wrap on Synopsis pages

Postby rootl » Thu Apr 25, 2013 9:34 am

We recently upgraded to OMP 1.0.0

Now the synopsis text is cut off on the right side. The cover images is larger too. We can correct the cover image style, but are unsure about why the text is cutting off and not wrapping.

Any style change we should apply? It is it something within TinyMCE?

Below is an example. Thanks.

http://opensuny.org/omp/index.php/SUNYO ... log/book/1
rootl
 
Posts: 62
Joined: Wed Feb 20, 2013 7:17 am

Re: Text cuts off - no word wrap on Synopsis pages

Postby asmecher » Thu Apr 25, 2013 10:10 am

Hi rootl,

OMP 1.0 uses the "scrollable tabs" JQueryUI plugin (see http://code.google.com/p/jquery-ui-scrollable-tabs/) and that plugin appears to be incorrectly detecting the width of its container. You don't need scrollable tabs on that particular tab set, so the easiest thing to do is probably to disable it there. Edit templates/catalog/book/bookInfo.tpl and find where the Javascript controller is attached:
Code: Select all
<script type="text/javascript">
        // Attach the tab handler.
        $(function() {ldelim}
                $('#bookInfoTabs').pkpHandler(
                        '$.pkp.controllers.TabHandler'
                );
        {rdelim});
</script>
Modify it to disable scrollable tabs:
Code: Select all
<script type="text/javascript">
        // Attach the tab handler.
        $(function() {ldelim}
                $('#bookInfoTabs').pkpHandler(
                        '$.pkp.controllers.TabHandler',
                        {ldelim}
                                notScrollable: true
                        {rdelim}
                );
        {rdelim});
</script>
This is untested but should work.

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

Re: Text cuts off - no word wrap on Synopsis pages

Postby rootl » Tue May 21, 2013 5:39 am

Yes, this works. Thank you
rootl
 
Posts: 62
Joined: Wed Feb 20, 2013 7:17 am

Re: Text cuts off - no word wrap on Synopsis pages

Postby asmecher » Tue May 21, 2013 10:29 am

Hi rootl,

Thanks for confirming; I've posted this at http://pkp.sfu.ca/wiki/index.php?title=OMP_1.0_Recommended_Patches as bug #8227.

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


Return to OMP Technical Support

Who is online

Users browsing this forum: No registered users and 0 guests