Bug 8995: (follow-up) Add tests, move open_url/coins routines to Koha namespace
[koha-equinox.git] / catalogue / MARCdetail.pl
index 7e67b56..2a93c2b 100755 (executable)
@@ -99,8 +99,6 @@ if ( not defined $record ) {
     exit;
 }
 
-$template->param( ocoins => GetCOinSBiblio($record) );
-
 my $biblio_object = Koha::Biblios->find( $biblionumber ); # FIXME Should replace $biblio
 my $tagslib = &GetMarcStructure(1,$frameworkcode);
 my $biblio = GetBiblioData($biblionumber);
@@ -115,6 +113,8 @@ if($query->cookie("holdfor")){
     );
 }
 
+$template->param( ocoins => $biblio_object->get_coins );
+
 #count of item linked
 my $itemcount = $biblio_object->items->count;
 $template->param( count => $itemcount,