Disallow bibs from certain sources from having copies added
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Evergreen |
Fix Released
|
Wishlist
|
Unassigned |
Bug Description
We have records from certain bibliographic record sources that we do not want staff manually adding volumes or copies to. In our case, these are sources for electronic records that may be transcendent (i.e. display in the OPAC without copies attached) or have targeted 856 urls and so only display for the libraries that subscribe to the service. In one case, we are expected to add, remove and update these records on a regular basis and staff added volumes and copies can impede that process or lead to angry questions from staff who want to know why their copies were deleted.
So, to implement the above, I have created a code branch that adds a field, can_have_copies, to the config.bib_source table and updates the staff client and OPAC code where appropriate to block the manual addition of volumes to bib records from a source when the can_have_copies field is FALSE. If the can_have_copies field is TRUE, then volumes and copies can be added as normal.
These code modifications do not affect the automatic creation of volumes for bib records with targeted 856 URLS.
You can get the branch from the working repo:
You need only add the remote once, regardless of how many branches you wish to look at.
To add this repo as working:
Read-only (git protocol):
git remote add working git://git.
Read-write (ssh protocol):
git remote add working <email address hidden>
Once you have the remote added you can check out this branch:
git checkout -b config.
Changed in evergreen: | |
assignee: | nobody → Dan Scott (denials) |
Changed in evergreen: | |
milestone: | 2.2.0alpha1 → 2.2.0alpha2 |
milestone: | 2.2.0alpha2 → none |
Changed in evergreen: | |
status: | Fix Committed → Fix Released |
Quick comments as I merged the code to a local branch for review:
1) There is some code duplication that could be reduced; I would like to see something like a commonly defined "can_bib_ source_ have_copies( bib_id) " JS function that just returns true or false.
2) Open-ILS/ src/perlmods/ lib/OpenILS/ Application/ Storage/ CDBI/config. pm should be taught about the new column on config.bib_source