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

(-)a/C4/Items.pm (-5 / +3 lines)
Lines 1531-1536 sub GetHiddenItemnumbers { Link Here
1531
    my @resultitems;
1531
    my @resultitems;
1532
1532
1533
    my $yaml = C4::Context->preference('OpacHiddenItems');
1533
    my $yaml = C4::Context->preference('OpacHiddenItems');
1534
    $yaml = "$yaml\n"; # YAML is anal on ending \n. Surplus does not hurt
1534
    my $hidingrules;
1535
    my $hidingrules;
1535
    eval {
1536
    eval {
1536
    	$hidingrules = YAML::Load($yaml);
1537
    	$hidingrules = YAML::Load($yaml);
Lines 1538-1544 sub GetHiddenItemnumbers { Link Here
1538
    if ($@) {
1539
    if ($@) {
1539
    	warn "Unable to parse OpacHiddenItems syspref : $@";
1540
    	warn "Unable to parse OpacHiddenItems syspref : $@";
1540
    	return ();
1541
    	return ();
1541
    } else {
1542
    }
1542
    my $dbh = C4::Context->dbh;
1543
    my $dbh = C4::Context->dbh;
1543
1544
1544
	# For each item
1545
	# For each item
Lines 1563-1571 sub GetHiddenItemnumbers { Link Here
1563
	    }
1564
	    }
1564
	}
1565
	}
1565
	return @resultitems;
1566
	return @resultitems;
1566
    }
1567
}
1567
1568
 }
1569
1568
1570
=head3 get_item_authorised_values
1569
=head3 get_item_authorised_values
1571
1570
1572
- 

Return to bug 6488