[open-ils-commits] [GIT] Evergreen ILS branch rel_2_1 updated. d23ebf0e00aac60cf95c98d9c57c4931fcbe767d

Evergreen Git git at git.evergreen-ils.org
Tue Jul 12 17:00:50 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_1 has been updated
       via  d23ebf0e00aac60cf95c98d9c57c4931fcbe767d (commit)
      from  5f5d7abb92d2f09f6e2a9ae71911918623215853 (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 d23ebf0e00aac60cf95c98d9c57c4931fcbe767d
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 bdaf91c..6d71f51 100644
--- a/Open-ILS/web/opac/locale/en-US/opac.dtd
+++ b/Open-ILS/web/opac/locale/en-US/opac.dtd
@@ -412,6 +412,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 0e898e4..0df0d37 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(!title_ids) return;
+    if (title_ids[0] == -1) { // pre-cat record
+        alertId('myopac.copy.not.cataloged');
+        return;
+    }
+
     var args = {};
     if (title_ids.length == 1) {
         args.page = RDETAIL;
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