|
Lines 53-64
if ( $auth_status ne "ok" ) {
Link Here
|
| 53 |
my @value = $query->multi_param('term'); |
53 |
my @value = $query->multi_param('term'); |
| 54 |
my $searchtype = $query->param('querytype'); |
54 |
my $searchtype = $query->param('querytype'); |
| 55 |
my @marclist = ($searchtype); |
55 |
my @marclist = ($searchtype); |
|
|
56 |
my $index = $query->param('index'); |
| 56 |
my $authtypecode = $query->param('authtypecode'); |
57 |
my $authtypecode = $query->param('authtypecode'); |
| 57 |
my @and_or = $query->multi_param('and_or'); |
58 |
my @and_or = $query->multi_param('and_or'); |
| 58 |
my @excluding = $query->multi_param('excluding'); |
59 |
my @excluding = $query->multi_param('excluding'); |
| 59 |
my @operator = $query->multi_param('operator'); |
60 |
my @operator = $query->multi_param('operator'); |
| 60 |
my $orderby = $query->param('orderby'); |
61 |
my $orderby = $query->param('orderby'); |
| 61 |
|
62 |
|
|
|
63 |
if ( C4::Context->preference('ConsiderHeadingUse') ) { |
| 64 |
my $marcflavour = C4::Context->preference('marcflavour'); |
| 65 |
my $biblio_tag = substr( $index, 4, 3 ); |
| 66 |
if ( $marcflavour eq 'MARC21' ) { |
| 67 |
my $heading_use_search_field = |
| 68 |
$biblio_tag =~ /^[127]/ ? 'Heading-use-main-or-added-entry' |
| 69 |
: $biblio_tag =~ /^6/ ? 'Heading-use-subject-added-entry' |
| 70 |
: $biblio_tag =~ /^[48]/ ? 'Heading-use-series-added-entry' |
| 71 |
: undef; |
| 72 |
if ($heading_use_search_field) { |
| 73 |
push @marclist, $heading_use_search_field; |
| 74 |
push @and_or, 'and'; |
| 75 |
push @excluding, ''; |
| 76 |
push @operator, 'is'; |
| 77 |
push @value, 'a'; |
| 78 |
} |
| 79 |
} |
| 80 |
} |
| 81 |
|
| 62 |
my $resultsperpage = 50; |
82 |
my $resultsperpage = 50; |
| 63 |
my $startfrom = 0; |
83 |
my $startfrom = 0; |
| 64 |
|
84 |
|