From 1aea8978de21c8daf792fc4e426bf61e4f4a2d0d Mon Sep 17 00:00:00 2001 From: Liz Rea Date: Wed, 5 Aug 2015 03:36:10 +0000 Subject: [PATCH] Bug 14667 - UI/UX improvements for the Label creator Note: It would be good to adopt these same changes in the Patron Card creator for consistency and push them in conjunction with these changes. -Chris_n Reasoning Librarians will be doing label things in the following frequencies, from most frequent to least frequent: 1. Creating new label batches - every day/every few days 2. Managing existing label batches - every day/every few days 3. Managing existing label layouts - as needed, infrequent 5. Managing existing label templates - as needed, infrequent 6. Creating new label layouts - as needed, infrequent 7. Creating new label templates - as needed, infrequent 8. Managing existing printer profiles - possibly once only! 9. Creating new printer profiles - possibly once only! This change to the label creator aims to make the most frequently used items easily accessible at the top of the main area, reduces clutter on the page, and makes the label creator fall in line with UI paradigms found elsewhere in Koha. To test: Open the label creator: More -> Tools -> Label creator Note that the toolbar has changed. It should be consistent across all of the label creator (it is an include). + New menu: Label batch 1. make sure it looks ok - toolbar buttons are consistent at the top of the main block. 2. add items both by barcode, and by search (note this patch does not touch the pop up window. Another day.) 3. note that the usual buttons have moved below the textarea, and now have icons. 4. delete and export single items using the buttons corresponding to each item 5. select multiple and use the buttons above the table to remove and export selected items 6. export a full batch 7. deduplicate a batch There should be no regressions in functionality. Layout 1. This menu item should take you directly to the "Edit layout" screen. 2. no functional changes here. 3. note toolbar at top is consistent Label template 1. this menu item should take you directly to the "Edit label template" page. 2. no functional changes here. 3. note toolbar at top is consistent. Printer profile 1. this menu item should take you directly to the "Edit printer profile" page. 2. no functional changes here. 3. note toolbar at top is consistent. + Manage menu: Label batches 1. This menu item should take you directly to the "currently available batches" page. 2. select a batch to edit using the buttons 3. select a batch to delete using the buttons - it should ask for confirm. 4. select several batches using the tickboxes, and select Export selected. Batches should be exported as normal. 5. note toolbar at top is consistent. Layouts 1. This menu item should take you directly to the "currently available layouts" page. 2. select a layout to edit using the buttons 3. select a layout to delete using the buttons 4. note toolbar at top is consistent. Label templates 1. This menu item should take you directly to the "currently available templates" page. 2. select a template to edit using the buttons 3. select a template to delete using the buttons 4. note toolbar at top is consistent. Printer profiles 1. This menu item should take you directly to the "currently available profiles" page. 2. select a profile to edit using the buttons 3. select a profile to delete using the buttons 4. note toolbar at top is consistent + General * note that sidebar now only has "labels home" instead of the full "manage" list. It seemed redundant with the toolbar tidied up. Please note that I am happy to take suggestions/amendments to these changes. Signed-off-by: Chris Nighswonger Signed-off-by: Jonathan Druart --- .../intranet-tmpl/prog/en/includes/labels-menu.inc | 4 --- .../prog/en/includes/labels-toolbar.inc | 27 ++++++++-------- .../prog/en/modules/labels/label-edit-batch.tt | 36 +++++++--------------- .../prog/en/modules/labels/label-edit-layout.tt | 6 ++++ .../prog/en/modules/labels/label-edit-profile.tt | 5 ++- .../prog/en/modules/labels/label-edit-template.tt | 6 ++++ .../prog/en/modules/labels/label-home.tt | 23 +------------- .../prog/en/modules/labels/label-manage.tt | 33 ++------------------ labels/label-edit-batch.pl | 1 + labels/label-manage.pl | 18 ++++++----- 10 files changed, 58 insertions(+), 101 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/labels-menu.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/labels-menu.inc index db78310..98538ed 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/includes/labels-menu.inc +++ b/koha-tmpl/intranet-tmpl/prog/en/includes/labels-menu.inc @@ -1,8 +1,4 @@ diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/labels-toolbar.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/labels-toolbar.inc index 06850f9..76fb660 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/includes/labels-toolbar.inc +++ b/koha-tmpl/intranet-tmpl/prog/en/includes/labels-toolbar.inc @@ -1,17 +1,20 @@ \ No newline at end of file + diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/labels/label-edit-batch.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/labels/label-edit-batch.tt index 6832d56..642adc8 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/labels/label-edit-batch.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/labels/label-edit-batch.tt @@ -19,16 +19,6 @@ return true; // ok }; } - function DeleteConfirm() { - var msg = "Are you sure you want to delete batch [% batch_id %]?" - var answer = confirm(msg); - if (answer) { - window.location = "/cgi-bin/koha/labels/label-manage.pl?op=delete&label_element=batch&element_id=[% batch_id %]"; - } - else { - return; // abort delete - } - }; function Remove() { items = new Array; item_num = new Array; @@ -47,10 +37,6 @@ item_msg = item_num.join(", "); var msg = "Are you sure you want to remove label number(s): " + item_msg + " from this batch?" } -// else if (document.items.action.checked) { -// getstr = "label_id="+document.items.action.value; -// var msg = "Are you sure you want to remove selected item from this batch?" -// } else { alert(_("Please select at least label to delete.")); return; // no item selected @@ -174,15 +160,7 @@
- - + [% INCLUDE 'labels-toolbar.inc' %] [% IF ( err ) %]
WARNING: An error was encountered and [% errstr %] Please have your system administrator check the error log for details. @@ -210,7 +188,14 @@
- [% IF ( table_loop ) %] + + [% IF ( table_loop ) %]

Items in batch number [% batch_id %]

@@ -241,7 +226,8 @@ [% FOREACH text_field IN table_loo.text_fields %] [% IF ( text_field.select_field ) %] - + + [% ELSE %]
Delete Export
[% IF ( text_field.field_name == '_item_type_tbl' ) %] diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/labels/label-edit-layout.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/labels/label-edit-layout.tt index 20acaaa..2e3b05e 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/labels/label-edit-layout.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/labels/label-edit-layout.tt @@ -49,6 +49,12 @@
+
+ [% INCLUDE 'labels-toolbar.inc' %] +
+ +
+
[% IF ( layout_id ) %]Edit[% ELSE %]Create[% END %] Label layout diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/labels/label-edit-profile.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/labels/label-edit-profile.tt index 815fe61..7cac6c5 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/labels/label-edit-profile.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/labels/label-edit-profile.tt @@ -50,7 +50,10 @@
-
+
+ [% INCLUDE 'labels-toolbar.inc' %] +
+

Edit printer profile

diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/labels/label-edit-template.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/labels/label-edit-template.tt index 7a316b0..5f3108f 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/labels/label-edit-template.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/labels/label-edit-template.tt @@ -50,6 +50,12 @@
+
+ [% INCLUDE 'labels-toolbar.inc' %] +
+ +
+

Edit label template

diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/labels/label-home.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/labels/label-home.tt index 4889b1c..e537205 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/labels/label-home.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/labels/label-home.tt @@ -21,28 +21,7 @@
[% INCLUDE 'labels-toolbar.inc' %]
-
-
-
-
-

Welcome to Koha's label creator module

-

The Label Creator allow you to use layouts and templates which you design to print a nearly unlimited variety of labels including barcodes. Here are some of the features of the Label Creator module:

-
    -
  • Customize label layouts
  • -
  • Design custom label templates for printed labels
  • -
  • Build and manage batches of labels
  • -
  • Export single or multiple batches
  • -
  • Export single or multiple labels from within a batch
  • -
  • Export label data in one of three formats:
  • -
      -
    • PDF - Readable by any standard PDF reader, making labels printable directly on a printer
    • -
    • CSV - Export label data after your chosen layout is applied allowing labels to be imported in to a variety of applications
    • -
    • XML - Included as an alternate export format
    • -
    -
-

At the top of each screen within the Label Creator, you will see a toolbar allowing quick access to relevant functions. The menu to the left of each screen also allows easy access to the different sections of the Label Creator. The breadcrumb trail near the top of each screen will give specific indication as to where you are within the Label Creator module and allow quick navigation to previously traversed sections. And finally, you can find more detailed information on each section of the Label Creator by clicking the online help link at the upper left-hand corner of every page.

-

The developers of the Label Creator module hope you will find this an extremely useful tool in the course of your cataloging work. You are encouraged to submit any enhancement requests as well as any bugs via Koha Project Bugzilla.

-
+
diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/labels/label-manage.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/labels/label-manage.tt index 205990a..1e435a6 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/labels/label-manage.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/labels/label-manage.tt @@ -4,31 +4,6 @@ [% INCLUDE 'greybox.inc' %]