From 545da985ead347bb3801ce1a04050c6329279fa8 Mon Sep 17 00:00:00 2001 From: Fridolin Somers Date: Tue, 16 Jun 2015 09:40:41 +0200 Subject: [PATCH] Bug 11325 - Focus not on "Add Item" in Lists When viewing a list, the focus/cursor is no longer on the "add items" field below the list. This patch moves the "Add Item" form at left part of page so that it is always shown (usefull when there are a lot of items). And adds focus to barcode input so you can enter several items with a barcode scanner. Test instructions: 1. Create a list 2. Make sure you have an object with an assigned barcode 3. Go to the list => The barcode entry interface should be at left and has the focus 4. Enter the barcode and press enter (or use a scanner) => The item is added to the list --- .../prog/en/modules/virtualshelves/shelves.tt | 50 ++++++++++++---------- 1 file changed, 28 insertions(+), 22 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/virtualshelves/shelves.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/virtualshelves/shelves.tt index 30bd124..066d7fd 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/virtualshelves/shelves.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/virtualshelves/shelves.tt @@ -302,9 +302,11 @@ function placeHold () { [% IF ( viewshelf ) %]› Contents of [% shelfname | html %][% END %][% IF ( shelves ) %] › Create new list[% END %][% IF ( edit ) %] › Edit list [% shelfname | html %][% END %] -
-
-
+
+
+
+
+
[% INCLUDE 'virtualshelves-toolbar.inc' %]
[% IF ( paramsloop ) %] @@ -483,25 +485,6 @@ function placeHold () {
[% END %] -[% IF ( allowaddingitem ) %] -
-
-
- Add an item to [% shelfname | html %] -
    -
  1. - - - - - -
  2. -
-
-
-
-[% END %] - [% IF ( debug ) %] [% IF ( edit ) %]
Edit is on ([% shelfname | html %])
[% END %] [% IF ( seflag ) %]
seflag is on ([% seflag %])
[% END %] @@ -652,4 +635,27 @@ function placeHold () {
+ +[% IF ( allowaddingitem ) %] +
+
+
+ Add an item +
    +
  1. + + + + +
  2. +
+
+ +
+
+
+
+[% END %] + +
[% INCLUDE 'intranet-bottom.inc' %] -- 2.1.0