]> 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)
committerTomas Cohen Arazi <tomascohen@theke.io>
Thu, 6 Apr 2023 13:03:13 +0000 (10:03 -0300)
commitd96393a52ab047939c97b5b5b496f2ed85f58893
tree21fb02ca4ccaf575cfbfa313881800ee1f909c4a
parentf1ff6c57648ace2b31bca9fb3836d7ac386d2ae6
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>
koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-suggestions.tt
opac/opac-suggestions.pl