[open-ils-commits] [GIT] Evergreen ILS branch master updated. c34228d534daf25f2c670050496334ea092fa0c5
Evergreen Git
git at git.evergreen-ils.org
Tue Jul 12 16:59:12 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, master has been updated
via c34228d534daf25f2c670050496334ea092fa0c5 (commit)
from 86c964aaa5790af1311022d6577fb148a8fb052b (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 c34228d534daf25f2c670050496334ea092fa0c5
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 e60841d..f1ea647 100644
--- a/Open-ILS/web/opac/locale/en-US/opac.dtd
+++ b/Open-ILS/web/opac/locale/en-US/opac.dtd
@@ -413,6 +413,7 @@ Please see a librarian to renew your account.">
<!ENTITY sidebar.quick.search "Quick Search">
<!ENTITY sidebar.authority.browse "Authority Browse">
<!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 08e9b22..cd48919 100644
--- a/Open-ILS/web/opac/skin/default/js/advanced.js
+++ b/Open-ILS/web/opac/skin/default/js/advanced.js
@@ -183,6 +183,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 4bd6c53..f15fc27 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