+my $issues = ();
+# Do not request the old issues of anonymous patron
+if ( $borrowernumber eq C4::Context->preference('AnonymousPatron') ){
+ # use of 'eq' in the above comparison is intentional -- the
+ # system preference value could be blank
+ $template->param( is_anonymous => 1 );
+} else {
+ $issues = GetAllIssues($borrowernumber,$order,$limit);
+}