[open-ils-commits] [GIT] Evergreen ILS branch rel_2_0 updated. d876fdc5eb0409320c9e9726903499c0584a7be0
Evergreen Git
git at git.evergreen-ils.org
Tue Jul 12 17:37:03 EDT 2011
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Evergreen ILS".
The branch, rel_2_0 has been updated
via d876fdc5eb0409320c9e9726903499c0584a7be0 (commit)
from 3b3904d3026b28feee38a035fc2c18d23658779a (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit d876fdc5eb0409320c9e9726903499c0584a7be0
Author: Jason Etheridge <jason at esilibrary.com>
Date: Tue Jul 12 14:36:37 2011 -0400
alert the user when the OPAC's Quick Search->Item Barcode function returns a pre-cataloged item
Signed-off-by: Jason Etheridge <jason at esilibrary.com>
Signed-off-by: Galen Charlton <gmc at esilibrary.com>
diff --git a/Open-ILS/web/opac/locale/en-US/opac.dtd b/Open-ILS/web/opac/locale/en-US/opac.dtd
index 208d688..c9c668a 100644
--- a/Open-ILS/web/opac/locale/en-US/opac.dtd
+++ b/Open-ILS/web/opac/locale/en-US/opac.dtd
@@ -411,6 +411,7 @@ Please see a librarian to renew your account.">
<!ENTITY sidebar.relevantReviews.headerLabel "Reviews">
<!ENTITY sidebar.quick.search "Quick Search">
<!ENTITY sidebar.copy.not.found "No copy with the requested barcode was found">
+<!ENTITY sidebar.copy.not.cataloged "The copy with the requested barcode is not cataloged">
<!-- =================================================================
Search formats
diff --git a/Open-ILS/web/opac/skin/default/js/advanced.js b/Open-ILS/web/opac/skin/default/js/advanced.js
index 12728c1..e0553ba 100644
--- a/Open-ILS/web/opac/skin/default/js/advanced.js
+++ b/Open-ILS/web/opac/skin/default/js/advanced.js
@@ -162,6 +162,11 @@ function advDrawBarcode(r) {
return;
}
if(!titleid) return;
+ if (titleid == -1) { // pre-cat record
+ alertId('myopac.copy.not.cataloged');
+ return;
+ }
+
var args = {};
args.page = RDETAIL;
args[PARAM_RID] = titleid;
diff --git a/Open-ILS/web/opac/skin/default/xml/common/sidebar.xml b/Open-ILS/web/opac/skin/default/xml/common/sidebar.xml
index 39c0a94..f1f4d36 100644
--- a/Open-ILS/web/opac/skin/default/xml/common/sidebar.xml
+++ b/Open-ILS/web/opac/skin/default/xml/common/sidebar.xml
@@ -100,6 +100,7 @@
</div>
<span class='hide_me' id='myopac.copy.not.found'>&sidebar.copy.not.found;</span>
+ <span class='hide_me' id='myopac.copy.not.cataloged'>&sidebar.copy.not.cataloged;</span>
<div style='margin-top: 8px;' class='adv_quick_search_submit'>
<a id='adv_quick_submit' href='javascript:advGenericSearch();' class='classic_link'>&common.submit;</a>
</div>
-----------------------------------------------------------------------
Summary of changes:
Open-ILS/web/opac/locale/en-US/opac.dtd | 1 +
Open-ILS/web/opac/skin/default/js/advanced.js | 5 +++++
.../web/opac/skin/default/xml/common/sidebar.xml | 1 +
3 files changed, 7 insertions(+), 0 deletions(-)
hooks/post-receive
--
Evergreen ILS
More information about the open-ils-commits
mailing list