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

            Bug ID: 40798
           Summary: Only show component parts if leader tells us to
 Change sponsored?: ---
           Product: Koha
           Version: Main
          Hardware: All
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P5 - low
         Component: Searching
          Assignee: [email protected]
          Reporter: [email protected]
        QA Contact: [email protected]

Looking at this code from catalogue/detail.pl:

# Get component parts details
my $showcomp = C4::Context->preference('ShowComponentRecords');
my $show_analytics;
if ( $showcomp eq 'both' || $showcomp eq 'staff' ) {
    if ( my $components =
        !$invalid_marc_record ? $biblio->get_marc_components(
C4::Context->preference('MaxComponentRecords') ) : undef )
    {
        $show_analytics = 1 if @{$components};    # just show link when having
results

https://git.koha-community.org/Koha-community/Koha/src/branch/main/catalogue/detail.pl#L243

It looks like we only check if ShowComponentRecords is enabled before we show
component parts. But should we not check the leader to see if this is a record
that should have components in the first place? 

These pages from the wiki seem to indicate that the leader plays a role in
determining this:
https://wiki.koha-community.org/wiki/Serial_Analytics
https://wiki.koha-community.org/wiki/Sets_with_Volumes

I moght be missing something here, please correct me if I'm wrong! :-)

-- 
You are receiving this mail because:
You are watching all bug changes.
You are the assignee for the bug.
_______________________________________________
Koha-bugs mailing list
[email protected]
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to