From 14179913cd578a836a751233772a693f14927eae Mon Sep 17 00:00:00 2001 From: Olli-Antti Kivilahti Date: Tue, 28 Jan 2014 12:29:06 +0200 Subject: [PATCH] Bug 11175 - Show the parent record's component parts in the detailed views. Presentation for bootstrap-theme. This displays the injected component part records in the bootstrap theme. -------------------------------------- TEST PLAN -------------------------------------- PREREQUISITES: -AddChildRecordsToDetailedViews system preference needs to be activated. -opacthemes system preference needs to be 'bootstrap'. -Catalog a bunch of child records for a host record. --Search a record and go to detailed view. --Use the existing functionality "+ New" -> "New Child Record" to catalog child records. ------------------------ TEST CASE1 - OPAC ------------------------ -Reindex Zebra -Search for the record you just made childs for and display it in the opac-detail.pl -view. -Verify that a list of child records are displayed on the right side of the browser window. ------------------------ Thank you! --- koha-tmpl/opac-tmpl/bootstrap/css/opac.css | 7 ++++++ .../opac-tmpl/bootstrap/en/modules/opac-detail.tt | 4 ++++ .../bootstrap/en/xslt/MARC21slim2OPACDetail.xsl | 25 ++++++++++++++++++++++ 3 files changed, 36 insertions(+) diff --git a/koha-tmpl/opac-tmpl/bootstrap/css/opac.css b/koha-tmpl/opac-tmpl/bootstrap/css/opac.css index 99719d5..238bf4f 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/css/opac.css +++ b/koha-tmpl/opac-tmpl/bootstrap/css/opac.css @@ -108,6 +108,13 @@ td { #booleansearch label { display: inline; } + +.componentPartRecordsContainer { + float: right; + overflow-y: auto; + overflow-x: hidden; +} + #basketcount { display: inline; margin: 0; diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-detail.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-detail.tt index 867cb74..ec91188 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-detail.tt +++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-detail.tt @@ -1658,6 +1658,10 @@ //]]> +[% IF ( Koha.Preference( 'AddComponentPartRecordsToDetailedViews' ) == 1 ) %] + +[% END %] + [% IF OPACPopupAuthorsSearch %]