Skip to content
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

Casing of category is „random“ #23

Open
kelson42 opened this issue May 20, 2024 · 6 comments
Open

Casing of category is „random“ #23

kelson42 opened this issue May 20, 2024 · 6 comments
Labels
bug Something isn't working upstream

Comments

@kelson42
Copy link
Contributor

image
@kelson42 kelson42 added the bug Something isn't working label May 20, 2024
@rgaudin
Copy link
Member

rgaudin commented May 20, 2024

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

@kelson42
Copy link
Contributor Author

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

@rgaudin
Copy link
Member

rgaudin commented May 21, 2024

Maybe kiwix/libkiwix#844 ?

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

  • close the ticket?
  • mark this as upstream-dependent on that one?
  • implement something on the hotspot? (ie. maintain a list of slug/labels for categories)
❯ 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
Copy link
Contributor Author

I would like to tag "upstream"

@kelson42
Copy link
Contributor Author

Maybe kiwix/libkiwix#844 ?

No the issue @Popolechien has open.

@rgaudin
Copy link
Member

rgaudin commented May 21, 2024

Awaiting kiwix/overview#104

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working upstream
Projects
None yet
Development

No branches or pull requests

2 participants