Commit e1b82680 authored by Randall Leeds's avatar Randall Leeds

Quote search should match any quote selector

parent 434d0e8f
......@@ -399,10 +399,12 @@ class ViewFilter
quote:
autofalse: (annotation) -> return annotation.references?
value: (annotation) ->
for t in (annotation.target or [])
quotes = for t in (annotation.target or [])
for s in (t.selector or []) when s.type is 'TextQuoteSelector'
if s.exact then return s.exact
''
unless s.exact then continue
s.exact
quotes = Array::concat quotes...
quotes.join('\n')
match: (term, value) -> return value.indexOf(term) > -1
since:
autofalse: (annotation) -> return not annotation.updated?
......
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