Kelson
1f45c42c32
Merge pull request #472 from MananJethwani/issue/407
...
added root functionality for block external link feature
2021-03-23 10:54:22 +01:00
Manan Jethwani
93264f7409
added root functionality for block external link feature
2021-03-23 03:17:14 +05:30
Matthieu Gautier
baed447dd3
Merge pull request #460 from kiwix/xapian_based_catalog_search
2021-03-17 14:45:56 +01:00
Veloman Yunkan
20b487da8d
Added Xapian as direct dependency
2021-03-17 14:32:03 +01:00
Veloman Yunkan
e214efecd4
Language code conversion via ICU
...
Language code is converted from ISO 639-3 to ISO 639 (which is
understood by Xapian) via ICU. The previous approach via an explicit
map had its advantages since Xapian has more than one stemmer
implementations for some languages (selectable via Xapian-specific
identifiers). This commit relies on the defaults associated with the
ISO 639 language codes.
2021-03-17 14:32:03 +01:00
Veloman Yunkan
09233bf4f3
Support for partial queries in catalog search
...
The search text in the catalog query is interpreted as partial by
default, but partial query mode can be disabled in C++. The latter
possibility is not exposed via the /catalog/search kiwix-serve endpoint,
though.
2021-03-17 14:32:03 +01:00
Veloman Yunkan
47c67a4202
LibraryServerTest.catalog_search_with_word_exclusion
2021-03-17 14:32:03 +01:00
Veloman Yunkan
6b600a18eb
LibraryServerTest.catalog_prefix_search
2021-03-17 14:32:03 +01:00
Veloman Yunkan
9e887cadf1
Added some diversity to test/data/library.xml
2021-03-17 14:32:03 +01:00
Veloman Yunkan
a599fb3892
Initial version of Xapian-based catalog search
2021-03-17 14:32:03 +01:00
Veloman Yunkan
a17fc0ef2d
Library::getBooksByTitleOrDescription()
2021-03-17 14:32:03 +01:00
Veloman Yunkan
db06b2c7ca
Library::BookIdCollection typedef
2021-03-17 14:32:03 +01:00
Veloman Yunkan
a20f9e2ce1
Library::filter() works in two stages
...
1. Get the subset of books matching the q (title/description) parameter
of the search
2. Filter out books not matching the other parameters of the search.
Stage 1. currently works in the old way, but will be replaced by Xapian
based search in subsequent commits.
2021-03-17 14:32:03 +01:00
Kelson
f7c867f8a7
Merge pull request #459 from kiwix/opds_category_support
...
Support for book categories in OPDS feed
2021-03-17 12:37:16 +01:00
Veloman Yunkan
b7b0bdbdd8
Both Book::update() methods update the category
2021-03-17 14:10:57 +04:00
Veloman Yunkan
a870e05621
Slight enhancement of BookTest.updateTest
2021-03-17 14:10:57 +04:00
Veloman Yunkan
4abc4f8518
Support for book category attribute in library.xml
2021-03-17 14:10:57 +04:00
Veloman Yunkan
6b2067c236
Reading category element from OPDS stream
2021-03-17 14:10:57 +04:00
Veloman Yunkan
e55bf514e8
Dedicated 'category' parameter in catalog search
2021-03-17 14:10:57 +04:00
Veloman Yunkan
80d4f7e349
Extracted InternalServer::search_catalog()
2021-03-17 14:10:57 +04:00
Veloman Yunkan
f270724b1f
Testing of a library entry without a category
2021-03-17 14:10:44 +04:00
Veloman Yunkan
58186ffb26
kiwix::Book::getCategory()
2021-03-17 14:09:48 +04:00
Veloman Yunkan
6d43fd065f
Less boilerplate in LibraryServerTest unit-tests
2021-03-17 14:02:27 +04:00
Veloman Yunkan
071d2bedd3
LibraryServerTest.catalog_search_by_text
2021-03-17 14:02:27 +04:00
Veloman Yunkan
0b1740e6c5
LibraryServerTest.catalog_search_by_tag
2021-03-17 14:02:27 +04:00
Veloman Yunkan
9913f748e2
LibraryServerTest.catalog_searchdescription_xml
2021-03-17 14:02:27 +04:00
Veloman Yunkan
c5c40cb189
New unit-test LibraryServerTest.catalog_root_xml
2021-03-17 14:02:27 +04:00
Veloman Yunkan
ae32ff40c0
Dropped an extra colon from book <updated> dates
2021-03-17 14:02:27 +04:00
Veloman Yunkan
26331b401e
Fixed the month in OPDS feed <updated> date
...
`tm::tm_mon` varies in the [0, 11] range.
2021-03-17 14:02:27 +04:00
Matthieu Gautier
0f368791a2
Merge pull request #461 from MananJethwani/issue/444
2021-03-15 16:57:10 +01:00
Manan Jethwani
fb26f6b9c5
moved autocomplete from head_part.html to taskbar.js
2021-03-15 18:10:10 +05:30
Matthieu Gautier
32643fbd94
Merge pull request #463 from soumyankar/master
...
Change Mustache-3.0 to Mustache-4.1
2021-03-15 11:38:57 +01:00
Vertigo
faa9e1f8b5
Change Mustache-3.0 to Mustache-4.1
2021-03-14 11:43:48 +05:30
Kelson
bd781f8e8b
Merge pull request #458 from kiwix/html_decoded_suggestions
...
Correctly encoding/decoding HTML entities in search suggestions
2021-03-04 14:34:47 +01:00
Veloman Yunkan
c7d77395e7
`label` field of suggestions is also HTML escaped
...
Without this if the suggestion text contains a double quote, the
response stops being a valid json.
2021-03-04 14:18:58 +01:00
Veloman Yunkan
a7fea462b0
HTML decoding of suggestions in the frontend
...
Since the `value` field of the search suggestion results is HTML
escaped/encoded in the backend (see static/templates/suggestion.json) it
must be decoded in the frontend.
2021-03-04 14:18:58 +01:00
Matthieu Gautier
89d7e68a39
Merge pull request #446 from kiwix/libzim_random
...
Use the new libzim's getRandomEntry instead of implementing it ourselves.
2021-03-03 16:04:00 +01:00
Matthieu Gautier
67caae6c32
Use the new libzim's getRandomEntry instead of implementing it ourselves.
2021-03-02 14:16:09 +01:00
Kelson
d3f2e08b35
Merge pull request #429 from kiwix/open_zimfile_by_fd
...
JNI interface to opening ZIM archives (including embedded ones) by fd
2021-02-26 09:20:58 +01:00
Veloman Yunkan
839fc10a4f
Fixed the Windows build
...
Opening ZIM archives by file descriptor (as well as embedded
ZIM archives) is not supported under Windows.
2021-02-10 14:19:47 +01:00
Veloman Yunkan
5a8b825c70
Testing of JNIKiwixReader.getDirectAccessInformation()
2021-02-10 14:19:47 +01:00
Veloman Yunkan
7a465e66d7
Renamed org.kiwix.kiwixlib.{Pair->DirectAccessInfo}
2021-02-10 14:19:47 +01:00
Veloman Yunkan
5a99634dfd
Java wrapper test checks favicon.png too
2021-02-10 14:19:47 +01:00
Veloman Yunkan
e028bcbb04
Android's java.io.FileDescriptor is different
2021-02-10 14:19:47 +01:00
Veloman Yunkan
9cdf7a44c0
JNIKiwixReader can open an embedded ZIM archive
2021-02-10 14:19:47 +01:00
Veloman Yunkan
4d23e44de7
JNIKiwixReader ctor taking a file descriptor
...
... and a corresponding unit test
2021-02-10 14:19:47 +01:00
Veloman Yunkan
98d69ef59b
Added testReader unit-test for the java wrapper
2021-02-10 14:19:47 +01:00
Veloman Yunkan
e40827fbac
Renamed the java wrapper unit test runner script
2021-02-10 14:19:47 +01:00
Veloman Yunkan
a798e0c0a1
Made the java wrapper unit test run & pass
...
The kiwixlib java wrapper unit test can be run manually via the
src/wrapper/java/org/kiwix/testing/compile_test.sh script.
The test ZIM files in src/wrapper/java/org/kiwix/testing were created
using the create_test_zimfiles. They must be updated/re-generated and
committed in git whenever their source data or the create_test_zimfiles
script changes. Note: small.zim.embedded is not used at this point, it
was created for testing the enhancement coming in a few commits.
2021-02-10 14:19:47 +01:00
Matthieu Gautier
971374e049
Merge pull request #455 from kiwix/api-break-bumpup-major-version
...
Bump-up version to 10.0.0
2021-02-10 10:47:06 +01:00