mirror of
https://github.com/TheAnachronism/docspell.git
synced 2025-06-04 06:05:59 +00:00
Include item notes in search
This commit is contained in:
parent
d2edddd238
commit
9b66604b96
@ -194,7 +194,8 @@ object QItem {
|
|||||||
IC.cid.prefix("i").is(q.collective),
|
IC.cid.prefix("i").is(q.collective),
|
||||||
IC.state.prefix("i").isOneOf(q.states),
|
IC.state.prefix("i").isOneOf(q.states),
|
||||||
IC.incoming.prefix("i").isOrDiscard(q.direction),
|
IC.incoming.prefix("i").isOrDiscard(q.direction),
|
||||||
name.map(n => IC.name.prefix("i").lowerLike(n)).getOrElse(Fragment.empty),
|
name.map(n => or(IC.name.prefix("i").lowerLike(n), IC.notes.prefix("i").lowerLike(n))).
|
||||||
|
getOrElse(Fragment.empty),
|
||||||
RPerson.Columns.pid.prefix("p0").isOrDiscard(q.corrPerson),
|
RPerson.Columns.pid.prefix("p0").isOrDiscard(q.corrPerson),
|
||||||
ROrganization.Columns.oid.prefix("o0").isOrDiscard(q.corrOrg),
|
ROrganization.Columns.oid.prefix("o0").isOrDiscard(q.corrOrg),
|
||||||
RPerson.Columns.pid.prefix("p1").isOrDiscard(q.concPerson),
|
RPerson.Columns.pid.prefix("p1").isOrDiscard(q.concPerson),
|
||||||
|
@ -423,7 +423,7 @@ view model =
|
|||||||
]
|
]
|
||||||
]
|
]
|
||||||
, div [ class "field" ]
|
, div [ class "field" ]
|
||||||
[ label [] [ text "Name" ]
|
[ label [] [ text "Name or Notes" ]
|
||||||
, input
|
, input
|
||||||
[ type_ "text"
|
[ type_ "text"
|
||||||
, onInput SetName
|
, onInput SetName
|
||||||
|
Loading…
x
Reference in New Issue
Block a user