Lines 71-77
sub search_for_display {
Link Here
|
71 |
|
71 |
|
72 |
my $search_params; |
72 |
my $search_params; |
73 |
$search_params->{location} = $params->{location}; |
73 |
$search_params->{location} = $params->{location}; |
74 |
$search_params->{branchcode} = [ $params->{library_id}, undef ] if $params->{library_id}; |
74 |
$search_params->{branchcode} = $params->{library_id} ? [ $params->{library_id}, undef ] : undef; |
75 |
$search_params->{published_on} = { '<=' => \'CAST(NOW() AS DATE)' }; |
75 |
$search_params->{published_on} = { '<=' => \'CAST(NOW() AS DATE)' }; |
76 |
$search_params->{-or} = [ expirationdate => { '>=' => \'CAST(NOW() AS DATE)' }, |
76 |
$search_params->{-or} = [ expirationdate => { '>=' => \'CAST(NOW() AS DATE)' }, |
77 |
expirationdate => undef ]; |
77 |
expirationdate => undef ]; |
78 |
- |
|
|