app/models/taxon_concept.rb
# By default, we generally only want to expose *browsable* classifications.  This method finds those... unless a
# curator has marked a non-browsable classification as the default (or there are no browsable classifications), in
# which case we kind of have to show them all:
By default, we generally only want to expose *browsable* classifications.  This method finds those... unless a
curator has marked a non-browsable classification as the default (or there are no browsable classifications), in
which case we kind of have to show them all.
By default we generally only want to expose * browsable * classifications . This method finds those ... unless a curator has marked a non - browsable classification as the default ( or there are no browsable classifications ) in which case we kind of have to show them all .
def deep_published_browsable_hierarchy_entries
    return @deep_browsables if @deep_browsables
    current_entry_id = entry.id 
    @deep_browsables = cached_deep_published_hierarchy_entries.dup
    @deep_browsables.delete_if { |he| current_entry_id != he.id && he.hierarchy.browsable.to_i == 0 }
    @deep_browsables += deep_published_browsable_hierarchy_entries if
      @deep_browsables.count == 1 && @deep_browsables.first.id == current_entry_id &&
        @deep_browsables.first.hierarchy.browsable.to_i == 0
    @deep_browsables.uniq!
    sort_and_preload_deeply_browsable_entries(@deep_browsables)
  end
def deep_published_browsable_hierarchy_entries return @deep_browsables if @deep_browsables current_entry_id = entry . id @deep_browsables = cached_deep_published_hierarchy_entries . dup @deep_browsables . delete_if { | he | current_entry_id != he . id && he . hierarchy . browsable . to_i == 0 } @deep_browsables += deep_published_browsable_hierarchy_entries if @deep_browsables . count == 1 && @deep_browsables . first . id == current_entry_id && @deep_browsables . first . hierarchy . browsable . to_i == 0 @deep_browsables . uniq! sort_and_preload_deeply_browsable_entries ( @deep_browsables ) end
By default, we generally only want to expose *browsable* classifications.
By default we generally only want to expose * browsable * classifications .
# Don't want to call #entry so many times...