From 01e975c84a0c236259be1c59dc1c64f5f14344f7 Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Mon, 8 Aug 2011 15:53:53 -0400 Subject: [PATCH 3/3] Additional fixes for Bug 5725 - Batch modifications for Biblios Content-Type: text/plain; charset="utf-8" - Correcting page title - Adding breadcrums - Adding sidebar menu (matching other batch mod pages) - Showing "loading" graphic during AJAX operations - Adding empty option to list of MARC tags so that onchange event will fire when the user is choosing 000 - Other structural markup changes --- .../prog/en/modules/tools/batchedit.tt | 49 +++++++++++++------ koha-tmpl/intranet-tmpl/prog/img/loading-small.gif | Bin 0 -> 1652 bytes 2 files changed, 33 insertions(+), 16 deletions(-) create mode 100644 koha-tmpl/intranet-tmpl/prog/img/loading-small.gif diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/batchedit.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/batchedit.tt index 8e0d80e..31c84d1 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/batchedit.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/batchedit.tt @@ -1,5 +1,5 @@ [% INCLUDE 'doc-head-open.inc' %] -Koha › Tools › Batch Deletion of Items +Koha › Tools › Batch record of modification [% INCLUDE 'doc-head-close.inc' %] [% UNLESS ( modsuccess ) %] @@ -10,10 +10,12 @@ function fieldChanged(){ var field = $('#fieldchoice').val(); + $("#loading").html(" \"\""); $.ajax({ url: CGIBIN + 'tools/batchedit.pl?field=' + field, dataType: 'json', success: function(data){ + $("#loading").html(""); $("#subfieldchoice option").remove(); var subfield = $('#subfieldchoice'); @@ -60,7 +62,7 @@ $("#condvaltd").html(''); $("#repvaltd").html(''); } - $('All').appendTo("#condvaltd"); + $('').appendTo("#condvaltd"); } }); @@ -116,24 +118,40 @@ [% INCLUDE 'header.inc' %] [% INCLUDE 'cat-search.inc' %] + + +
-
+ [% IF ( moddone ) %]
All operations processed
[% END %] [% UNLESS ( bib_list ) %] -

Batch records modification

+

Batch record modification

+
+
Use a file of biblionumbers
+
+
+
+

Reminder: You can also add records to your cart and reach this page from the cart.

+
+
+
Or enter records one by one
    @@ -142,7 +160,7 @@
-

Reminder: you can also add biblios to your cart and reach this page from the cart

+
[% ELSE %]

List of records:

@@ -155,7 +173,7 @@ [% FOREACH biblioinfo IN biblioinfos %] [% biblioinfo.biblionumber %] - [% biblioinfo.title %] + [% biblionumber = biblioinfo.biblionumber %] [% INCLUDE 'biblio-default-view.inc' %][% IF ( biblioinfo.title ) %][% biblioinfo.title |html %][% ELSE %]No title[% END %] [% biblioinfo.author %] [% IF ( moddone ) %] [% IF ( biblioinfo.OK ) %] @@ -180,7 +198,6 @@ [% IF ( bib_list ) %]

Modification rules:

- @@ -192,6 +209,7 @@
+ - All + @@ -223,18 +240,18 @@
- (don't forget to click "Add" button on the right of the previous form before submitting) +
(don't forget to click "Add" button on the right of the previous form before submitting)
[% ELSE %] - - +
[% END %] [% END %]
+
+ [% INCLUDE 'tools-menu.inc' %] +
-
- - +[% INCLUDE 'intranet-bottom.inc' %] diff --git a/koha-tmpl/intranet-tmpl/prog/img/loading-small.gif b/koha-tmpl/intranet-tmpl/prog/img/loading-small.gif new file mode 100644 index 0000000000000000000000000000000000000000..79ea508aa675a47ce0a4a488ed91b7467ab8a4b0 GIT binary patch literal 1652 zcmZ9MYfMvT9LA3nI&Ot>v4dKm<&@rgETz{YTj+%zTBNdCCMX@3*;+tUgffv4Md?Nj zAQe#rLB~x%iNF{N8wTdrC@3f@Dk?56wpy(=o2{&@%xcFmj#EA`D!tfPG>0ud)53)@)`=QM9Bi#Vmk=c@Fe1hoban9;VD8eoNEK) z#FcU>odI)b(^OGHSPDA~meAs^%OU1ZO4&}$IKTtdY}nH5VJKA)RjprB^ZLKYG*_AP z0<2!nsVioY!@cK;ApQJ8{=%aS<^6>A)TSbYh==G;9Xe3KW5&R|aEQfV2!wB zdQQJThMzBmsPxZKjsGL!0auimutj7Spf2H*GZxxFowEA7Y$fa+mX+v}C3dhe9to+~ z3W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