Description of problem: When customising the Publican Perl template products_index.tmpl, there is no way to access the formats of a book. I would like to be able to access this information to be able to produce a table giving the link to the documents in each available format, like what can be seen on the current Customer Portal at https://access.redhat.com/site/documentation/Red_Hat_Enterprise_Linux/. Ideally, the book_list hash currently available would give access to a list of available formats for each book, so I could write something like [% FOREACH format = booker.formats %]. This information would also need to be available within the versions_index.tmpl. It might also be useful to have it available in language_index.tmpl in the future. Version-Release number of selected component (if applicable): How reproducible: Steps to Reproduce: 1. 2. 3. Actual results: Expected results: Additional info:
%book_ver_list used to create "/$lang/$product/$version/$book/index.html" contains this data, is it OK to expose this to the other templates?
HSS-QE has reviewed and declined this request. QE for this bug will be handled by IED.
(In reply to Jeff Fearn from comment #5) > %book_ver_list used to create "/$lang/$product/$version/$book/index.html" > contains this data, is it OK to expose this to the other templates? Yes, this would solve the problem for me.
Due to QE effort I limited this to the two templates requested. To use this in products_index.tmpl [% FOREACH format = book_ver_list.${product}.${c_book}.${ver}.formats %]<span>[% format %] </span>[%- END %] To use this in versions_index.tmpl [% FOREACH format = book_ver_list.${product}.${booker.value.book}.${version}.formats %]<span>[% format %] </span>[%- END %] To get the real URLs you can copy the logic in books_format_menu.tmpl To ssh://git.fedorahosted.org/git/publican.git 9a7687a..b525469 HEAD -> devel
Hey Katie, I'm having a hard time figuring out how to verify this bug fix. Do you think you could help by suggesting a way that I can see what Jeff has done meets your requirements? Thanks for any help you can give me.
Hi Tim, I will QA this bug; it's not something you can check without changing a brand. (In reply to Tim Hildred from comment #9) > Hey Katie, > > I'm having a hard time figuring out how to verify this bug fix. Do you think > you could help by suggesting a way that I can see what Jeff has done meets > your requirements? > > Thanks for any help you can give me.
Tested on 3.1.5-0.fc18.t66.
The fix for this bug has been shipped in publican 3.2.0