From: Dan Wells Date: Mon, 25 Mar 2013 21:39:19 +0000 (-0400) Subject: Undo holding lib to SRE linkage (alt dist editor) X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=f5a9d766097b939cc64b3338d5153fb47503be4b;p=evergreen%2Fpines.git 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 --- 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",