Bug 27507 - Search host record using control number identifier / organization code
Summary: Search host record using control number identifier / organization code
Status: Signed Off
Alias: None
Product: Koha
Classification: Unclassified
Component: Cataloging (show other bugs)
Version: master
Hardware: All All
: P5 - low enhancement (vote)
Assignee: Joonas Kylmälä
QA Contact: Katrin Fischer
URL:
Keywords:
Depends on: 11175
Blocks:
  Show dependency treegraph
 
Reported: 2021-01-21 11:03 UTC by Joonas Kylmälä
Modified: 2021-07-09 11:55 UTC (History)
3 users (show)

See Also:
Change sponsored?: ---
Patch complexity: ---
Text to go in the release notes:
Version(s) released in:


Attachments
Bug 27507: Specify organization code when searching host record (3.74 KB, patch)
2021-01-21 11:12 UTC, Joonas Kylmälä
Details | Diff | Splinter Review
Bug 27507: Specify organization code when searching host record (3.78 KB, patch)
2021-04-20 11:09 UTC, Martin Renvoize
Details | Diff | Splinter Review

Note You need to log in before you can comment on or make changes to this bug.
Description Joonas Kylmälä 2021-01-21 11:03:38 UTC
In /cgi-bin/koha/catalogue/detail.pl currently if you are viewing a record with 773w field the page shows "In: XXXX" with a search link to the host record. Currently when the 773w field format is in the LOC format of (OrgCode)ControlNumber we only search using the ControlNumber part. When importing records to Koha from different databases it is necessary to search also using the organization's code that is in the parentheses – otherwise we get in the results also unrelated records from other organizations.

We need the 003 / Control-number-identifier search addition from bug 11175 to implement this.
Comment 1 Joonas Kylmälä 2021-01-21 11:12:20 UTC
Created attachment 115528 [details] [review]
Bug 27507: Specify organization code when searching host record

This allows now importing records to Koha database from multiple
different organizations and keeps the "In: XXX" links in the
catalogue/detail.pl page unique.

To test:
 1) Add host record with 001 and 003 values of "1234" and "TEST"
 2) Add host record with 001 and 003 values of "1234" and "TEST2"
 2) Add component record with 773w value of (TEST)1234
 3) Notice the link in the component record goes to search page with
    two results
 4) Apply patch
 5) Notice the link in the component record goes directly to the first
    host record created with 001 = 1234 and 003 = TEST
 6) Test also that if you modify the 773w link with just the value of
    "1234" the search will still work and give you two results
Comment 2 Marcel de Rooy 2021-01-21 12:33:33 UTC
Interesting !
Comment 3 Martin Renvoize 2021-04-20 11:09:50 UTC
Created attachment 119904 [details] [review]
Bug 27507: Specify organization code when searching host record

This allows now importing records to Koha database from multiple
different organizations and keeps the "In: XXX" links in the
catalogue/detail.pl page unique.

To test:
 1) Add host record with 001 and 003 values of "1234" and "TEST"
 2) Add host record with 001 and 003 values of "1234" and "TEST2"
 2) Add component record with 773w value of (TEST)1234
 3) Notice the link in the component record goes to search page with
    two results
 4) Apply patch
 5) Notice the link in the component record goes directly to the first
    host record created with 001 = 1234 and 003 = TEST
 6) Test also that if you modify the 773w link with just the value of
    "1234" the search will still work and give you two results

Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Comment 4 Martin Renvoize 2021-04-20 11:12:39 UTC
This works as described and is something I've wanted to do for a while myself since first deep-diving into multi-part bibliographies.

Caveat, I wrote a lot of the details on the wiki around this area of functionality many years ago and most of that detail has since left my brain.. I'm not a cataloguer so can't really comment as to how correct this is vs how much of this goes on in the real world.. how backwards compatible it is.

I'd love to see a more library focused QA person get to grips with that side.. the dev side of me loves this refinement.

Wiki pages: https://wiki.koha-community.org/wiki/Multipart_Bibliographics