From: dbs Date: Thu, 12 Aug 2010 04:52:22 +0000 (+0000) Subject: Merge changes from rel_1_6_1 to customizations; delete local lang.dtd(!) X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=ff33c0d9abf420c76351e6ea41631c580db65bd2;p=contrib%2FConifer.git Merge changes from rel_1_6_1 to customizations; delete local lang.dtd(!) git-svn-id: svn://svn.open-ils.org/ILS-Contrib/conifer/branches/rel_1_6_0@957 6d9bc8c9-1ec2-4278-b937-99fde70a366f --- diff --git a/web/opac/locale/en-CA/lang.dtd b/web/opac/locale/en-CA/lang.dtd deleted file mode 100644 index 80f7e8a558..0000000000 --- a/web/opac/locale/en-CA/lang.dtd +++ /dev/null @@ -1,2596 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -YYYY-MM-DD. Times must have the form HH:MM"> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -marked with colour"> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -colour)"> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -To view or print a summary of the changes, click on the 'View Summary' link.
To save the user, click on the 'Save User' button."> - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/web/opac/skin/default/js/copy_details.js b/web/opac/skin/default/js/copy_details.js index ad03478a63..9d3b4070f2 100644 --- a/web/opac/skin/default/js/copy_details.js +++ b/web/opac/skin/default/js/copy_details.js @@ -232,6 +232,30 @@ function cpdDrawCopy(r) { ); } + /* show the book now link */ + l = $n(row, 'copy_reserve_link'); + unHideMe(l); + l.onclick = function() { + // XXX FIXME this duplicates things in cat/util.js + // Also needs i18n + dojo.require("fieldmapper.Fieldmapper"); + var r = fieldmapper.standardRequest( + ["open-ils.booking", + "open-ils.booking.resources.create_from_copies"], + [G.user.session, [copy.id()]] + ); + if (!r) { + alert("No response from server!"); + } else if (r.ilsevent != undefined) { + alert("Error from server:\n" + js2JSON(r)); + } else { + xulG.auth = {"session": {"key": G.user.session}}; + xulG.bresv_interface_opts = {"booking_results": r}; + location.href = "/eg/booking/reservation"; + } + } + + if( copy.age_protect() ) appendClear($n(row, 'age_protect_value'), text(copy.age_protect().name())); @@ -256,12 +280,12 @@ function cpdDrawCopy(r) { if( copy.circulations() ) { circ = copy.circulations()[0]; if( circ ) { - var due_time = dojo.date.stamp.fromISOString(circ.due_date().replace(/(T\d\d:\d\d:\d\d)([+-]\d\d)(\d)/, "$1$2:$3")); - if( showDueTime ) { - $n(row, 'copy_due_date').appendChild(text(dojo.date.locale.format(due_time, {"formatLength": "medium"}))); - } else { - $n(row, 'copy_due_date').appendChild(text(dojo.date.locale.format(due_time, {"selector": "date", "formatLength": "medium"}))); - } + var due_time = dojo.date.stamp.fromISOString(circ.due_date().replace(/(T\d\d:\d\d:\d\d)([+-]\d\d)(\d)/, "$1$2:$3")); + if( showDueTime ) { + $n(row, 'copy_due_date').appendChild(text(dojo.date.locale.format(due_time, {"formatLength": "medium"}))); + } else { + $n(row, 'copy_due_date').appendChild(text(dojo.date.locale.format(due_time, {"selector": "date", "formatLength": "medium"}))); + } } } } diff --git a/web/opac/skin/default/js/myopac.js b/web/opac/skin/default/js/myopac.js index 887bbf66be..3e4ca8a0b0 100644 --- a/web/opac/skin/default/js/myopac.js +++ b/web/opac/skin/default/js/myopac.js @@ -9,6 +9,8 @@ var holdCache = {}; var holdStatusCache = {}; var allowPendingAddr = false; var preventRenewOverdue = false; +var myopacEnableRefWorks = true; +var myopacRefWorksHost = 'http://refworks.scholarsportal.info'; function clearNodes( node, keepArray ) { @@ -1090,7 +1092,7 @@ function myOPACUpdateEmail() { var req = new Request(UPDATE_EMAIL, G.user.session, email ); req.send(true); if(req.result()) { - G.user.usrname(email); + G.user.email(email); hideMe($('myopac_update_email_row')); userShown = false; alertId('myopac_email_success'); @@ -1174,7 +1176,23 @@ function myOPACShowBookbags(force) { link = $n(row, 'myopac_bb_make_unpublished'); link.setAttribute('href', 'javascript:myOPACMakeBBPublished("'+cont.id()+'", true);'); unHideMe(link); - + + var RW = $n(row, 'myopac_bb_exp_refworks'); + if (RW && myopacEnableRefWorks) { + var here = (findOrgUnit(getLocation())).name(); + var org_name = here.replace(" ", "+"); + var cgi = new CGI(); + + RW.setAttribute('href', + myopacRefWorksHost + '/express/expressimport.asp?vendor=' + + org_name + + '&filter=MARC+Format&database=All+MARC+Formats&encoding=65001&url=http%3A%2F%2F' + + cgi.server_name + '/opac/extras/feed/bookbag/marctxt-full/' + + cont.id() + ); + RW.setAttribute('target', 'RefWorksMain'); + unHideMe($n(row, 'myopac_bb_exp_refworks')); + } } else { unHideMe($n(row, 'myopac_bb_published_no')); var link = $n(row, 'myopac_bb_make_published'); diff --git a/web/opac/skin/default/js/rdetail.js b/web/opac/skin/default/js/rdetail.js index c5fb59077b..7f59e6d37f 100644 --- a/web/opac/skin/default/js/rdetail.js +++ b/web/opac/skin/default/js/rdetail.js @@ -919,9 +919,9 @@ function rdetailBuildBrowseInfo(row, cn, local, orgNode, cl) { _debug('setting action clicks for cn ' + cn); var dHref = 'javascript:rdetailVolumeDetails('+ - '{copy_location : "'+cl+'", rowid : "'+row.id+'", cn :"'+cn+'", depth:"'+depth+'", org:"'+orgNode.id()+'", local: '+local+'});'; + '{copy_location : "'+cl.replace(/\"/g, '\\"')+'", rowid : "'+row.id+'", cn :"'+cn.replace(/\"/g, '\\"')+'", depth:"'+depth+'", org:"'+orgNode.id()+'", local: '+local+'});'; - var bHref = 'javascript:rdetailShowCNBrowse("' + cn + '", '+orgNode.id()+', "'+depth+'");'; + var bHref = 'javascript:rdetailShowCNBrowse("' + cn.replace(/\"/g, '\\"') + '", '+orgNode.id()+', "'+depth+'");'; unHideMe( $n(row, 'details') ) $n(row, 'details').setAttribute('href', dHref); diff --git a/web/opac/skin/default/js/result_common.js b/web/opac/skin/default/js/result_common.js index 5d9675f8f6..5553d8bbbf 100644 --- a/web/opac/skin/default/js/result_common.js +++ b/web/opac/skin/default/js/result_common.js @@ -808,7 +808,7 @@ function resultDisplayCopyCounts(rec, pagePosition, copy_counts) { /* here we style opac-invisible records for xul */ if( cts.depth == 0 ) { - if(!cts.transcendant && !cts.unshadow) { + if(cts.transcendant == null && cts.unshadow == 0) { _debug("found an opac-shadowed record: " + rec.doc_id()); var row = cell.parentNode.parentNode.parentNode.parentNode.parentNode; if( cts.count == 0 ) diff --git a/web/opac/skin/lul/xml/common/login.xml b/web/opac/skin/lul/xml/common/login.xml deleted file mode 100644 index 5c7f574c46..0000000000 --- a/web/opac/skin/lul/xml/common/login.xml +++ /dev/null @@ -1,110 +0,0 @@ - -
- - - -
- - - -
- - - - - - - - - - - - - - - - - -
- -
- - - -
&lu.myopac.forgot_password.question; &lu.myopac.forgot_password.url_text;

- - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - -
&login.password;
- &login.first.time; - &common.password_criteria; -
&login.password.current.enter;
&login.password.new.enter;
&login.password.new.reenter;
- -
- - &login.password.nomatch; - &login.password.success; - - - &login.password.strength; - &common.password_criteria; - - - &login.barcode.inactive; - - &login.account.inactive; - - &login.failed; - -
- -