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
What to do if you have a technical problem with OMP:

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.

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

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: 8676
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: 8676
Joined: Wed Aug 10, 2005 12:56 pm


Return to OMP Technical Support

Who is online

Users browsing this forum: No registered users and 1 guest