View | Details | Raw Unified | Return to bug 22420
Collapse All | Expand All

(-)a/opac/opac-tags.pl (-6 / +3 lines)
Lines 307-312 if ($add_op) { Link Here
307
	$results = get_approval_rows($arghash);
307
	$results = get_approval_rows($arghash);
308
    my @filtered_results;
308
    my @filtered_results;
309
    foreach my $my_tag (@$my_tags) {
309
    foreach my $my_tag (@$my_tags) {
310
        next if grep {/^$my_tag$/} @filtered_results;
310
        if (grep { $_->{term} eq $my_tag->{term} } @$results) {
311
        if (grep { $_->{term} eq $my_tag->{term} } @$results) {
311
            if (! $my_tag->{visible} ) {
312
            if (! $my_tag->{visible} ) {
312
                my $check_biblio = GetMarcBiblio({
313
                my $check_biblio = GetMarcBiblio({
Lines 314-325 if ($add_op) { Link Here
314
                    embed_items  => 1,
315
                    embed_items  => 1,
315
                    opac         => 1,
316
                    opac         => 1,
316
                    borcat       => $borcat });
317
                    borcat       => $borcat });
317
                if ($check_biblio) {
318
                next unless $check_biblio;
318
                    push @filtered_results, $my_tag;
319
                }
320
            } else {
321
                push @filtered_results, $my_tag;
322
            }
319
            }
320
            push @filtered_results, $my_tag;
323
        }
321
        }
324
    }
322
    }
325
    $results = \@filtered_results;
323
    $results = \@filtered_results;
326
- 

Return to bug 22420