openzim / gutenberg

Scraper for downloading the entire ebooks repository of project Gutenberg
https://download.kiwix.org/zim/gutenberg
GNU General Public License v3.0
126 stars 37 forks source link

[REGRESSION] multilang ZIM filters broken #175

Closed kelson42 closed 1 year ago

kelson42 commented 1 year ago

Seems to me they are all broken since 2.0.0 release https://library.kiwix.org/viewer#gutenberg_mul_all_2023-02/Home.html

benoit74 commented 1 year ago

Just to be sure, are we speaking about the combo box which shows only "All languages" ?

kelson42 commented 1 year ago

Yes, filter by author as well and bookshelves are empty.

rgaudin commented 1 year ago

There are several JS errors in the console.

For instance there is template code in the generated JS file which is obviously gonna cause problems:

/js/l10n.js

var available_languages = [{% for lang in ui_languages %} '{{ lang }}', {% endfor %}];
benoit74 commented 1 year ago

Is this something which has been changed in 2.0 ? I do not remember to have touched this.

kelson42 commented 1 year ago

Strongly suspect this is related to the "removal" of namespaces...

rgaudin commented 1 year ago

@benoit74 do you plan on working on this or should I?

benoit74 commented 1 year ago

I won't have time to work on it this week. If this is urgent, you should work on it.