Go back to old spine label call number prefix wrapping behavior of user/stompro/web_client_spine_label_prefix_wrap_fix
authorJosh Stompro <stompro@stompro.org>
Tue, 16 Mar 2021 17:07:58 +0000 (12:07 -0500)
committerJosh Stompro <stompro@stompro.org>
Tue, 16 Mar 2021 17:07:58 +0000 (12:07 -0500)
wrapping at word breaks instead of splitting words apart.  For
the web client spine label printing.

Signed-off-by: Josh Stompro <stompro@stompro.org>
Open-ILS/web/js/ui/default/staff/cat/printlabels/app.js

index 2553689..155c456 100644 (file)
@@ -751,6 +751,9 @@ function ($scope, $q, $window, $routeParams, $location, $timeout, egCore, egNet,
         }
 
         if (prefix) {
+            /* replace spaces in prefix with tabs to fake it out */
+            prefix = prefix.replace(/\s+/g,'\t');
+
             callnum = prefix + '\t' + callnum;
         }
         if (suffix) {
@@ -933,4 +936,4 @@ function getPrintLabelOutputClass(index, settings) {
 
 function getPrintLabelStyle(index, settings) {
     return index > 0 && (index % settings.page.label.set.size === 0) ? settings.page.label.gap.size : "";
-}
\ No newline at end of file
+}