Commit d21c16d2 authored by Romain Loth's avatar Romain Loth

Add exception to abstract search when there is no defined abstract :/

parent 62993358
...@@ -474,7 +474,9 @@ function Main_test( Data , SearchFilter ) { ...@@ -474,7 +474,9 @@ function Main_test( Data , SearchFilter ) {
// if box is checked we'll also search in the abstracts // if box is checked we'll also search in the abstracts
if ($("#searchAB").is(':checked')) { if ($("#searchAB").is(':checked')) {
matchInTexts.push(record.hyperdata.abstract) if (typeof record.hyperdata.abstract !== 'undefined') {
matchInTexts.push(record.hyperdata.abstract)
}
} }
// inspired from the default cf. dynatable.queries.functions['search'] // inspired from the default cf. dynatable.queries.functions['search']
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment