<turbo-stream action="update" target="flash"><template>
  <script>
      hideActivity();

      $(".research_summary_tab_content").hide();
      $("#research_summary_tab_content_business").show();

      $(".research_summary_tabs_wrapper .tab").removeClass('selected');
      $("#research_summary_tab_business").addClass('selected');

      if ($('[name="business[]"]').length > 0) {
          $("#refine_search_wrapper").hide()
          $("#search_paper_wrapper").show();
          $(".research_summary_tab_content").hide();
          $("#research_summary_tab_content_business").show();
      } else {
            $("#refine_search_wrapper").hide()
            $("#search_paper_wrapper").show();
            $(".research_summary_tab_content").hide();

            $("#research_summary_tab_content_business")
              .html($("<div class=\"section\" style=\"height: initial;overflow: inherit;padding:1rem 0.5rem;background:transparent;margin:auto\">\n  <div class=\"row notification-box notification-box--green\">\n    <div class=\"col s12\">\n      <h5 class=\"lock\">\n        Member-only research collection\n      <\/h5>\n      This section contains research papers shared within the group.\n        <a href=\"/signup?redirect_to=/research_topics/management-information-systems-and-business-intelligence/102\" class = \'c-green fancybox\' data-turbo=\"false\">\n          Become a member\n        <\/a>\n      to view the full list.\n    <\/div>\n  <\/div>\n<\/div>"))
              .show();
      }
  </script>
</template></turbo-stream>