[Koha-bugs] [Bug 24108] Configure if biblionumber or control number is used for saved files from detail page or advanced cataloguing editor

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Tue Feb 16 12:18:11 CET 2021


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24108

Jonathan Druart <jonathan.druart at bugs.koha-community.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 Attachment #116898|0                           |1
        is obsolete|                            |
 Attachment #116899|0                           |1
        is obsolete|                            |
 Attachment #116900|0                           |1
        is obsolete|                            |
 Attachment #116901|0                           |1
        is obsolete|                            |
 Attachment #116902|0                           |1
        is obsolete|                            |
 Attachment #116903|0                           |1
        is obsolete|                            |

--- Comment #37 from Jonathan Druart <jonathan.druart at bugs.koha-community.org> ---
Created attachment 116912
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=116912&action=edit
Bug 24108: Advanced editor: configure if biblionumber or control number is used
for saved files

Creates a new system preference "SaveRecordbyControlNumber" (renamed in
follow-up patch with "DefaultSaveRecordFileID") which is
initially set to 0 (off/no). By default saving .mrc (and .xml) will be
saved by the biblionumber. If the record does not yet have a biblionumber,
the record will be saved as record.mrc or record.xml

Test plan:
1)  Apply the patch, flush_memcached and restart_all
2)  Enable the "EnableAdvancedCatalogingEditor" system preference
4)  Save the record using the drop down box selecting "Save as MARC (.mrc)
    file.
5)  Note that the file saved is the same as the biblionumber at the top of
    the Advanced Editor interface.
6)  Repeat steps 3-5 for the .xml save option
7)  Update the new system preference "SaveRecordbyControlNumber" and
    change to "Save by ControlNumber"
8)  Verify that there is not a 001 field in the record (delete it if
     there is)
9)  Repeat steps 3-5 for both .mrc and .xml options (the file should still
    be saved as the biblionumber if there is no control field)
10) Add a 001 field to the record such as "001  abc00012345"
11) Repeat step 4 for both .mrc and .xml and verify that the files
    saved are named abc00012345.mrc and abc00012345.xml
12) Sign off!

Signed-off-by: David Nind <david at davidnind.com>

Signed-off-by: David Nind <david at davidnind.com>

Signed-off-by: Katrin Fischer <katrin.fischer.83 at web.de>

JD amended patch:
* Remove change to obsolete sysprefs.sql
* Fix author's patch
* Update commit message to tell the syspref has been renamed

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list