[Koha-bugs] [Bug 14393] Add collection code filter to inventory

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Wed Dec 2 23:44:09 CET 2015


http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=14393

--- Comment #15 from David Cook <dcook at prosentient.com.au> ---
Comment on attachment 44772
  --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=44772
Bug 14393 - Add collection code filter to inventory

Review of attachment 44772:
 --> (http://bugs.koha-community.org/bugzilla3/page.cgi?id=splinter.html&bug=14393&attachment=44772)
-----------------------------------------------------------------

::: tools/inventory.pl
@@ +95,5 @@
>        }
>        push @authorised_value_list,@$data;
>      }
> +
> +    my $collection_authorised_value = C4::Koha::GetAuthValCode("items.ccode", $fwkcode);

In practice, it might be enough to get the default one, but in theory you could
use different authorized value categories than "CCODE" for "item.ccode"
depending on the framework of the biblio to which an item is attached.

Originally, I just used the default framework, but then realized that it wasn't
necessarily comprehensive enough. In practice, I don't know if anyone would map
multiple categories to "item.ccode", but it is theoretically possible. You
might only allow certain collections for a certain framework. Framework A might
use "CCODE" which refers to textual collections while Framework B might use
"CCODE2"which refers to audiovisual collections. That would probably be
madness, but it's possible madness.

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list