diff --git a/Repositories/otago_eprints/otago_eprints/cfg/ArchiveRenderConfig.pm b/Repositories/otago_eprints/otago_eprints/cfg/ArchiveRenderConfig.pm index 032b4a9..e1a7607 100755 --- a/Repositories/otago_eprints/otago_eprints/cfg/ArchiveRenderConfig.pm +++ b/Repositories/otago_eprints/otago_eprints/cfg/ArchiveRenderConfig.pm @@ -162,7 +162,7 @@ # Ugh, DOM sucks... # Find the first element in the DocumentFragment and add the # onclick attribute to it. - $rendered_cite->getElementsByTagName('a')->item(0)->setAttribute( + $rendered_cite->getFirstChild()->getElementsByTagName('a')->item(0)->setAttribute( 'onclick', "javascript:urchinTracker( '" . $docpath .