Bug 19890 - authorised value branches is not visible from dropdown in Admin
Summary: authorised value branches is not visible from dropdown in Admin
Status: CLOSED FIXED
Alias: None
Product: Koha
Classification: Unclassified
Component: Architecture, internals, and plumbing (show other bugs)
Version: Main
Hardware: All All
: P5 - low minor
Assignee: Bugs List
QA Contact: Testopia
URL:
Keywords: Academy
Depends on:
Blocks:
 
Reported: 2017-12-29 02:04 UTC by Hugh Rundle
Modified: 2018-12-03 20:03 UTC (History)
3 users (show)

See Also:
GIT URL:
Initiative type: ---
Sponsorship status: ---
Comma delimited list of Sponsors:
Crowdfunding goal: 0
Patch complexity: ---
Documentation contact:
Documentation submission:
Text to go in the release notes:
Version(s) released in:
Circulation function:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Hugh Rundle 2017-12-29 02:04:42 UTC
branches is an authorised value category in the database, but is not visible in the 'Show category' dropdown list in Administration - Authorised Values.

This is confusing if a librarian tries to create an authorised value category called 'branches' because it will fail, since it already exists. It should appear in the authorised value category dropdown, though perhaps should not be editable from that screen, since branches should be created under Administration - Libraries and groups.

Problem in 16.11, presumably in later versions too but I can't test that.
Comment 1 Jonathan Druart 2018-01-02 17:59:04 UTC
There are 3 authorised value "special categories": branches, itemtypes, cn_source.

They are used to link a MARC subfield to a branchcode, itemtype or classification source. They are not proper authorised values (in the sense of the authorised_values table), but are needed to restrict the input.

We could add them to the category dropdown list and remove the ability to add value to them (display a friendly message instead to explain the situation).
Comment 2 Hugh Rundle 2018-01-03 01:27:39 UTC
Yep that would be perfect. That way it's clear they already exist, and also that authorised_values is not the place to change them. Something like "[category name] is listed here for information only. To change or add values for [category name] use [appropriate place].
Comment 3 Jonathan Druart 2018-01-03 16:23:26 UTC
I have just tried: If you try to create a AV category "branches", there is a warning box with "The authorized value category 'branches', 'itemtypes' and 'cn_source' are used internally by Koha and are not valid."

That seems enough to me.
Comment 4 Aleisha Amohia 2018-01-07 22:53:46 UTC
(In reply to Jonathan Druart from comment #3)
> I have just tried: If you try to create a AV category "branches", there is a
> warning box with "The authorized value category 'branches', 'itemtypes' and
> 'cn_source' are used internally by Koha and are not valid."
> 
> That seems enough to me.

I agree, this seems like the message the bug report asks for. Setting to Resolved.