"twisties" (is that even the right term? miker says it) for holdins tree
authorLebbeous Fogle-Weekley <lebbeous@esilibrary.com>
Wed, 7 Mar 2012 18:11:03 +0000 (13:11 -0500)
committerLebbeous Fogle-Weekley <lebbeous@esilibrary.com>
Wed, 7 Mar 2012 21:57:12 +0000 (16:57 -0500)
Signed-off-by: Lebbeous Fogle-Weekley <lebbeous@esilibrary.com>
Open-ILS/src/templates/opac/parts/record/issues-db.tt2

index 5bee35a..a110b56 100644 (file)
@@ -58,11 +58,14 @@ VIEW grouped_holding_tree;
                         }, collapse_clear_params, 'issues'
                     );
 
-                    "<div class='rdetail-holding-group'><a href='";
+                    "<div class='rdetail-holding-group'>";
                     IF node.children.size;
-                        collapse_link;
+                        # TODO: make images or figure out a CSS trick or
+                        # something. I doubt we can count on all OPAC clients
+                        # having adequate fonts to cover these Unicode glyphs.
+                        "&#x25bc; <a href='"; collapse_link;
                     ELSE;
-                        expand_link;
+                        "&#x25ba; <a href='"; expand_link;
                     END;
                     "'>"; node.label; "</a></div>";
 
@@ -99,19 +102,22 @@ VIEW holding_summary_tree;
         ctx.get_aou(item.org_unit).name; "<br />";
         FOREACH summary IN item.holding_summaries;
             IF summary.holdings;
+                twisty = '&#x25bc; ';
                 link = mkurl(
                     '', {},
                     ['sid','stype','selimit','sepath','seoffset'], 'issues'
                 );
                 link_title = l('Collapse');
             ELSE;
+                twisty = '&#x25ba; ';
                 link = mkurl(
                     '', {sid => summary.id, stype => summary.summary_type},
                     ['selimit','sepath','seoffset'], 'issues'
                 );
                 link_title = l('Expand');
             END;
-            '<span><a href="' _ link _ '" title="' _ link_title _ '">';
+            '<span>'; twisty;
+            '<a href="' _ link _ '" title="' _ link_title _ '">';
             summary.generated_coverage.join(", ");
             '</a></span><br />';
             IF summary.holdings;