followup da49fc77df9 enh 3736
authorHenri-Damien LAURENT <henridamien.laurent@biblibre.com>
Mon, 23 Nov 2009 20:35:07 +0000 (21:35 +0100)
committerHenri-Damien LAURENT <henridamien.laurent@biblibre.com>
Mon, 23 Nov 2009 20:35:07 +0000 (21:35 +0100)
serials/routing-preview.pl

index 2ec0300..5b9b5b0 100755 (executable)
@@ -49,6 +49,10 @@ my ($template, $loggedinuser, $cookie);
 if($ok){
     # get biblio information....
     my $biblio = $subs->{'biblionumber'};
+       my ($count2,@bibitems) = GetBiblioItemByBiblioNumber($biblio);
+       my @itemresults = GetItemsInfo($subs->{'biblionumber'}, 'intra');
+       my $branch = $itemresults[0]->{'holdingbranch'};
+       my $branchname = GetBranchName($branch);
 
        if (C4::Context->preference('RoutingListAddReserves')){
                # get existing reserves .....
@@ -59,10 +63,6 @@ if($ok){
                                $count--;
                        }
                }
-               my ($count2,@bibitems) = GetBiblioItemByBiblioNumber($biblio);
-               my @itemresults = GetItemsInfo($subs->{'biblionumber'}, 'intra');
-               my $branch = $itemresults[0]->{'holdingbranch'};
-               my $branchname = GetBranchName($branch);
                my $const = 'o';
                my $notes;
                my $title = $subs->{'bibliotitle'};