From: McCanna Date: Wed, 25 Apr 2018 15:41:23 +0000 (-0400) Subject: PINES: Additional work on Syndetics Customizations X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=244a991080b9cc06799f4047c2a8ecfb5efe523a;p=evergreen%2Fpines.git PINES: Additional work on Syndetics Customizations Signed-off-by: McCanna --- diff --git a/Open-ILS/src/perlmods/lib/OpenILS/WWW/AddedContent/Syndetic.pm b/Open-ILS/src/perlmods/lib/OpenILS/WWW/AddedContent/Syndetic.pm index dd6d945aa1..99d0644699 100644 --- a/Open-ILS/src/perlmods/lib/OpenILS/WWW/AddedContent/Syndetic.pm +++ b/Open-ILS/src/perlmods/lib/OpenILS/WWW/AddedContent/Syndetic.pm @@ -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"; +
+ +
+ $content +
+
+ HTML + + return { content_type => 'text/html', content => $HTML }; } sub send_img { diff --git a/Open-ILS/src/templates/opac/parts/record/addedcontent.tt2 b/Open-ILS/src/templates/opac/parts/record/addedcontent.tt2 index 27fa5d8a22..a7f6935d83 100644 --- a/Open-ILS/src/templates/opac/parts/record/addedcontent.tt2 +++ b/Open-ILS/src/templates/opac/parts/record/addedcontent.tt2 @@ -54,6 +54,13 @@ cursor: pointer; } + /* Responsive design for phones */ + @media only screen and (max-width: 1200px) { + + #sBtn { + display:none; + } + }