From cc54936228b931e85018ce70fc44eca8b1cd115f Mon Sep 17 00:00:00 2001 From: Josh Stompro Date: Tue, 16 Mar 2021 12:07:58 -0500 Subject: [PATCH] Go back to old spine label call number prefix wrapping behavior of wrapping at word breaks instead of splitting words apart. For the web client spine label printing. Signed-off-by: Josh Stompro --- Open-ILS/web/js/ui/default/staff/cat/printlabels/app.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Open-ILS/web/js/ui/default/staff/cat/printlabels/app.js b/Open-ILS/web/js/ui/default/staff/cat/printlabels/app.js index 255368931f..155c456677 100644 --- a/Open-ILS/web/js/ui/default/staff/cat/printlabels/app.js +++ b/Open-ILS/web/js/ui/default/staff/cat/printlabels/app.js @@ -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 +} -- 2.11.0