[open-ils-commits] [GIT] Evergreen ILS branch master updated. 48ab6c5f669c2e6862446fe6a6694b2b822b60a4
Evergreen Git
git at git.evergreen-ils.org
Fri Sep 16 14:05:39 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 48ab6c5f669c2e6862446fe6a6694b2b822b60a4 (commit)
from f32605e5ad6cf8ece852af911e41260af5a3b59a (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 48ab6c5f669c2e6862446fe6a6694b2b822b60a4
Author: Bill Erickson <berick at esilibrary.com>
Date: Fri Sep 16 14:00:32 2011 -0400
TPac: display table of contents on record details
Signed-off-by: Bill Erickson <berick at esilibrary.com>
Signed-off-by: Mike Rylander <mrylander at gmail.com>
diff --git a/Open-ILS/src/templates/opac/parts/misc_util.tt2 b/Open-ILS/src/templates/opac/parts/misc_util.tt2
index 713a0be..38944f6 100644
--- a/Open-ILS/src/templates/opac/parts/misc_util.tt2
+++ b/Open-ILS/src/templates/opac/parts/misc_util.tt2
@@ -25,6 +25,8 @@
FOR p IN phys; phys_content.push(p.textContent); END;
args.phys_desc = phys_content.join("");
+ args.contents = xml.findnodes('//*[@tag="505"]').textContent;
+
# MARC Callnumber
args.marc_cn = xml.findnodes('//*[@tag="092" or @tag="099"]/*').textContent;
diff --git a/Open-ILS/src/templates/opac/parts/record/extras.tt2 b/Open-ILS/src/templates/opac/parts/record/extras.tt2
index a61fbee..a9e03ad 100644
--- a/Open-ILS/src/templates/opac/parts/record/extras.tt2
+++ b/Open-ILS/src/templates/opac/parts/record/extras.tt2
@@ -17,7 +17,7 @@
extras = [
{name => 'subjects', label => l('Subject')},
{name => 'summaryplus', label => l('Summaries & More'), hide => hide_summary},
- {name => 'content', label => l('Contents'), hide => 1}, # ToC
+ {name => 'contents', label => l('Contents'), hide => !attrs.contents},
{name => 'authors', label => l('Authors')},
{name => 'series', label => l('Series')},
{name => 'annotation', label => l('Annotation'), hide => 1},
@@ -52,6 +52,8 @@
[% IF tab_is_active(name);
IF name == 'marchtml';
ctx.marchtml;
+ ELSIF name == 'contents';
+ attrs.contents;
ELSE;
# Load the template for the selected extra
INCLUDE "opac/parts/record/${name}.tt2";
-----------------------------------------------------------------------
Summary of changes:
Open-ILS/src/templates/opac/parts/misc_util.tt2 | 2 ++
.../src/templates/opac/parts/record/extras.tt2 | 4 +++-
2 files changed, 5 insertions(+), 1 deletions(-)
hooks/post-receive
--
Evergreen ILS
More information about the open-ils-commits
mailing list