Display located URIs in record details page
authorDan Scott <dan@coffeecode.net>
Tue, 28 Jun 2011 18:09:26 +0000 (14:09 -0400)
committerDan Scott <dan@coffeecode.net>
Tue, 28 Jun 2011 18:27:11 +0000 (14:27 -0400)
We can reuse the work put into misc_util.tt2 to generate args.uris in
the display within the record details page. In the absence of good
design, we add a basic class and matching CSS to style.css in the hopes
that a design-oriented person can come along behind us and make the URIs
stand out appropriately.

Signed-off-by: Dan Scott <dscott@laurentian.ca>
Signed-off-by: Dan Scott <dan@coffeecode.net>
Open-ILS/web/css/skin/default/opac/style.css
Open-ILS/web/templates/default/opac/parts/record/summary.tt2

index caba3e0..7833530 100644 (file)
@@ -389,6 +389,11 @@ div.select-wrapper:hover {
        padding-right: 10px;
 }
 
+.rdetail_uri {
+    border: thin black solid;
+    padding: 3px;
+}
+
 .rdetail_aux_utils {
        border-left:1px dotted #ccc;
        padding-left: 17px;
index 4dbfadc..ff1a757 100644 (file)
         </tr>
     </tbody>
 </table>
-<br /><br />
+<br />
+
+[% FOR uri IN args.uris %]
+<div class="rdetail_uri">
+    <a href="[% uri.href %]">[% uri.link %]</a>[% ' - ' _ uri.note IF uri.note %]
+</div>
+[% END %]
+
+<br />
 
 <table cellpadding="0" cellspacing="0" border="0" width="100%" id="rdetails_status">
     <thead>