Bug 6149: Follow-up [grouped] - Stopwords for Result Highlighting
- Added functionaility to opac-results-grouped page Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de>
This commit is contained in:
parent
500369d807
commit
dce2a6362c
|
|
@ -349,8 +349,12 @@ function highlightOff() {
|
|||
function highlightOn() {
|
||||
var x;
|
||||
for (x in q_array) {
|
||||
q_array[x] = q_array[x].replace(/\w*:([\w])/, "$1");
|
||||
$("td").highlight(q_array[x]);
|
||||
q_array[x] = q_array[x].replace(/\w*:([\w])/, "$1");
|
||||
q_array[x] = q_array[x].toLowerCase();
|
||||
var myStopwords = "[% Koha.Preference('HighlightedStopWords') %]".toLowerCase().split('|');
|
||||
if ( (q_array[x].length > 0) && ($.inArray(q_array[x], myStopwords) == -1) ) {
|
||||
$("td").highlight(q_array[x]);
|
||||
}
|
||||
}
|
||||
$(".highlight_toggle").toggle();
|
||||
}
|
||||
|
|
|
|||
|
|
@ -84,7 +84,11 @@ function highlightOn() {
|
|||
var x;
|
||||
for (x in q_array) {
|
||||
q_array[x] = q_array[x].replace(/\w*:([\w])/, "$1");
|
||||
$("td").highlight(q_array[x]);
|
||||
q_array[x] = q_array[x].toLowerCase();
|
||||
var myStopwords = "[% Koha.Preference('HighlightedStopWords') %]".toLowerCase().split('|');
|
||||
if ( (q_array[x].length > 0) && ($.inArray(q_array[x], myStopwords) == -1) ) {
|
||||
$("td").highlight(q_array[x]);
|
||||
}
|
||||
}
|
||||
$(".highlight_toggle").toggle();
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue