Bug 19915: Only show class sources in use
authorNick Clemens <nick@bywatersolutions.com>
Fri, 15 Jun 2018 04:10:39 +0000 (04:10 +0000)
committerNick Clemens <nick@bywatersolutions.com>
Mon, 4 Feb 2019 14:42:10 +0000 (14:42 +0000)
Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>

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

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>

tools/inventory.pl

index c2a105c..eff4fe2 100755 (executable)
@@ -118,7 +118,7 @@ for my $authvfield (@$statuses) {
     }
 }
 
-my @class_sources = Koha::ClassSources->search();
+my @class_sources = Koha::ClassSources->search({ used => 1 });
 my $pref_class = C4::Context->preference("DefaultClassificationSource");