}
if (o.getAttribute('service') == 'native-evergreen-catalog') {
$('mark_overlay_btn').disabled = false;
+ $('show_in_catalog_btn').disabled = false;
obj.controller.view.mark_overlay.setAttribute('doc_id',o.getAttribute('doc_id'));
} else {
$('mark_overlay_btn').disabled = true;
+ $('show_in_catalog_btn').disabled = true;
}
return o.getAttribute('retrieve_id');
}
}
}
],
+ 'show_in_catalog' : [
+ ['command'],
+ function() {
+ try {
+ var doc_id = obj.controller.view.mark_overlay.getAttribute('doc_id');
+ if (doc_id) {
+ var opac_url = xulG.url_prefix( urls.opac_rdetail ) + doc_id;
+ var content_params = {
+ 'session' : ses(),
+ 'authtime' : ses('authtime'),
+ 'opac_url' : opac_url,
+ };
+ xulG.new_tab(
+ xulG.url_prefix(urls.XUL_OPAC_WRAPPER),
+ {'tab_name': $("catStrings").getString('staff.cat.z3950.replace_tab_with_opac.tab_name')},
+ content_params
+ );
+ }
+ } catch(E) {
+ alert('Error in z3950.js, show_in_catalog: ' + E);
+ }
+ }
+ ],
'marc_import' : [
['command'],
function() {
<command id="cmd_z3950_csv_to_file" disabled="true" />
<command id="save_columns" />
<command id="mark_overlay" />
+ <command id="show_in_catalog" />
<command id="toggle_form" />
<command id="marc_view" />
</commandset>
disabled="true"
label="&staff.cat.z3950.mark_overlay.label;"
accesskey="&staff.cat.z3950.mark_overlay.accesskey;"/>
+ <button id="show_in_catalog_btn"
+ command="show_in_catalog"
+ disabled="true"
+ label="&staff.server.admin.transit.list.show.label;"
+ accesskey="&staff.server.admin.transit.list.show.accesskey;"/>
<spacer flex="1"/>
<button id="marc_view_btn" command="marc_view" disabled="true"/>
<checkbox id="marc_editor" label="&staff.cat.z3950.marc_editor.label;" accesskey="&staff.cat.z3950.marc_editor.accesskey;" oils_persist="checked" checked="true"/>