Hi and thanks for making a great module :)

I'm having trouble printing a system page. The page is generated by the Bibliography module and contains search results from a database. All other pages print as expected.

When clicking the PDF Print link, depending on the option selected (open PDF in new window/download), either the page reloads in a new window (exactly the same, not in PDF format), or nothing happens when trying to download the PDF file.

The page in question is part of an under-development site here: http://musicforhorns.com/_new/biblio

I've tried with domPDF, TCPDF and WKHTMLTOPDF, but get exactly the same result with all of them (except TCPDF which throws an error or two whenever a page with a PDF link is loaded), leading me to believe it's either a bug in this module or the Bibliography module.

If you have anything at all that can help me in this situation, I'd be greatly appreciative!

Thank you for your time,
Josh

Comments

jcnventura’s picture

Title: Cannot print a system page » Can't use the print module in the biblio list page
Project: Printer, email and PDF versions » Bibliography Module
Version: 6.x-1.8 » 6.x-1.6

It's actually the biblio module's fault.

Unlike most other good-behaved modules, the biblio page is entirely rebuilt by the module and not by Drupal. I don't know why this happens, but I know this has been a problem for a long time. Actually the biblio module was the reason I chose Drupal and when I took over the print module, I came across this problem.

In my case, I've simply disabled the links to the print module's features in the biblio list page.

rjerome’s picture

Thanks for pointing that out Joao,

It seems there is no good reason for building that page using theme('page',...), I suspect that was just a carry over from the 5.x code :-(

I've changed biblio_show_results() to return the content rather than calling theme('page'...) and that fixes the problem with the print module. I'll include this fix in the next release.

Ron.

rjerome’s picture

Status: Active » Fixed
jfarry’s picture

Thanks for looking into this one guys :) it's been doing my head in, hahaha.

Josh

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.