- my $displaynext = 0;
- my $displayprev = $startfrom;
- $total ||= 0;
- if ( ( $total - ( ( $startfrom + 1 ) * ($resultsperpage) ) ) > 0 ) {
- $displaynext = 1;
- }
-
- my @field_data = (
- { term => "marclist", val => $marclist[0] },
- { term => "and_or", val => $and_or[0] },
- { term => "excluding", val => $excluding[0] },
- { term => "operator", val => $operator[0] },
- { term => "value", val => $value[0] },
- );
-
- my @numbers = ();
-
- if ( $total > $resultsperpage ) {
- for ( my $i = 1 ; $i < $total / $resultsperpage + 1 ; $i++ ) {
- if ( $i < 16 ) {
- my $highlight = 0;
- ( $startfrom == ( $i - 1 ) ) && ( $highlight = 1 );
- push @numbers,
- {
- number => $i,
- highlight => $highlight,
- searchdata => \@field_data,
- startfrom => ( $i - 1 )
- };
- }
- }
- }
-
- my $from = $startfrom * $resultsperpage + 1;
+ my $value_url = uri_escape_utf8($value[0]);
+ my $base_url = "opac-authorities-home.pl?"
+ ."marclist=$marclist[0]"
+ ."&and_or=$and_or[0]"
+ ."&excluding=$excluding[0]"
+ ."&operator=$operator[0]"
+ ."&value=$value_url"
+ ."&resultsperpage=$resultsperpage"
+ ."&type=opac"
+ ."&op=do_search"
+ ."&authtypecode=$authtypecode"
+ ."&orderby=$orderby";
+
+ my $from = ( $startfrom - 1 ) * $resultsperpage + 1;