Skip to content

Search in browse by title does not work when the title starts with "A", "As", "O", "Os" and the dc.title contains certain values in text_lang etc... #4166

@IgorBaptist4

Description

@IgorBaptist4

Describe the bug

This bug can be reproduced in versions 7.x, 9.x, and probably 8.x as well (I have not tested it in 8.x).

If a title starts with "A", "As", "O", or "Os" (for example: "O papel...", "A birth...") and the dc.title field contains a text_lang value like "pt_BR", "por", or "en_US", then when browsing by title and searching for the item's title, the item is not found.
However, if text_lang is changed to "pt-BR", "en" or left empty, the item can be found when browsing by title and searching for the title.

To Reproduce

Steps to reproduce the behavior:

  1. Log in and deposit an item with a title like "O papel...", "A birth...", etc. (Or just find an item that fits the requirements and proceed).
  2. Edit the item, adding a value to the Lang field of dc.title, such as "pt_BR", "por", etc.
  3. Go to "Browse by Title" and search for the title of the deposited item.

Expected behavior

If the Lang value of dc.title contains a form like "pt_BR", "por", or similar, and the title starts with "A", "E", "I", "O", "U", or "As", the item will not show up when using the search of "Browse by Title".

Proofs

Item created in sandbox to test it: https://sandbox.dspace.org/items/bdaf0451-b966-4008-8259-f55155224f95
An item already in the sandbox that matches the bug: https://sandbox.dspace.org/entities/publication/bb399a20-8fb5-4f19-9bdc-d9bc23cbd04f/full

When lang of dc.title is "por" (ISO 639-2 for portuguese)

Image

Image

When lang of dc.title is "pt_BR"

Image

Image

When lang of dc.title is "pt"

Image

Image

When lang of dc.title is "en" (works as expected)

Image

Image

Metadata

Metadata

Assignees

Labels

bugcomponent: Discoveryrelated to discovery search or browse systemtestathonReported by a tester during Community Testathon

Type

Projects

Status

✅ Done

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions