Lines 612-618
if ( $indexing_mode eq 'dom' ) {
Link Here
|
612 |
( $error, $query, $simple_query, $query_cgi, |
612 |
( $error, $query, $simple_query, $query_cgi, |
613 |
$query_desc, $limit, $limit_cgi, $limit_desc, |
613 |
$query_desc, $limit, $limit_cgi, $limit_desc, |
614 |
$query_type ) = buildQuery([], [ 'ccl=an:42' ], [], ['available'], [], 0, 'en'); |
614 |
$query_type ) = buildQuery([], [ 'ccl=an:42' ], [], ['available'], [], 0, 'en'); |
615 |
is( $query, 'an:42 and ( ( allrecords,AlwaysMatches:'' not onloan,AlwaysMatches:'') and (lost,st-numeric=0) )', 'buildQuery should add the available part to the query if requested with ccl' ); |
615 |
is( $query, "an:42 and ( ( allrecords,AlwaysMatches:'' not onloan,AlwaysMatches:'') and (lost,st-numeric=0) )", 'buildQuery should add the available part to the query if requested with ccl' ); |
616 |
is( $query_desc, 'an:42', 'buildQuery should remove the available part from the query' ); |
616 |
is( $query_desc, 'an:42', 'buildQuery should remove the available part from the query' ); |
617 |
|
617 |
|
618 |
# Let's see what happens when we pass bad data into these routines. |
618 |
# Let's see what happens when we pass bad data into these routines. |
619 |
- |
|
|