-
-
Notifications
You must be signed in to change notification settings - Fork 56
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use title snippets if available #505
Conversation
Codecov Report
@@ Coverage Diff @@
## master #505 +/- ##
==========================================
+ Coverage 64.57% 64.60% +0.02%
==========================================
Files 50 50
Lines 3562 3565 +3
Branches 1802 1805 +3
==========================================
+ Hits 2300 2303 +3
Misses 1260 1260
Partials 2 2
Continue to review full report at Codecov.
|
|
@MananJethwani Maybe you can help @maneeshpm on that one? |
this I suppose is a problem with jquery-ui. because the data is received in taskbar.js as we expect it to be, and to stop this behavior we might have to use _renderItem property of autocomplete UI. |
@MananJethwani It seems like we are already using |
@maneeshpm |
2308bf8
to
9bba054
Compare
Thanks a lot for your help @MananJethwani, front end is not really my strong point 😅 Final result of the modification: @kelson42 I believe this feature can be improved further by modifications in stemming and stopwords(openzim/libzim#324) to ensure all the matching terms are highlighted. |
@maneeshpm Great to see this implemented and great you see the connection to the other ticket :) |
9bba054
to
1b56680
Compare
7b81795
to
947000f
Compare
Rebasing temporarily on #526 |
947000f
to
27c7842
Compare
@maneeshpm rebasing maybe? |
7e85e22
to
a5707a7
Compare
a5707a7
to
2bbe0fa
Compare
@mgautierfr I have rebased this branch. We should really review/merge. |
2bbe0fa
to
5f4b8d8
Compare
With openzim/libzim#545 we now support snippet generation of titles which can be used as the display label on the ui for highlighted titles via the "label" field. The old version used plain title which is still available in the value field.
To render the snippets properly, we need to use the _renderItem property of the autocomple ui.
This is a helper class that allows to create and manage individual suggestion item and their data.
Each sugestions used to be stored as vector of strings to hold various values such as title, path etc inside them. With this commit, we use the new dedicated class `SuggestionItem` to do the same.
5f4b8d8
to
5567d8c
Compare
Rebased-fixup on master (and fix conflicts). We are good. |
Fixes #82
With openzim/libzim#545 we now support snippet generation for titles. It can be used as the display label on the ui for highlighted titles via the "label" field. The old version used plain-title which is still available in the value field.
Changes included in this pr:
label
to title snippet if available_renderItem
property of autocomplete ui