Closed (fixed)
Project:
Bibliography Module
Version:
5.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
28 Mar 2007 at 15:20 UTC
Updated:
3 Apr 2007 at 12:33 UTC
A minor fix, the dev snapshot doesn't currently pull the openurl image in the theme function as it should.
So This:
function theme_biblio_openurl($openURL) {
if($openurl_image !='')
{
$output .= '<div class="biblio-openurl-image"><a href="'. $openURL . '"><img border="0" src="' . $openurl_image . '" /></a></div>';
} else {
$output .= '<div class="biblio-openurl-text"><a href="'. $openURL . '">'.t('Find It Via OpenURL!').'</a></div>';
}
return $output;
}
should look like this:
function theme_biblio_openurl($openURL) {
$openurl_image = variable_get('biblio_openurlimage','');
if($openurl_image !='')
{
$output .= '<div class="biblio-openurl-image"><a href="'. $openURL . '"><img border="0" src="' . $openurl_image . '" /></a></div>';
} else {
$output .= '<div class="biblio-openurl-text"><a href="'. $openURL . '">'.t('Find It Via OpenURL!').'</a></div>';
}
return $output;
}
I've attached a patch as well.
Thanks.
| Comment | File | Size | Author |
|---|---|---|---|
| biblio_openurlimg.patch | 395 bytes | cfennell |
Comments
Comment #1
rjerome commentedOops, sorry about that, it's fixed now.
Ron.
Comment #2
rjerome commentedComment #3
rjerome commented