[Koha-bugs] [Bug 22969] fix biblionumber on 001 in UNIMARC XSLT

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Thu May 23 19:08:37 CEST 2019


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

Andreas Roussos <arouss1980 at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |arouss1980 at gmail.com

--- Comment #2 from Andreas Roussos <arouss1980 at gmail.com> ---
Hi Fridolin,

(In reply to Fridolin SOMERS from comment #0)
> In UNIMARC default configuration the 001 is linked to biblio.biblionumber.
> In some XSLT files, 090$a is used.
> This is by default biblioitems.biblionumber so it usually works but it may
> not be the same and var biblionumber is used to create hyperlinks to record
> detail page.
I think 090$a is linked to biblioitems.biblioitemnumber in UNIMARC default
configuration for English (see lines 75-76 of
installer/data/mysql/en/marcflavour/unimarc/mandatory/unimarc_framework_DEFAULT.sql).

While trying to sign off your patch I realised that in my test UNIMARC DB
with just four records the values for biblionumber and biblioitemnumber
are the same in the SQL tables that I checked:

MariaDB [koha_test]> SELECT biblionumber FROM biblio ;
+--------------+
| biblionumber |
+--------------+
|            1 |
|            3 |
|            4 |
|            5 |
+--------------+

MariaDB [koha_test]> SELECT biblionumber, biblioitemnumber FROM biblioitems ;
+--------------+------------------+
| biblionumber | biblioitemnumber |
+--------------+------------------+
|            1 |                1 |
|            3 |                3 |
|            4 |                4 |
|            5 |                5 |
+--------------+------------------+

MariaDB [koha_test]> SELECT biblionumber, biblioitemnumber FROM items ;
+--------------+------------------+
| biblionumber | biblioitemnumber |
+--------------+------------------+
|            1 |                1 |
|            3 |                3 |
|            3 |                3 |
|            4 |                4 |
|            4 |                4 |
|            5 |                5 |
+--------------+------------------+

When I set all XSLT system preferences to 'default', the hyperlinks in
the search results work OK (without the patch applied).

So, under what circumstances does this problem occur?
How can I create a record that has biblionumber != biblioitemnumber?

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


More information about the Koha-bugs mailing list