Hi. We found that in some situations when we click on a link instead of the correct record appearing, another record appears. After some analysis I found that for this record the biblioitemnumber is different from the biblionumber. When the link is built instead of placing the biblionumber, the biblioitemnumber is placed generating the error. How can I put the biblionumber in the construction of the link to the record detail?
Can you describe exactly how to reproduce this bug? Which link isn't working correctly? What version of Koha are you using?
For example the link https://estc.biblio.ipl.pt/cgi-bin/koha/opac-detail.pl?biblionumber=101587&query_desc=au%2Cwrdl%3A%20Isabela%20Figueiredo is not working correctly because it is pointing to record 101587 when it should be pointing to 101594. The record has biblionumber = 101594 and biblioitemnumber = 101587. We using koha version 16.11.14.000.
Unfortunately 16.11.x is very old and unsupported. Your best option is to upgrade so that you know you're not dealing with a bug that has already been fixed.
It's not easy to check if this has since been fixed, as there is not much information about the broken links. I couldn't find any references to biblioitemnumber in neither opac-detail.pl or opac-detail.tt