[Rt-commit] r4333 - in rtfm/branches/2.1-TESTING: .
html/RTFM/Article
alexmv at bestpractical.com
alexmv at bestpractical.com
Mon Dec 19 15:45:42 EST 2005
Author: alexmv
Date: Mon Dec 19 15:45:42 2005
New Revision: 4333
Modified:
rtfm/branches/2.1-TESTING/ (props changed)
rtfm/branches/2.1-TESTING/html/RTFM/Article/Search.html
Log:
r7860 at zoq-fot-pik: chmrr | 2005-12-19 15:45:12 -0500
* Article searches should be case insensitive
Modified: rtfm/branches/2.1-TESTING/html/RTFM/Article/Search.html
==============================================================================
--- rtfm/branches/2.1-TESTING/html/RTFM/Article/Search.html (original)
+++ rtfm/branches/2.1-TESTING/html/RTFM/Article/Search.html Mon Dec 19 15:45:42 2005
@@ -80,15 +80,17 @@
return;
} elsif ($ARGS{'q'}) {
$articles->Limit( FIELD => 'Name',
- SUBCLAUSE => 'NameOrSummary',
- OPERATOR => 'LIKE',
- ENTRYAGGREGATOR => 'OR',
- VALUE => $ARGS{'q'} );
+ SUBCLAUSE => 'NameOrSummary',
+ OPERATOR => 'LIKE',
+ ENTRYAGGREGATOR => 'OR',
+ CASESENSITIVE => 0,
+ VALUE => $ARGS{'q'} );
$articles->Limit( FIELD => 'Summary',
- SUBCLAUSE => 'NameOrSummary',
- OPERATOR => 'LIKE',
- ENTRYAGGREGATOR => 'OR',
- VALUE => $ARGS{'q'} );
+ SUBCLAUSE => 'NameOrSummary',
+ OPERATOR => 'LIKE',
+ ENTRYAGGREGATOR => 'OR',
+ CASESENSITIVE => 0,
+ VALUE => $ARGS{'q'} );
}
# }}}
@@ -309,6 +311,7 @@
}
$articles->LimitCustomField( FIELD => $cfs{$field},
VALUE => $value,
+ CASESENSITIVE => 0,
ENTRYAGGREGATOR => 'OR',
OPERATOR => $op );
}
@@ -324,6 +327,7 @@
}
$articles->LimitCustomField( FIELD => $cfs{$field},
VALUE => $value,
+ CASESENSITIVE => 0,
ENTRYAGGREGATOR => 'OR',
OPERATOR => $op );
}
@@ -335,32 +339,38 @@
$articles->LimitCustomField( VALUE => $ARGS{'Article~'},
ENTRYAGGREGATOR => 'OR',
OPERATOR => 'LIKE',
+ CASESENSITIVE => 0,
SUBCLAUSE => 'SearchAll' );
$articles->Limit( SUBCLAUSE => 'SearchAll',
FIELD => "Name",
VALUE => $ARGS{'Article~'},
ENTRYAGGREGATOR => 'OR',
+ CASESENSITIVE => 0,
OPERATOR => 'LIKE' );
$articles->Limit( SUBCLAUSE => 'SearchAll',
FIELD => "Summary",
VALUE => $ARGS{'Article~'},
ENTRYAGGREGATOR => 'OR',
+ CASESENSITIVE => 0,
OPERATOR => 'LIKE' );
}
if ($ARGS{'Article!~'}) {
$articles->LimitCustomField( VALUE => $ARGS{'Article!~'},
OPERATOR => 'NOT LIKE',
+ CASESENSITIVE => 0,
SUBCLAUSE => 'SearchAll' );
$articles->Limit( SUBCLAUSE => 'SearchAll',
FIELD => "Name",
VALUE => $ARGS{'Article!~'},
ENTRYAGGREGATOR => 'AND',
+ CASESENSITIVE => 0,
OPERATOR => 'NOT LIKE' );
$articles->Limit( SUBCLAUSE => 'SearchAll',
FIELD => "Summary",
VALUE => $ARGS{'Article!~'},
ENTRYAGGREGATOR => 'AND',
+ CASESENSITIVE => 0,
OPERATOR => 'NOT LIKE' );
}
@@ -405,7 +415,8 @@
$articles->Limit( SUBCLAUSE => $field . 'Match',
FIELD => $field,
OPERATOR => $op,
- VALUE => $value,
+ CASESENSITIVE => 0,
+ VALUE => $value,
ENTRYAGGREGATOR => 'OR' );
}
@@ -430,7 +441,8 @@
$articles->Limit( SUBCLAUSE => $field . 'NoMatch',
OPERATOR => $op,
- VALUE => $value,
+ VALUE => $value,
+ CASESENSITIVE => 0,
FIELD => $field,
ENTRYAGGREGATOR => 'AND' );
More information about the Rt-commit
mailing list