lib/psulib_traject/macros.rb
# For genre facet and display
#
# limit to subfield $2 vocabularies for 655|*7 genres
For genre facet and display
limit to subfield $2 vocabularies for 655|*7 genres
For genre facet and display limit to subfield $2 vocabularies for 655| * 7 genres
def sought_link_data_exists?(link_type, field)
      url_label = ''
      if %w[full partial].include? link_type
        sfz = collect_subfield_values(field: field, code: 'z').join ' '
        sf3 = collect_subfield_values(field: field, code: '3').join ' '
        url_label = url_label(sfz, sf3)
      end
      case link_type
      when 'full'
        fulltext_link_available?(field.indicator1, field.indicator2, url_label)
      when 'partial'
        partial_link_available?(field.indicator2, url_label)
      when 'suppl'
        suppl_link_available?(field.indicator2)
      else
        false
      end
    end
def sought_link_data_exists? ( link_type , field ) url_label = '' if %w[ full partial ] . include? link_type sfz = collect_subfield_values ( field : field , code : 'z' ) . join ' ' sf3 = collect_subfield_values ( field : field , code : '3' ) . join ' ' url_label = url_label ( sfz , sf3 ) end case link_type when 'full' fulltext_link_available? ( field . indicator1 , field . indicator2 , url_label ) when 'partial' partial_link_available? ( field . indicator2 , url_label ) when 'suppl' suppl_link_available? ( field . indicator2 ) else false end end
For genre facet and display
limit to subfield $2 vocabularies for 655|*7 genres
For genre facet and display limit to subfield $2 vocabularies for 655| * 7 genres
link_type
field