From: Terran McCanna Date: Mon, 5 Jan 2015 15:30:55 +0000 (-0500) Subject: Change to allow KPAC to display more than one format icon (like OPAC). X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=697a2063a99e68a09e28fe56ccfd1937954b7054;p=evergreen%2Fpines.git Change to allow KPAC to display more than one format icon (like OPAC). Fix for KPAC multi-format items Signed-off-by: Terran McCanna Conflicts: Open-ILS/src/templates/kpac/record.tt2 Open-ILS/web/css/skin/default/kpac/style.css --- diff --git a/Open-ILS/src/templates/kpac/homedewey.tt2 b/Open-ILS/src/templates/kpac/homedewey.tt2 index b77a43b9ef..feeffeaeb3 100644 --- a/Open-ILS/src/templates/kpac/homedewey.tt2 +++ b/Open-ILS/src/templates/kpac/homedewey.tt2 @@ -7,7 +7,9 @@

Dewey Decimal Guide

-

Use this chart to learn how the library's books are organized!

+

Use this chart to learn how the library's books are organized on the shelves!

+

Look at the number next to the subject you are interested in below (for example, 560 for Dinosaurs),
+ then find that number on the library's shelves to find those books.

diff --git a/Open-ILS/src/templates/kpac/parts/record_row.tt2 b/Open-ILS/src/templates/kpac/parts/record_row.tt2 index a0d936de0d..bc2cda73c7 100644 --- a/Open-ILS/src/templates/kpac/parts/record_row.tt2 +++ b/Open-ILS/src/templates/kpac/parts/record_row.tt2 @@ -18,6 +18,21 @@ [% l('[_1], [_2]', attrs.publisher, attrs.pubdate) | html %] [% IF attrs.phys_desc %]
[% attrs.phys_desc | html; END %] + + [%- IF attrs.format_label %] + [% FOR format IN attrs.all_formats %] +
+
+ [% format.label | html %]
+ [% format.label | html %] +
+
+ [% END %] +
 
+ [% END %] + [% IF show_actions %] diff --git a/Open-ILS/src/templates/kpac/record.tt2 b/Open-ILS/src/templates/kpac/record.tt2 index 878c806240..a59705ee6e 100644 --- a/Open-ILS/src/templates/kpac/record.tt2 +++ b/Open-ILS/src/templates/kpac/record.tt2 @@ -21,13 +21,7 @@
[% attrs.title | html %]
[% l('by [_1]', attrs.author) | html %]
-
-
-  [% attrs.format_label %]  - -
-
[% attrs.format_label %]
-
+
@@ -55,6 +49,20 @@
 
+ + [%- IF attrs.format_label %] + [% FOR format IN attrs.all_formats %] +
+
+ [% format.label | html %]
+ [% format.label | html %] +
+
+ [% END %] + [% END %] +
diff --git a/Open-ILS/web/css/skin/default/kpac/style.css b/Open-ILS/web/css/skin/default/kpac/style.css index ca1635d1d9..d7104e19f2 100755 --- a/Open-ILS/web/css/skin/default/kpac/style.css +++ b/Open-ILS/web/css/skin/default/kpac/style.css @@ -350,7 +350,7 @@ input[type=text], input[type=password], textarea { } .footer_wrapper a { - color:#fff; + color:#b6fcd5; } .footer_wrapper a:hover { @@ -502,6 +502,8 @@ input[type=text], input[type=password], textarea { height:106px; overflow:hidden; float:left; + padding-left:40px; + margin-top:10px; } .item_icon { @@ -510,22 +512,20 @@ input[type=text], input[type=password], textarea { background:url('/images/kpac/icon_bg.png') no-repeat; text-align:center; overflow:hidden; - line-height:80px; } .item_icon img { - vertical-align:middle; - position:relative; - top:-1px; + width:30px; + height:30px; + margin:10px; + } .item_icon_type_text { width:80px; - height:24px; text-align:center; overflow:hidden; display:table-cell; - vertical-align:middle; line-height:12px; } @@ -554,6 +554,12 @@ input[type=text], input[type=password], textarea { color:#000; } +.item_detail_extra_info { + margin-left:20px; + font-weight:normal; + color:#000; +} + .item_detail_header_buttons { float:right; margin-top:3px; @@ -804,7 +810,8 @@ input[type=text], input[type=password], textarea { } .search_results .item_detail_info .item_detail_actions { - padding-top:28px; + padding-top:0px; + margin-left:20px; } .search_results