From c0e86916c68d15c4b6c5d3454a7bfb664938a7cb Mon Sep 17 00:00:00 2001 From: phasefx Date: Wed, 31 Aug 2005 16:13:26 +0000 Subject: [PATCH] debugging. spawn copy editor in second tabbed interface git-svn-id: svn://svn.open-ils.org/ILS/trunk@1778 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- .../chrome/content/evergreen/cat/brief.xul | 13 ++++++------- .../evergreen/cat/browse_list_overlay.xul | 3 ++- .../chrome/content/evergreen/cat/details.xul | 16 ++++++++++++---- .../chrome/content/evergreen/util/error.js | 10 +++++----- 4 files changed, 25 insertions(+), 17 deletions(-) diff --git a/Evergreen/staff_client/chrome/content/evergreen/cat/brief.xul b/Evergreen/staff_client/chrome/content/evergreen/cat/brief.xul index 0d289790ef..c545e1f170 100644 --- a/Evergreen/staff_client/chrome/content/evergreen/cat/brief.xul +++ b/Evergreen/staff_client/chrome/content/evergreen/cat/brief.xul @@ -30,13 +30,11 @@ [ find_this_id ] )[0]; - 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', @@ -60,6 +58,7 @@