From 30f166578767a7ed4eb5737b27f372c85f33f68d 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 | 27 ++++++++++++++++++++++ koha-tmpl/opac-tmpl/bootstrap/js/componentPart.js | 9 ++++++++ 4 files changed, 47 insertions(+) create mode 100644 koha-tmpl/opac-tmpl/bootstrap/js/componentPart.js 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 6afb240..3a73b38 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-detail.tt +++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-detail.tt @@ -1667,6 +1667,10 @@ //]]> +[% IF ( Koha.Preference( 'AddComponentPartRecordsToDetailedViews' ) == 1 ) %] + +[% END %] + [% IF OPACPopupAuthorsSearch %]