[Koha-bugs] [Bug 23111] Setting a custom framework as the default for cataloguing is not possible

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Thu Jun 27 03:12:06 CEST 2019


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

--- Comment #5 from Hayley Mapley <hayleymapley at catalyst.net.nz> ---
Created attachment 91039
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=91039&action=edit
Bug 23111: Set custom bibliographic framework as default

This patch adds a new system preference (DefaultBibliographicFramework). Using
this a librarian can select the bibliographic framework code to set the
the bibliographic framework that will be
displayed as default when:

* Importing batch of biblio records
* Editing a biblio record with no mapped biblio framework

Test plan:
1. Apply patch

2. Run ./updatedatabase.pl (in installer/data/mysql) from the Koha shell to
implement db changes

3. Search for the syspref DefaultBibliographicFramework in Administration
module

4. Notice the syspref has the value 'Default'

5. Locate and edit the record of a bibliographic record not mapped to a
framework and notice 'Default' is ticked when you click
on 'Settings'

6. Click 'Save' and confirm the frameworkcode of the bibliorecord is
Default (stored in the database as empty). You can do this by running the SQL:
SELECT frameworkcode FROM biblio WHERE biblionumber=<biblionumber>;

7. Import a batch of biblio records and notice that 'Default' is
displayed as the framework to be used

8. Confirm the frameworkcode of one of the imported biblio records is
default. Do this by running the SQL:
SELECT frameworkcode FROM biblio WHERE biblionumber=<biblionumber of
biblio imported in step 7>;

9. Select a different framework (such as Acquisitions) in the
DefaultBibliographicFramework syspref

10. Repeat step 5 but notice the DefaultBibliographicFramework framework as
shown as the framework

11. Confirm the biblio has the new frameworkcode. You can do this by
running the SQL: SELECT frameworkcode FROM biblio WHERE
biblionumber=<biblionumber>;

12. Repeat step 7 and notice the DefaultBibliographicFramework is shown as
the framework to be used

13. Confirm the biblios imported in step 12 have the correct
frameworkcode by running the following SQL:
SELECT frameworkcode FROM biblio WHERE biblionumber=<biblionumber of
imported biblio in step 12>;

Authored-by: Alex Buckley
Sponsored-by: Brimbank Library, Australia

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


More information about the Koha-bugs mailing list