From 10593eb8bcfe57567796ba72c9d19e0b69ce59d5 Mon Sep 17 00:00:00 2001 From: David Cook Date: Tue, 23 Apr 2013 12:58:19 +1000 Subject: [PATCH] Bug 10097 - Hide framework selection when importing staged authority records Currently, when importing authority records using the "Manage staged MARC records" tool, it will show the text "Add new bibliographic records into this framework:" followed by a drop-down menu of possible frameworks. Since these are bibliographic frameworks and we're importing authority records which do not use them, we have no need to show this information. I'm proposing just a little patch to display this info only for bibliographic records. From my tests, everything seems to work fine without this text and the drop-down, although I've only uploaded one MARC21 authority record at a time. -- Test Plan: Before applying patch... 1) Find yourself an authority record. I recommend downloading your favourite author from: http://authorities.loc.gov/ 2) Stage MARC for import. Choose "Authority" as your record type. 3) Go to "Manage staged records" 4) Underneath the button "Import this batch into the catalog", you should see the text "Add new bibliographic records into this framework:" followed by a drop-down of the available frameworks. Optionally) You can also try this for bibliographic records. You'll find the same. After applying the patch... 5) Repeat steps 2 and 3. 6) Underneath the button "Import this batch into the catalog", you should just see a table listing your MARC record(s). 7) Stage MARC for import. Choose "Bibliographic" as your record type. 8) Go to "Manage staged records". 9) You should find step 4 still to be true (i.e. the "Add new bibliographic..." text should still be there). Signed-off-by: Owen Leonard Signed-off-by: Katrin Fischer Small template change, passes all tests. Signed-off-by: Jared Camins-Esakov (cherry picked from commit 01f7542f4bdbd9b31836ed8c3fc817b67086b8d2) Signed-off-by: Jared Camins-Esakov --- .../intranet-tmpl/prog/en/modules/tools/manage-marc-import.tt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/manage-marc-import.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/manage-marc-import.tt index e0325bb8b3..b81ffea178 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/manage-marc-import.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/manage-marc-import.tt @@ -191,6 +191,7 @@ $(document).ready(function(){

+ [% IF ( record_type != 'auth' ) %] Add new bibliographic records into this framework: + [% END %]
Job progress:
0%
-- 2.39.5