- orderby => $orderby,
- startfrom => $startfrom,
- displaynext => $displaynext,
- displayprev => $displayprev,
- resultsperpage => $resultsperpage,
- startfromnext => $startfrom + 1,
- startfromprev => $startfrom - 1,
- searchdata => \@field_data,
- total => $total,
- from => $from,
- to => $to,
- numbers => \@numbers,
- authtypecode => $authtypecode,
- value_mainstr => $query->param('value_mainstr') || "",
- value_main => $query->param('value_main') || "",
- value_any => $query->param('value_any') || "",
- value_match => $query->param('value_match') || "",
- );
-} else {
- ( $template, $loggedinuser, $cookie ) = get_template_and_user(
- {
- template_name => "authorities/auth_finder.tt",
- query => $query,
- type => 'intranet',
- authnotrequired => 0,
- flagsrequired => { catalogue => 1 },
- }
+ orderby => $orderby,
+ startfrom => $startfrom,
+ displaynext => $displaynext,
+ displayprev => $displayprev,
+ resultsperpage => $resultsperpage,
+ startfromnext => $startfrom + 1,
+ startfromprev => $startfrom - 1,
+ searchdata => \@field_data,
+ total => $total,
+ from => $from,
+ to => $to,
+ numbers => \@numbers,
+ operator_mainstr => ( @operator > 0 && $operator[0] )
+ ? $operator[0]
+ : '',
+ operator_main => ( @operator > 1 && $operator[1] ) ? $operator[1] : '',
+ operator_any => ( @operator > 2 && $operator[2] ) ? $operator[2] : '',
+ operator_match => ( @operator > 3 && $operator[3] ) ? $operator[3] : '',