[Koha-bugs] [Bug 29048] New: Authorities search results - related records link

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Fri Sep 17 15:28:45 CEST 2021


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=29048

            Bug ID: 29048
           Summary: Authorities search results - related records link
 Change sponsored?: ---
           Product: Koha
           Version: 21.05
          Hardware: All
                OS: All
            Status: NEW
          Severity: minor
          Priority: P5 - low
         Component: OPAC
          Assignee: oleonard at myacpl.org
          Reporter: vitorfernandes87 at gmail.com
        QA Contact: testopia at bugs.koha-community.org

The related records link in the authorities search results searches for
"an=authid", which returns all records with an started with authid (after
clicking the link). This causes a difference between the number of related
records and the number of records retrieved in the search (using
Elasticsearch).

The link should change from:

q=an=[% resul.authid | uri %]

To:

q=[% resul.authid | uri %]&idx=an,phr

in the following line:

https://github.com/Koha-Community/Koha/blob/master/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-authoritiessearchresultlist.tt#L110

Test plan:

- Create 10 authority with similar values
- Relate some record with authority 1
- Relate some record with authority 10
- Search authorities (authority 1 should have 1 related record)
- Click the related records link
- You should get 2 related records

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list