+[% USE CGI; -%]
[% WRAPPER base.tt2 %]
[% ctx.page_title = l("Items") %]
[% BLOCK status_values %]
font-weight: bold;
}
</style>
+[% IF CGI.param('context') == 'scv' -%]
+<!-- links in the frame have no style at all, let's give them one -->
+<style type="text/css">
+ a { color: #1155CC; text-decoration: underline }
+ a:hover { text-decoration: none }
+</style>
+[%- END %]
<div dojoType="dijit.layout.ContentPane" layoutAlign="client">
<div dojoType="dijit.layout.ContentPane"
layoutAlign="top" class="oils-header-panel">
+[% USE CGI; -%]
[% WRAPPER base.tt2 %]
[% ctx.page_title = l("Streams") %]
<style type="text/css">
#new-srlu-table td { text-align: center; padding-right: 1em; }
#list-source { border: 1px #666 dashed; }
</style>
+[% IF CGI.param('context') == 'scv' -%]
+<!-- links in the frame have no style at all, let's give them one -->
+<style type="text/css">
+ a { color: #1155CC; text-decoration: underline }
+ a:hover { text-decoration: none }
+</style>
+[%- END %]
<div dojoType="dijit.layout.ContentPane" layoutAlign="client">
<div dojoType="dijit.layout.ContentPane"
layoutAlign="top" class="oils-header-panel">
[%- END %]
[%- IF CGI.param('id') != 'new' %]
sub_id = [% CGI.param('id') %];
+ [%- ELSE %]
+ sub_id = -1;
[%- END %]
var cap_editor;
var cap_importer;
</script>
<script src="[% ctx.media_prefix %]/js/ui/default/serial/subscription/issuance.js">
</script>
+[% IF CGI.param('context') == 'scv' -%]
+<!-- links in the frame have no style at all, let's give them one -->
+<style type="text/css">
+ a { color: #1155CC; text-decoration: underline }
+ a:hover { text-decoration: none }
+</style>
+[%- END %]
<div dojoType="dijit.layout.ContentPane" layout="top" class="oils-header-panel">
<div>[% l('Subscription Details') %]</div>
"disabled": true, "value": sub_id
});
- [%- IF CGI.param('context') == 'scv' -%]
+ [%- 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 -%]
+ [%- END %]
var _display_grouping_store = new dojo.data.ItemFileReadStore({
"data": {
"identifier": "display_grouping",
ssub_grid.onPostCreate = function(fmObject) {
sub_id = fmObject.id();
+ parent.document.getElementById(window.name).refresh_command(fmObject);
}
ssub_grid.showCreateDialog();
}
+ ssub_grid.onPostUpdate = function(fmObject) {
+ parent.document.getElementById(window.name).refresh_command();
+ }
if (cgi.param("tab") in tab_dispatch) {
+ ssub_grid._fresh = false; // force View/Edit tab to reload (otherwise, it is blank) XXX why?
tab_container.selectChild(tab_dispatch[cgi.param("tab")]);
}
+ parent.document.getElementById(window.name).style.visibility = 'visible'; // unhide the editor pane (iframe)
}
}
);
iframe.setAttribute("src", src);
} else if (type == "ssub") {
var iframe = dojo.byId('alt_ssub_editor');
+ iframe.setAttribute("src", "about:blank"); // clear in case reloading same page (XXX we might want to do this for add only)
+ iframe.style.visibility = "hidden"; // hide the editor while it loads (it will unhide itself when loaded)
var src;
if (mode == "add") {
src = '/eg/serial/subscription?id=new&owning_lib='+params.owning_lib+'&record_entry='+params.record_entry+'&context=scv';
- iframe.refresh_command = function () {obj.refresh_list();};
+ iframe.refresh_command = function (ssub) {
+ obj.map_ssub[ 'ssub_' + ssub.id() ] = ssub;
+ obj.append_ssub( obj.data.hash.aou[ssub.owning_lib()], ssub );
+ };
} else {
src = '/eg/serial/subscription?id=' + params.ssub_ids[0] + '&context=scv';
iframe.refresh_command = function () {}; //TODO: redraw tree node