Red Hat Bugzilla – Bug 1006691
Duplicate Pressgang Header When Using PressGang Next
Last modified: 2013-11-07 21:11:04 EST
Created attachment 796264 [details]
PressGang Duplicate Header
Steps to reproduce:
Open a book via Docbuilder.
Browse to a topic.
Click on "Edit this topic with PressGang CCMS Next"
You will see two Pressgang headers.
See attached screenshot.
Just want to add this disclaimer:
The User Script that adds this link isn't something that is actually part of PressGang and is just something I personally wrote when someone asked for it (remember the next UI is basically just a test version that is running on the production server, so we won't actually create something supported that links to it, like the normal editor links).
Anyways I'll take a look when I get a chance, for now you'll just have to open it in a new tab, or install the additional New Tabs User Script.
At this point PG next is not going anywhere, so I think we should look at making the editor links include next as a standard, so something like:
Edit this topic in <link>PressGang</link> or <link>PressGang Next</link>
I've fixed the root cause of this, which is that the publican settings on the docbuilder weren't reconfigured when it was updated.
The bit that was missing was to change "<xslparam name="ulink.target"/>" to "<xslparam name="ulink.target" select="_top" />" in /usr/share/publican/xsl/xhtml-common.xsl
Anyways we'll have to rebuild all the books for this fix to go live. As for Matt's comment, a separate RFE should be created for that.
Changing this bug back to ASSIGNED, as that parameter should have worked however upon testing, it isn't getting inserted anymore. I'll have to have a look at why the xsl transform is ignoring that parameter (this used to work with publican 3.1.5).
Found the problem and it was a config error on my part. This should now be fixed, however we'll have to rebuild all the books before it will be effective.