Skip to content

Changes

Started 1 mo 2 days ago
Took 16 min

Summary

  1. feat: Refactor OPDS feed and publication generation (details)
  2. feat: Refactor OPDS feed and publication generation (details)
Commit 416b29f29173b01224768e294fed6ea9dbc932d6 by mandvi.verma
feat: Refactor OPDS feed and publication generation

Refactored the generation of OPDS feeds and web publications.

- A `type` field was added to `OpdsWebPublicationLink`.
- The single `publication.json` is replaced by multiple JSON files:
    - `opds.json` now serves as the root feed.
    - A `<topicId>.json` file is generated, listing all sub-topic publications.
    - A separate `<subTopicId>.json` is created for each sub-topic's web publication manifest.
- JSON generation logic was updated to create these new files and structure, using a base URL for links.
The file was modifiedapp/src/main/kotlin/com/ustadmobile/zim2xapi/models/opdsfeed/OpdsWebPublicationLink.kt (diff)
The file was modifiedapp/src/main/kotlin/com/ustadmobile/zim2xapi/CreateXapiFileUseCase.kt (diff)
Commit 638265123b7791319e567e228c1b387ca4ea59b8 by mandvi.verma
feat: Refactor OPDS feed and publication generation

Refactored the generation of OPDS feeds and web publications.

- A `type` field was added to `OpdsWebPublicationLink`.
- The single `publication.json` is replaced by multiple JSON files:
    - `opds.json` now serves as the root feed.
    - A `<topicId>.json` file is generated, listing all sub-topic publications.
    - A separate `<subTopicId>.json` is created for each sub-topic's web publication manifest.
- JSON generation logic was updated to create these new files and structure, using a base URL for links.
The file was modifiedapp/src/main/kotlin/com/ustadmobile/zim2xapi/CreateXapiFileUseCase.kt (diff)