[open-ils-commits] [GIT] Evergreen ILS branch master updated. 4b40e68a8757c3c80a4c0c8ba9d6de60bc1f1af5
Evergreen Git
git at git.evergreen-ils.org
Tue Feb 23 22:58:21 EST 2016
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 4b40e68a8757c3c80a4c0c8ba9d6de60bc1f1af5 (commit)
from 4ae3fa1a24e1e1bbfbd8b1ba77c8cc8e5d5b99a0 (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 4b40e68a8757c3c80a4c0c8ba9d6de60bc1f1af5
Author: blake <blake at mobiusconsortium.org>
Date: Wed Dec 23 14:20:40 2015 -0600
LP#1466990: Detailed search results shows parts for items that dont have parts
The part_label variable needs to be reset between iterations. The variable was still set
and bled from copy to copy. Testing this will require a search with details turned on.
The search result set needs to include a bib that has copies with parts (with at least
one copy invisible) and another bib that has copies without parts.
Signed-off-by: blake <blake at mobiusconsortium.org>
Signed-off-by: Ben Shum <ben at evergreener.net>
diff --git a/Open-ILS/src/templates/opac/parts/misc_util.tt2 b/Open-ILS/src/templates/opac/parts/misc_util.tt2
index c889c55..e995a92 100644
--- a/Open-ILS/src/templates/opac/parts/misc_util.tt2
+++ b/Open-ILS/src/templates/opac/parts/misc_util.tt2
@@ -511,6 +511,7 @@
copies = volume.findnodes('./*[local-name()="copies"]/*[local-name()="copy"]');
FOR copy IN copies;
parts = copy.findnodes('./*[local-name()="monograph_parts"]/*[local-name()="monograph_part"]');
+ part_label = '';
FOREACH part IN parts;
part_label = part.getAttribute('label');
LAST IF part_label != '';
-----------------------------------------------------------------------
Summary of changes:
Open-ILS/src/templates/opac/parts/misc_util.tt2 | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
hooks/post-receive
--
Evergreen ILS
More information about the open-ils-commits
mailing list