From 7a3ac6ddfcdaf4fe9e9a0fab45a0f2f7b1b7b8b0 Mon Sep 17 00:00:00 2001
From: finlayt
+
+EOF
+}
+
+
+
+my $existingreserves = "";
+foreach my $res (sort {$a->{'found'} cmp $b->{'found'}} @$reserves){
+ #my $bor=$reserves->[$i]{'firstname'}."%20".$reserves->[$i]{'surname'};
+ #$bor=~ s/ /%20/g;
+ my $prioropt = priorityoptions($count, $res->{'priority'});
+ my $bropt = branchoptions($res->{'branchcode'});
+ warn $res->{'branchcode'};
+ my $bor=$res->{'borrowernumber'};
+ $date = slashifyDate($res->{'reservedate'});
+
+ my $type=$res->{'constrainttype'};
+ if ($type eq 'a'){
+ $type='Next Available';
+ } elsif ($type eq 'o'){
+ $type="This type only $res->{'volumeddesc'} $res->{'itemtype'}";
+ }
+
+ my $notes = $res->{'reservenotes'}." ";
+ my $rank;
+ my $pickup;
+ my $change;
+ if ($res->{'found'} eq 'W') {
+ my %env;
+ my $item = $res->{'itemnumber'};
+ $item = getiteminformation(\%env,$item);
+ $item = "{'biblionumber'} &type=intra onClick=\"openWindow(this, 'Item', 480, 640)\">$item->{'barcode'}";
+ my $wbra = $branches->{$res->{'branchcode'}}->{'branchname'};
+ $rank = "Item waiting";
+ $type = $item;
+ $pickup = "at ".$wbra."";
+ $change = "delete";
+ } else {
+ $rank = "";
+ $pickup = "";
+ $change = "";
+ }
+ $existingreserves .= <<"EOF";
+{'borrowernumber'}>
+{'biblionumber'}>
+{'biblioitemnumber'}>
+{'biblioitemnumber'}>
+
+$data[$i]->{'description'}
+$class
+$data[$i]->{'volumeddesc'}
+$data[$i]->{'isbn'}
+$dat->{'copyrightdate'}
+$data[$i]->{'publicationyear'}
+@barcodes
+
+
+EOF
+}
+
+
+
+sub priorityoptions {
+ my ($count, $sel) = @_;
+ my $out = "";
+ for (my $i=1; $i<=$count; $i++){
+ $out .= "$rank
+
+$res->{'firstname'} $res->{'surname'}
+
+$notes
+$date
+$pickup
+$type
+$change
+
+
+ + +
Change To | -printend -; -$count--; - -for ($i=0;$i<$count;$i++){ -print "[$i]{'borrowernumber'}>"; -print "[$i]{'biblionumber'}>"; -#my $bor=$reserves->[$i]{'firstname'}."%20".$reserves->[$i]{'surname'}; -#$bor=~ s/ /%20/g; -my $bor=$reserves->[$i]{'borrowernumber'}; -$date = slashifyDate($reserves->[$i]{'reservedate'}); - -my $type=$reserves->[$i]{'constrainttype'}; -#print "test"; -if ($type eq 'a'){ - $type='Next Available'; -} elsif ($type eq 'o'){ -# print "test"; - my $res=getreservetitle($reserves->[$i]{'biblionumber'},$reserves->[$i]{'borrowernumber'},$reserves->[$i]{'reservedate'},$reserves->[$i]{'timestamp'}); - $type="This type only $res->{'volumeddesc'} $res->{'itemtype'}"; -# my @data=ItemInfo(\$blah,$reserves->[$i]{'borrowernumber'}); - -} -print "||||||
- | -$reserves->[$i]{'firstname'} $reserves->[$i]{'surname'} | -$reserves->[$i]{'reservenotes'} | -$date | -- | -$type | -- | -
Delete a request by selecting "del" from the rank list. - | - -
-
-
-
-
-
+
printend
;
--
2.39.5