From 25f19af5dd3f8db2bd776d6f4f102b0d25615cec Mon Sep 17 00:00:00 2001
From: Dan Scott <dscott@laurentian.ca>
Date: Mon, 19 Sep 2011 19:55:08 -0400
Subject: [PATCH] Move the copies up higher

Signed-off-by: Dan Scott <dscott@laurentian.ca>
Signed-off-by: Thomas Berezansky <tsbere@mvlc.org>
---
 .../src/templates/opac/parts/record/summary.tt2    | 80 ++++++++++++----------
 Open-ILS/web/css/skin/default/opac/style.css       |  5 +-
 2 files changed, 46 insertions(+), 39 deletions(-)

diff --git a/Open-ILS/src/templates/opac/parts/record/summary.tt2 b/Open-ILS/src/templates/opac/parts/record/summary.tt2
index 267f0efdf5..a073087e77 100644
--- a/Open-ILS/src/templates/opac/parts/record/summary.tt2
+++ b/Open-ILS/src/templates/opac/parts/record/summary.tt2
@@ -85,43 +85,9 @@
     [% END %]
 </div>
 
-<h2 id='rdetail_record_details'>[% l("Record details") %]</h2>
-<ul>
-    [%- IF attrs.isbns.0; FOR isbn IN attrs.isbns %]
-    <li class='rdetail_isbns'>
-        <strong class='rdetail_label'>[% l('ISBN:'); %]</strong>
-        <span class='rdetail_value'>[% isbn | html  %]</span>
-    </li>
-        [%- END %]
-    [%- END %]
-    [%- IF attrs.issns.0; FOR issn IN attrs.issns %]
-    <li class='rdetail_issns'>
-        <strong class='rdetail_label'>[% l('ISSN:'); %]</strong>
-        <span class='rdetail_value'>[% issn | html  %]</span>
-    </li>
-        [%- END %]
-    [%- END %]
-
-    [%- IF attrs.phys_desc %]
-    <li id='rdetail_phys_desc'>
-        <strong class='rdetail_label'>[% l("Physical Description:") %]</strong>
-        <span class='rdetail_value'>[% attrs.phys_desc | html %]</span>
-    </li>
-    [%- END %]
-    [%- IF attrs.edition %]
-    <li id='rdetail_edition'>
-        <strong class='rdetail_label'>[% l("Edition:") %]</strong>
-        <span class='rdetail_value'>[% attrs.edition | html %]</span>
-    </li>
-    [%- END %]
-    [%- IF attrs.publisher %]
-    <li id='rdetail_publisher'>
-        <strong class='rdetail_label'>[% l("Publisher:") %]</strong>
-        <span class='rdetail_value'>[% attrs.publisher | html %] [% IF attrs.pubdate; attrs.pubdate | html; END %]</span>
-    </li>
-    [%- END %]
-</ul>
-
+[%- IF ctx.copy_summary.0.count %]
+<div id='rdetail_copies'>
+<h2>[% l('Copies') %]</h2>
 <table cellpadding="0" cellspacing="0" border="0" width="100%" id="rdetails_status">
     <thead>
         <tr>
@@ -224,6 +190,46 @@
         </tr>
     </tbody>
 </table>
+</div>
+[%- END %]
+
+<h2 id='rdetail_record_details'>[% l("Record details") %]</h2>
+<ul>
+    [%- IF attrs.isbns.0; FOR isbn IN attrs.isbns %]
+    <li class='rdetail_isbns'>
+        <strong class='rdetail_label'>[% l('ISBN:'); %]</strong>
+        <span class='rdetail_value'>[% isbn | html  %]</span>
+    </li>
+        [%- END %]
+    [%- END %]
+    [%- IF attrs.issns.0; FOR issn IN attrs.issns %]
+    <li class='rdetail_issns'>
+        <strong class='rdetail_label'>[% l('ISSN:'); %]</strong>
+        <span class='rdetail_value'>[% issn | html  %]</span>
+    </li>
+        [%- END %]
+    [%- END %]
+
+    [%- IF attrs.phys_desc %]
+    <li id='rdetail_phys_desc'>
+        <strong class='rdetail_label'>[% l("Physical Description:") %]</strong>
+        <span class='rdetail_value'>[% attrs.phys_desc | html %]</span>
+    </li>
+    [%- END %]
+    [%- IF attrs.edition %]
+    <li id='rdetail_edition'>
+        <strong class='rdetail_label'>[% l("Edition:") %]</strong>
+        <span class='rdetail_value'>[% attrs.edition | html %]</span>
+    </li>
+    [%- END %]
+    [%- IF attrs.publisher %]
+    <li id='rdetail_publisher'>
+        <strong class='rdetail_label'>[% l("Publisher:") %]</strong>
+        <span class='rdetail_value'>[% attrs.publisher | html %] [% IF attrs.pubdate; attrs.pubdate | html; END %]</span>
+    </li>
+    [%- END %]
+</ul>
+
 
 [%- INCLUDE "opac/parts/record/subjects.tt2" %]
 
diff --git a/Open-ILS/web/css/skin/default/opac/style.css b/Open-ILS/web/css/skin/default/opac/style.css
index 540d14728b..1e018607bf 100644
--- a/Open-ILS/web/css/skin/default/opac/style.css
+++ b/Open-ILS/web/css/skin/default/opac/style.css
@@ -375,8 +375,9 @@ div.select-wrapper:hover {
 	padding-right: 50px;
 }
 
-#rdetails_status {
-    margin-top: 1.5em;
+#rdetail_copies {
+    clear: both;
+    padding-top: 1.5em;
 }
 
 #rdetails_status td, #rdetails_status2 td {
-- 
2.11.0