From f5a9d766097b939cc64b3338d5153fb47503be4b Mon Sep 17 00:00:00 2001 From: Dan Wells Date: Mon, 25 Mar 2013 17:39:19 -0400 Subject: [PATCH] Undo holding lib to SRE linkage (alt dist editor) Since the legacy record dropdown piggy-backs on the OPAC display, it doesn't work in the alt interface (which has no clear OPAC context). Worse, this leads to a Javascript error on the first editor load for the distribution list, preventing subsequent editors. A better fix will require more consideration, but for now, let's revert to the unformatted display used in 2.3. Also, this commit removes an unnecessary conditional (it was always true). Signed-off-by: Dan Wells Signed-off-by: Mike Rylander --- Open-ILS/src/templates/serial/subscription.tt2 | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Open-ILS/src/templates/serial/subscription.tt2 b/Open-ILS/src/templates/serial/subscription.tt2 index 5d91795774..5081f3294d 100644 --- a/Open-ILS/src/templates/serial/subscription.tt2 +++ b/Open-ILS/src/templates/serial/subscription.tt2 @@ -90,12 +90,10 @@ [% l('End Date') %] - [%- IF CGI.param('context') != 'scv' -%] [% l('Bibliographic Record') %] - [%- END -%] [% l('Expected Date Offset') %] [% l('Number of Distributions') %] @@ -123,8 +121,11 @@ "disabled": true, "value": sub_id }); + [%- IF CGI.param('context') == 'scv' -%] // attach the holding_lib selector to the record_entry selector dist_grid.overrideWidgetArgs.holding_lib = {'dijitArgs' : {'onChange' : function(value) { populate_sre_selector(dist_grid, value); } }}; + + [%- END -%] var _display_grouping_store = new dojo.data.ItemFileReadStore({ "data": { "identifier": "display_grouping", -- 2.11.0