- document.getElementById('title').setAttribute('value',mods.title());
- document.getElementById('author').setAttribute('value',mods.author());
- var s = '';
- if (mods.edition()) s = mods.edition();
- if (mods.pubdate()) s += ' ' + mods.pubdate();
- document.getElementById('edition').setAttribute('value',s);
- document.getElementById('tcn').setAttribute('value',mods.tcn());
+ if (mods.title()) document.getElementById('title').setAttribute('value',mods.title());
+ if (mods.author()) document.getElementById('author').setAttribute('value',mods.author());
+ if (mods.edition()) document.getElementById('edition').setAttribute('value',mods.edition());
+ if (mods.pubdate()) document.getElementById('pubdate').setAttribute('value',mods.pubdate());
+ if (mods.tcn()) document.getElementById('tcn').setAttribute('value',mods.tcn());
user_request(
'open-ils.cat',
user_request(
'open-ils.cat',
<label style="font-weight: bold;" value="Title:" /><label id="title" />
<label style="font-weight: bold;" value="Author:" /><label id="author" />
<label style="font-weight: bold;" value="Edition:" /> <label id="edition" />
<label style="font-weight: bold;" value="Title:" /><label id="title" />
<label style="font-weight: bold;" value="Author:" /><label id="author" />
<label style="font-weight: bold;" value="Edition:" /> <label id="edition" />
+ <label style="font-weight: bold;" value="Pub Date:" /> <label id="pubdate" />
</hbox>
<hbox flex="1">
<label style="font-weight: bold;" value="TCN:" /> <label id="tcn" />
</hbox>
<hbox flex="1">
<label style="font-weight: bold;" value="TCN:" /> <label id="tcn" />
<command id="cmd_volume_edit" oncommand="volume_edit(false,{ 'tree' : 'browse_list_tree', 'refresh_func' : refresh_browse_list });"/>
<command id="cmd_volume_delete" oncommand="volume_delete(false,{ 'tree' : 'browse_list_tree', 'refresh_func' : refresh_browse_list });"/>
<command id="cmd_copy_add" oncommand="copy_add(false,{ 'tree' : 'browse_list_tree', 'refresh_func' : refresh_browse_list });"/>
<command id="cmd_volume_edit" oncommand="volume_edit(false,{ 'tree' : 'browse_list_tree', 'refresh_func' : refresh_browse_list });"/>
<command id="cmd_volume_delete" oncommand="volume_delete(false,{ 'tree' : 'browse_list_tree', 'refresh_func' : refresh_browse_list });"/>
<command id="cmd_copy_add" oncommand="copy_add(false,{ 'tree' : 'browse_list_tree', 'refresh_func' : refresh_browse_list });"/>
- <command id="cmd_copy_edit" oncommand="spawn_batch_copy_editor(window.app_shell, 'new_tab', 'main_tabbox', { 'tree' : document.getElementById('browse_list_tree') , 'refresh_func' : refresh_browse_list });"/>
+ <!--<command id="cmd_copy_edit" oncommand="spawn_batch_copy_editor(window.app_shell, 'new_tab', 'main_tabbox', { 'tree' : document.getElementById('browse_list_tree') , 'refresh_func' : refresh_browse_list });"/>-->
+ <command id="cmd_copy_edit" oncommand="spawn_batch_copy_editor(window.parent_window.document, 'replace_iframe', 'copy_editor', { 'tree' : document.getElementById('browse_list_tree') , 'refresh_func' : refresh_browse_list }); window.parent_window.document.getElementById('copy_editor').disabled = false;"/>
<command id="cmd_copy_delete" oncommand="copy_delete(false,{ 'tree' : 'browse_list_tree', 'refresh_func' : refresh_browse_list });"/>
<command id="cmd_toggle_my_libs" oncommand="button_toggle_my_libraries(event);"/>
<command id="cmd_toggle_libs" oncommand="button_toggle_libraries(event);"/>
<command id="cmd_copy_delete" oncommand="copy_delete(false,{ 'tree' : 'browse_list_tree', 'refresh_func' : refresh_browse_list });"/>
<command id="cmd_toggle_my_libs" oncommand="button_toggle_my_libraries(event);"/>
<command id="cmd_toggle_libs" oncommand="button_toggle_libraries(event);"/>
}
function my_init_spawn_copy_browser() {
}
function my_init_spawn_copy_browser() {
+ var w = spawn_copy_browser(
document, 'replace_iframe', 'copy_browser', {
'find_this_id' : find_this_id
}
document, 'replace_iframe', 'copy_browser', {
'find_this_id' : find_this_id
}
- ).find_this_id = find_this_id;
+ );
+ w.find_this_id = find_this_id;
+ w.parent_window = window;
}
function my_init_spawn_opac_view() {
}
function my_init_spawn_opac_view() {
<hbox id="brief_view"/>
<tabbox flex="1">
<tabs>
<hbox id="brief_view"/>
<tabbox flex="1">
<tabs>
+ <tab label="OPAC View"/>
<tab label="MARC View"/>
<tab label="MARC Edit"/>
<tab label="Copy Browser"/>
<tab label="MARC View"/>
<tab label="MARC Edit"/>
<tab label="Copy Browser"/>
- <tab label="OPAC View"/>
+ <tab label="Copy Editor" disabled="true"/>
</tabs>
<tabpanels flex="1">
</tabs>
<tabpanels flex="1">
+ <tabpanel id="opac_view"/>
<tabpanel id="marc_view"/>
<tabpanel id="marc_edit"/>
<tabpanel id="copy_browser"/>
<tabpanel id="marc_view"/>
<tabpanel id="marc_edit"/>
<tabpanel id="copy_browser"/>
- <tabpanel id="opac_view"/>
+ <tabpanel id="copy_editor">
+ <description>
+ Select some copies in the Copy Browser tab to edit.
+ </description>
+ </tabpanel>
</tabpanels>
</tabbox>
</vbox>
</tabpanels>
</tabbox>
</vbox>
var sdump_levels = {
'D_NONE' : false,
var sdump_levels = {
'D_NONE' : false,
'D_ERROR' : true,
'D_TRACE' : false,
'D_TRACE_ENTER' : false,
'D_ERROR' : true,
'D_TRACE' : false,
'D_TRACE_ENTER' : false,
'D_PAGED_TREE' : false,
'D_GRID_LIST' : false,
'D_HTML_TABLE' : false,
'D_PAGED_TREE' : false,
'D_GRID_LIST' : false,
'D_HTML_TABLE' : false,
'D_HOLD_CAPTURE' : true,
'D_HOLD_CAPTURE_ITEMS' : false,
'D_HOLD_CAPTURE' : true,
'D_HOLD_CAPTURE_ITEMS' : false,
'D_PATRON_UTILS' : false,
'D_CIRC_UTILS' : false,
'D_PATRON_UTILS' : false,
'D_CIRC_UTILS' : false,
'D_PRINT' : true,
'D_SES' : true,
'D_SES_FUNC' : false,
'D_PRINT' : true,
'D_SES' : true,
'D_SES_FUNC' : false,
- 'D_SES_RESULT' : true,
- 'D_SPAWN' : true,
+ 'D_SES_RESULT' : false,
+ 'D_SPAWN' : false,
'D_STRING' : false,
'D_UTIL' : false,
'D_WIN' : false,
'D_STRING' : false,
'D_UTIL' : false,
'D_WIN' : false,