help!! bibliography can not show out

raqkou - September 19, 2009 - 22:43

I new to drupal and the module "bibliography".
when I submit a biblio with almost all information, it can not show out.
It only shows 4 links "Tagged XML BibTex Google Scholar"
It does not show author, title, year, and so on, which I have submitted.

It also gives a warning: "warning: Parameter 1 to theme_biblio_style() expected to be a reference, value given in D:\wamp\www\includes\theme.inc on line 617."

How can I solve this problem.

Thanks Very Much!!!

Found a solution

ShutterFreak - September 25, 2009 - 13:30

The signature of the offending function theme_biblio_style() in file "biblio_theme.inc" in the Biblio module directory indeed announces a call-by-reference to $node, but apparently this is not compliant with the Drupal API which passes the argument by value instead.

The simple fix is to edit "biblio_theme.inc" and remove the offending ‘$’ from line 640 (assuming Biblio 6.x-1.6) so it reads:

<?php
function theme_biblio_style( $node, $base = 'biblio', $style_name = 'classic', $inline = false) {
?>

I should file this as a bug to the Biblio folks.

Hope this helps :-)

Olivier

Thanks ShutterFreak, Your

Aleksic - September 28, 2009 - 22:01

Thanks ShutterFreak,
Your hope is fulfilled xD

 
 

Drupal is a registered trademark of Dries Buytaert.