openlibhums / openlibhums/janeway

Indexing field on article sections seems to have no effect

Open
#5,407 1 comment 0 reactions 1 assignee View on GitHub

@mauromsl is already working on this.

Since Jul 30, 2026.

bug
Dominant language
Python
Stars
238
Forks
97
Avg merge
9d 1h
Merged PRs (30d)
8

Description

Problem

The indexing field on section is not used anywhere in the janeway codebase, though I am not sure about plugins.

https://github.com/openlibhums/janeway/blob/819fe88a8781c2b275bc884d3d74dd8dac668899/src/submission/models.py#L3024-L3026

Proposed solution

Depending on whether it is used in plugins, we need to

  • Document where it is used, by what plugin, and document that it does not affect the OAI-PMH feed, to avoid confusion.

OR

  • Remove the field and come up with a way of notifying people who might be depending on it to exclude some things from their OAI feed.

OR

  • Make the field work by filtering the article serializer queryset with section.indexing = True, although this may have unintended consequences if someone is using the JSON API for non-indexing purposes.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.