app/models/item.rb
# creates a reference as it would look like form *outside* the given context
# result might look like this:
#  "LA 2 SS 17, Bem. 29.13"
creates a reference as it would look like form *outside* the given context
result might look like this:
"LA 2 SS 17, Bem.
creates a reference as it would look like form * outside * the given context result might look like this : " LA 2 SS 17 Bem .
def long_reference
    return short_reference if sort.in?(['self', 'link'])
    return short_ref_with_teachable if section.present?
    return medium.title_for_viewers unless short_reference.present?
    medium.title_for_viewers + ', ' + short_reference
  end
def long_reference return short_reference if sort . in? ( [ 'self' , 'link' ] ) return short_ref_with_teachable if section . present? return medium . title_for_viewers unless short_reference . present? medium . title_for_viewers + ', ' + short_reference end
creates a reference as it would look like form *outside* the given context
result might look like this:
"LA 2 SS 17, Bem.
creates a reference as it would look like form * outside * the given context result might look like this : " LA 2 SS 17 Bem .