offspot / dashboard

Kiwix Hotspot dashboard (homepage, configuration, ...)
GNU General Public License v3.0
1 stars 0 forks source link

Casing of category is „random“ #23

Open kelson42 opened 1 month ago

kelson42 commented 1 month ago
image
rgaudin commented 1 month ago

Those are the categories metadata. I remember you talking about an official list of categories in libkiwix. Is that already live ?

kelson42 commented 1 month ago

Yes, there is ticket somewhere but impossible to find it...

rgaudin commented 1 month ago

Maybe https://github.com/kiwix/libkiwix/issues/844 ?

Since the OPDS API doesn't provide anything better than what we have, should we:

❯ http https://kiwix.demo.hotspot.kiwix.org/catalog/v2/categories
HTTP/1.1 200 OK
Access-Control-Allow-Origin: *
Alt-Svc: h3=":443"; ma=2592000
Cache-Control: max-age=0, must-revalidate
Content-Encoding: gzip
Content-Length: 672
Content-Type: application/atom+xml;profile=opds-catalog;kind=navigation;charset=utf-8
Date: Tue, 21 May 2024 08:39:28 GMT
Etag: "1716196319638194398.9/z"
Server: Caddy
Vary: Accept-Encoding
<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:opds="https://specs.opds.io/opds-1.2">
  <id>d2bf8df4-61f1-ca25-23b9-03e97e5e2cec</id>
  <link rel="self" href="/catalog/v2/categories" type="application/atom+xml;profile=opds-catalog;kind=navigation"/>
  <link rel="start" href="/catalog/v2/root.xml" type="application/atom+xml;profile=opds-catalog;kind=navigation"/>
  <title>List of categories</title>
  <updated>2024-05-21T08:39:28Z</updated>
  <entry>
    <title>iFixit</title>
    <link rel="subsection" href="/catalog/v2/entries?category=iFixit" type="application/atom+xml;profile=opds-catalog;kind=acquisition"/>
    <updated>2024-05-21T08:39:28Z</updated>
    <id>17376a2d-4745-26f1-94ce-c705d1a7938b</id>
    <content type="text">All entries with category of 'iFixit'.</content>
  </entry>
  <entry>
    <title>phet</title>
    <link rel="subsection" href="/catalog/v2/entries?category=phet" type="application/atom+xml;profile=opds-catalog;kind=acquisition"/>
    <updated>2024-05-21T08:39:28Z</updated>
    <id>a5d914a6-47dc-5447-d115-9d72b0e38461</id>
    <content type="text">All entries with category of 'phet'.</content>
  </entry>
  <entry>
    <title>stack_exchange</title>
    <link rel="subsection" href="/catalog/v2/entries?category=stack_exchange" type="application/atom+xml;profile=opds-catalog;kind=acquisition"/>
    <updated>2024-05-21T08:39:28Z</updated>
    <id>a934459d-2c30-9a54-9a2a-5b51ae554679</id>
    <content type="text">All entries with category of 'stack_exchange'.</content>
  </entry>
  <entry>
    <title>ted</title>
    <link rel="subsection" href="/catalog/v2/entries?category=ted" type="application/atom+xml;profile=opds-catalog;kind=acquisition"/>
    <updated>2024-05-21T08:39:28Z</updated>
    <id>e73f6d53-4531-5b73-86d6-a43edbcf5ff4</id>
    <content type="text">All entries with category of 'ted'.</content>
  </entry>
  <entry>
    <title>wikipedia</title>
    <link rel="subsection" href="/catalog/v2/entries?category=wikipedia" type="application/atom+xml;profile=opds-catalog;kind=acquisition"/>
    <updated>2024-05-21T08:39:28Z</updated>
    <id>53cc5910-0214-a2dd-28d0-f4b90f5593e5</id>
    <content type="text">All entries with category of 'wikipedia'.</content>
  </entry>
  <entry>
    <title>wiktionary</title>
    <link rel="subsection" href="/catalog/v2/entries?category=wiktionary" type="application/atom+xml;profile=opds-catalog;kind=acquisition"/>
    <updated>2024-05-21T08:39:28Z</updated>
    <id>c4568cce-9d48-4eb5-2c0a-54fc9bde7854</id>
    <content type="text">All entries with category of 'wiktionary'.</content>
  </entry>
</feed>
kelson42 commented 1 month ago

I would like to tag "upstream"

kelson42 commented 1 month ago

Maybe kiwix/libkiwix#844 ?

No the issue @Popolechien has open.

rgaudin commented 1 month ago

Awaiting https://github.com/kiwix/overview/issues/104