@@ -, +, @@ - Move JavaScript out of template check for IntranetUserJS so that SpineLabelAutoPrint behavior works correctly. - Add "close" button to pop-up window for cases when the barcode was not found. - Added "required" attribute to barcode input on quick spine label printing page so that submitting an empty form will not work. - Tweaked CSS slightly to fix alignment of spine label form and submit button. (You must rebuild the staff client CSS: https://wiki.koha-community.org/wiki/Working_with_SCSS_in_the_OPAC_and_staff_client) --- .../intranet-tmpl/prog/css/src/staff-global.scss | 4 ++ .../prog/en/modules/labels/spinelabel-home.tt | 2 +- .../prog/en/modules/labels/spinelabel-print.tt | 43 ++++++++++++---------- 3 files changed, 29 insertions(+), 20 deletions(-) --- a/koha-tmpl/intranet-tmpl/prog/css/src/staff-global.scss +++ a/koha-tmpl/intranet-tmpl/prog/css/src/staff-global.scss @@ -706,6 +706,10 @@ fieldset { text-align: left; } } + + .action { + margin-left: 1em; + } } &.rows { --- a/koha-tmpl/intranet-tmpl/prog/en/modules/labels/spinelabel-home.tt +++ a/koha-tmpl/intranet-tmpl/prog/en/modules/labels/spinelabel-home.tt @@ -21,7 +21,7 @@
  1. - +
--- a/koha-tmpl/intranet-tmpl/prog/en/modules/labels/spinelabel-print.tt +++ a/koha-tmpl/intranet-tmpl/prog/en/modules/labels/spinelabel-print.tt @@ -15,34 +15,39 @@ [% IF ( BarcodeNotFound ) %] -

The barcode [% Barcode | html %] was not found.

-

Return to spine label printer

+
The barcode [% Barcode | html %] was not found.
+ [% ELSE %]
[% content | $raw %]
[% END %] -[% IF ( IntranetUserJS ) %] - [% Asset.js( "lib/jquery/jquery-2.2.3.min.js" ) | $raw %] - [% Asset.js( "lib/jquery/jquery-migrate-1.3.0.min.js" ) | $raw %] - [% IF ( autoprint ) %] - [% INCLUDE 'slip-print.inc' #printThenClose %] - [% END %] - +[% Asset.js( "lib/jquery/jquery-2.2.3.min.js" ) | $raw %] +[% Asset.js( "lib/jquery/jquery-migrate-1.3.0.min.js" ) | $raw %] +[% IF ( autoprint ) %] + [% INCLUDE 'slip-print.inc' #printThenClose %] [% END %] + [% INCLUDE 'popup-bottom.inc' %] --