[open-ils-commits] r15784 - in trunk/Open-ILS: web/js/ui/default/acq/common web/templates/default/acq/common xul/staff_client/chrome/content/cat xul/staff_client/chrome/content/main xul/staff_client/chrome/content/util (phasefx)
svn at svn.open-ils.org
svn at svn.open-ils.org
Thu Mar 11 04:51:37 EST 2010
Author: phasefx
Date: 2010-03-11 04:51:31 -0500 (Thu, 11 Mar 2010)
New Revision: 15784
Modified:
trunk/Open-ILS/web/js/ui/default/acq/common/li_table.js
trunk/Open-ILS/web/templates/default/acq/common/li_table.tt2
trunk/Open-ILS/xul/staff_client/chrome/content/cat/opac.js
trunk/Open-ILS/xul/staff_client/chrome/content/main/menu.js
trunk/Open-ILS/xul/staff_client/chrome/content/util/browser.js
Log:
Holdings Maintenance link next to Update Barcodes in Acq
Modified: trunk/Open-ILS/web/js/ui/default/acq/common/li_table.js
===================================================================
--- trunk/Open-ILS/web/js/ui/default/acq/common/li_table.js 2010-03-10 22:54:38 UTC (rev 15783)
+++ trunk/Open-ILS/web/js/ui/default/acq/common/li_table.js 2010-03-11 09:51:31 UTC (rev 15784)
@@ -294,6 +294,7 @@
var recv_link = nodeByName("receive_link", row);
var unrecv_link = nodeByName("unreceive_link", row);
var real_copies_link = nodeByName("real_copies_link", row);
+ var holdings_maintenance_link = nodeByName("holdings_maintenance_link", row);
/* handle row coloring for based on LI state */
openils.Util.removeCSSClass(row, /^oils-acq-li-state-/);
@@ -325,6 +326,8 @@
real_copies_link.onclick = function() {
self.showRealCopyEditUI(li);
}
+ openils.Util.show(holdings_maintenance_link);
+ holdings_maintenance_link.onclick = self.generateMakeRecTab( li.eg_bib_id(), 'copy_browser' );
return;
}
}
@@ -600,20 +603,8 @@
if(openils.XUL.isXUL()) {
- var makeRecTab = function() {
- xulG.new_tab(
- XUL_OPAC_WRAPPER,
- {tab_name: localeStrings.XUL_RECORD_DETAIL_PAGE, browser:false},
- {
- no_xulG : false,
- show_nav_buttons : true,
- show_print_button : true,
- opac_url : xulG.url_prefix(xulG.urls.opac_rdetail + '?r=' + li.eg_bib_id())
- }
- );
- }
link.setAttribute('href', 'javascript:void(0);');
- link.onclick = makeRecTab;
+ link.onclick = this.generateMakeRecTab( li.eg_bib_id() );
} else {
var href = link.getAttribute('href');
@@ -625,6 +616,22 @@
}
};
+ this.generateMakeRecTab = function(bib_id,default_view) {
+ return function() {
+ xulG.new_tab(
+ XUL_OPAC_WRAPPER,
+ {tab_name: localeStrings.XUL_RECORD_DETAIL_PAGE, browser:false},
+ {
+ no_xulG : false,
+ show_nav_buttons : true,
+ show_print_button : true,
+ opac_url : xulG.url_prefix(xulG.urls.opac_rdetail + '?r=' + bib_id),
+ default_view : default_view
+ }
+ );
+ }
+ };
+
this.drawMarcHTML = function(li) {
var params = [null, true, li.marc()];
if(li.eg_bib_id())
Modified: trunk/Open-ILS/web/templates/default/acq/common/li_table.tt2
===================================================================
--- trunk/Open-ILS/web/templates/default/acq/common/li_table.tt2 2010-03-10 22:54:38 UTC (rev 15783)
+++ trunk/Open-ILS/web/templates/default/acq/common/li_table.tt2 2010-03-11 09:51:31 UTC (rev 15784)
@@ -92,6 +92,7 @@
</table>
</td>
<td><a class='hidden' name='real_copies_link' href='javascript:void(0);'>Update Barcodes</a></td>
+ <td><a class='hidden' name='holdings_maintenance_link' href='javascript:void(0);'>Holdings Maintenance</a></td>
<td><a name='receive_link' href='javascript:void(0);'>Mark Received</a><a name='unreceive_link' href='javascript:void(0);'>Un-Receive</a></td>
</td>
<td><a name='copieslink' href='javascript:void(0);'>Copies(<span name='count'>0</span>)</a></td>
Modified: trunk/Open-ILS/xul/staff_client/chrome/content/cat/opac.js
===================================================================
--- trunk/Open-ILS/xul/staff_client/chrome/content/cat/opac.js 2010-03-10 22:54:38 UTC (rev 15783)
+++ trunk/Open-ILS/xul/staff_client/chrome/content/cat/opac.js 2010-03-11 09:51:31 UTC (rev 15784)
@@ -25,6 +25,7 @@
try { authtime = g.cgi.param('authtime') || xulG.authtime; } catch(E) { g.error.sdump('D_ERROR',E); }
try { docid = g.cgi.param('docid') || xulG.docid; } catch(E) { g.error.sdump('D_ERROR',E); }
try { opac_url = g.cgi.param('opac_url') || xulG.opac_url; } catch(E) { g.error.sdump('D_ERROR',E); }
+ try { g.view_override = g.cgi.param('default_view') || xulG.default_view; } catch(E) { g.error.sdump('D_ERROR',E); }
JSAN.use('util.deck');
top_pane = new util.deck('top_pane');
Modified: trunk/Open-ILS/xul/staff_client/chrome/content/main/menu.js
===================================================================
--- trunk/Open-ILS/xul/staff_client/chrome/content/main/menu.js 2010-03-10 22:54:38 UTC (rev 15783)
+++ trunk/Open-ILS/xul/staff_client/chrome/content/main/menu.js 2010-03-11 09:51:31 UTC (rev 15784)
@@ -1336,6 +1336,17 @@
params
);
},
+ 'holdings_maintenance_tab' : function(docid,params,content_params) {
+ var obj = this;
+ if (!content_params) {
+ content_params = {};
+ }
+ if (docid) {
+ content_params['docid'] = docid;
+ }
+ var url = obj.url_prefix( urls.XUL_COPY_VOLUME_BROWSE );
+ obj.new_tab(url,params || {}, content_params);
+ },
'set_tab' : function(url,params,content_params) {
var obj = this;
if (!url) url = '/xul/server/';
@@ -1355,6 +1366,7 @@
content_params.new_patron_tab = function(a,b) { return obj.new_patron_tab(a,b); };
content_params.set_patron_tab = function(a,b) { return obj.set_patron_tab(a,b); };
content_params.volume_item_creator = function(a) { return obj.volume_item_creator(a); };
+ content_params.holdings_maintenance_tab = function(a,b,c) { return obj.holdings_maintenance_tab(a,b,c); };
content_params.set_tab_name = function(name) { tab.setAttribute('label',(idx + 1) + ' ' + name); };
content_params.open_chrome_window = function(a,b,c) { return xulG.window.open(a,b,c); };
content_params.url_prefix = function(url) { return obj.url_prefix(url); };
Modified: trunk/Open-ILS/xul/staff_client/chrome/content/util/browser.js
===================================================================
--- trunk/Open-ILS/xul/staff_client/chrome/content/util/browser.js 2010-03-10 22:54:38 UTC (rev 15783)
+++ trunk/Open-ILS/xul/staff_client/chrome/content/util/browser.js 2010-03-11 09:51:31 UTC (rev 15784)
@@ -139,6 +139,7 @@
cw.xulG.new_patron_tab = window.xulG.new_patron_tab;
cw.xulG.set_patron_tab = window.xulG.set_patron_tab;
cw.xulG.volume_item_creator = window.xulG.volume_item_creator;
+ cw.xulG.holdings_maintenance_tab = window.xulG.holdings_maintenance_tab;
cw.xulG.url_prefix = window.xulG.url_prefix;
cw.xulG.urls = window.urls;
try { s += ('******** cw = ' + cw + ' cw.xulG = ' + (cw.xulG) + '\n'); } catch(E) { s+=E + '\n'; }
More information about the open-ils-commits
mailing list