From f165fe43623f44b939180ec16e0ff36baeec61b7 Mon Sep 17 00:00:00 2001 From: Galen Charlton Date: Thu, 15 Nov 2018 09:59:44 -0500 Subject: [PATCH] LP#1726568: expose circ lib and owning lib fields to spine/pocket labels This patch fleshes the item circulation library and owning library fields so that spine/pocket labels can include the short name or full name of the OU rather than just the ID. As a consequence, the following fields are now available for label templates: * copy['call_number.owning_lib.id'] * copy['call_number.owning_lib.shortname'] * copy['call_number.owning_lib.name'] * copy['circ_lib.id'] * copy['circ_lib.shortname'] * copy['circ_lib.name'] If, for some reason, existing label templates intentionally use copy['call_number.owning_lib'] or copy['circ_lib'] to include the numeric ID of the OU on the label, they will need to be replaced with copy['call_number.owning_lib.id'] or copy['circ_lib.id'] respectively. To test ------- [1] Apply the patch. [2] Open the print labels window for an item and try including one or more of the new fields listed above; verify that the current value is displayed on the label preview. Signed-off-by: Galen Charlton --- Open-ILS/web/js/ui/default/staff/cat/printlabels/app.js | 2 +- 1 file changed, 1 insertion(+), 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..766a4ea939 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 @@ -933,4 +933,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