[open-ils-commits] [GIT] Evergreen ILS branch rel_2_9 updated. bd8411c9e141ab3d6bf3cb3ac895b85bc43012b6
Evergreen Git
git at git.evergreen-ils.org
Tue Feb 23 22:58:25 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, rel_2_9 has been updated
via bd8411c9e141ab3d6bf3cb3ac895b85bc43012b6 (commit)
from bea2cddccfc17fcadeadf2c7c893b44aa43bd224 (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 bd8411c9e141ab3d6bf3cb3ac895b85bc43012b6
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