PINES: Additional work on Syndetics Customizations rel_3_0_2_syndetics_customization_part2
authorMcCanna <tmccanna@georgialibraries.org>
Wed, 25 Apr 2018 15:41:23 +0000 (11:41 -0400)
committerMcCanna <tmccanna@georgialibraries.org>
Wed, 25 Apr 2018 15:43:24 +0000 (11:43 -0400)
Signed-off-by: McCanna <tmccanna@georgialibraries.org>
Open-ILS/src/perlmods/lib/OpenILS/WWW/AddedContent/Syndetic.pm
Open-ILS/src/templates/opac/parts/record/addedcontent.tt2

index dd6d945..99d0644 100644 (file)
@@ -60,6 +60,20 @@ sub data_exists {
 sub send_html {
     my( $self, $content ) = @_;
     return 0 unless $self->data_exists($content);
+
+    # Hide anything that might contain a link since it will be broken
+    my $HTML = <<"    HTML";
+        <div>
+            <style type='text/css'>
+                div.ac input, div.ac a[href],div.ac img, div.ac button { display: none; visibility: hidden }
+            </style>
+            <div class='ac'>
+                $content
+            </div>
+        </div>
+    HTML
+
+    return { content_type => 'text/html', content => $HTML };
 }
 
 sub send_img {
index 27fa5d8..a7f6935 100644 (file)
             cursor: pointer;
         }
       
+               /* Responsive design for phones */
+               @media only screen and (max-width: 1200px) {
+
+                       #sBtn {
+                               display:none;
+                       }
+        }
     </style>