Serials: routing list display glitchiness. Previously, the display did not
authorsenator <senator@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Mon, 29 Nov 2010 16:25:38 +0000 (16:25 +0000)
committersenator <senator@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Mon, 29 Nov 2010 16:25:38 +0000 (16:25 +0000)
correctly handle a mix of received items with and without routing lists.

git-svn-id: svn://svn.open-ils.org/ILS/trunk@18851 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/web/js/ui/default/serial/print_routing_list_users.js
Open-ILS/web/templates/default/serial/print_routing_list_users.tt2

index 014f645..b8b05e7 100644 (file)
@@ -10,6 +10,10 @@ function ListRenderer() {
     this.render = function() {
         for (var i = 0; i < this.streams.length; i++) {
             var stream = this.streams[i];
+
+            if (!this.users_by_stream[stream.id()])
+                continue; /* no users on this stream */
+
             var list = dojo.clone(this.list_template);
             n("title", list).innerHTML = this.mvr.title();
             n("issuance_label", list).innerHTML = this.issuance.label();
index c96da83..31d76c1 100644 (file)
@@ -7,8 +7,8 @@
         <div class="item-dist-and-stream">
             (<span name="distribution_holding_lib"></span>)
             <span name="distribution_label"></span> /
-            <span name="stream_routing_label"></span>
-            <em name="stream_id_container">
+            <span name="stream_routing_label" class="hidden"></span>
+            <em name="stream_id_container" class="hidden">
                 Unlabeled stream ID #<span name="stream_id"></span>
             </em>
         </div>