code: def get_entry_compact_text_repr(entry, entries):
      
      text = get_shortest_text_value(entry)
      if text is not None:
          return text
      else:
          sources = get_sourced_from(entry)
          # There are a lot of references to this entity, each of which refer
          # to it by a different text label. For the sake of visualization,
          # let's pick one of these labels (in this case, the shortest one)
          if sources is not None:
              texts = []
              for source in sources:
                  source_entry = entries[source]
                  texts.append(get_shortest_text_value(source_entry))
              return get_shortest_string(texts)
docs: If the entry has a text value, return that.
      If the entry has a source_from value, return the text value of the source.
      Otherwise, return None.