]> git.koha-community.org Git - koha.git/commit
Bug 29311: Forbid editing biblio info when creating suggestion for biblio
authorjeremy breuillard <jeremy.breuillard@biblibre.com>
Mon, 21 Mar 2022 14:29:57 +0000 (15:29 +0100)
committerJacob O'Mara <jacobomara901@gmail.com>
Sun, 16 Apr 2023 17:46:18 +0000 (18:46 +0100)
commitca33ff04d66cf26b4030504f632dbce74841250e
tree5e35582669147ef93aaa62df9ed6e557fedc50da
parent78a36c5114037163688db636704e9e0153a9b27f
Bug 29311: Forbid editing biblio info when creating suggestion for biblio

When creating a suggestion for an existing biblio, biblio info like
title or author should not be editable.

Test plan:
1. Enable system preference 'suggestion'
2. Log in at OPAC
3. Go to a biblio record detail page
4. Click 'suggest for purchase'
5. Notice that all fields can be modified (title, author, ...)
6. Apply patch
7. Repeat steps 2 and 3 or refresh the page
8. Verify that the biblio fields cannot be modified now. The only fields
   that should be editable are: quantity, item type, library, reason for
   suggestion, and notes

Signed-off-by: Séverine QUEUNE <severine.queune@bulac.fr>
Signed-off-by: Laura Escamilla <laura.escamilla@bywatersolutions.com>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
(cherry picked from commit d96393a52ab047939c97b5b5b496f2ed85f58893)
Signed-off-by: Jacob O'Mara <jacobomara901@gmail.com>
koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-suggestions.tt
opac/opac-suggestions.pl