From: Josh Stompro Date: Tue, 16 Mar 2021 17:07:58 +0000 (-0500) Subject: Go back to old spine label call number prefix wrapping behavior of X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=refs%2Fheads%2Fuser%2Fstompro%2Fweb_client_spine_label_prefix_wrap_fix;p=working%2FEvergreen.git 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 --- 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 +}