Bug 35919: Add Koha::Biblio::Metadata->source_allows_editing
authorTomas Cohen Arazi <tomascohen@theke.io>
Thu, 25 Jan 2024 15:29:37 +0000 (12:29 -0300)
committerKatrin Fischer <katrin.fischer@bsz-bw.de>
Fri, 26 Apr 2024 15:06:05 +0000 (17:06 +0200)
commit793dd17e291f601f0e63c2ccdfe3beb022bef700
treec708473fd7a476300118f13ae64755a7c27d954e
parent389debc4cdd6399831bab227be019cedd8765ca2
Bug 35919: Add Koha::Biblio::Metadata->source_allows_editing

This patch adds a convenient method that tells if the record is
editable, according to it's record source.

To test:
1. Apply this patch
2. Run:
   $ ktd
  k$ prove t/db_dependent/Koha/Biblio/Metadata.t
=> SUCCESS: Tests pass! Use cases covered!
3. Sign off :-D

Signed-off-by: Matt Blenkinsop <matt.blenkinsop@ptfs-europe.com>
Bug 31791: Rename can_be_edited -> source_allows_editing

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
Koha/Biblio/Metadata.pm
t/db_dependent/Koha/Biblio/Metadata.t