]> 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)
committerLucas Gass <lucas@bywatersolutions.com>
Fri, 5 May 2023 21:49:26 +0000 (21:49 +0000)
commitb7e86347e6194a869c17a136eac1e5045dc3fa8d
tree0d6310b9d7532dedd39014823921732e05f137b9
parentda2c777737c0633352a288f96c258ba7914d29a6
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>
(cherry picked from commit ca33ff04d66cf26b4030504f632dbce74841250e)
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-suggestions.tt
opac/opac-suggestions.pl