def references_for_title
      references = []
      references << "ISBN: #{attachment[:isbn]}" if attachment[:isbn].present?
      references << "Unique reference: #{attachment[:unique_reference]}" if attachment[:unique_reference].present?
      references << "Command paper number: #{attachment[:command_paper_number]}" if attachment[:command_paper_number].present?
      references << "HC: #{attachment[:hoc_paper_number]} #{attachment[:parliamentary_session]}" if attachment[:hoc_paper_number].present?
      prefix = references.size == 1 ? "and its reference" : "and its references"
      references.any? ? ", #{prefix} (" + references.join(", ") + ")" : ""
    end
def references_for_title
      references = []
      references << "ISBN: #{attachment[:isbn]}" if attachment[:isbn].present?
      references << "Unique reference: #{attachment[:unique_reference]}" if attachment[:unique_reference].present?
      references << "Command paper number: #{attachment[:command_paper_number]}" if attachment[:command_paper_number].present?
      references << "HC: #{attachment[:hoc_paper_number]} #{attachment[:parliamentary_session]}" if attachment[:hoc_paper_number].present?
      prefix = references.size == 1 ? "and its reference" : "and its references"
      references.any? ? ", #{prefix} (" + references.join(", ") + ")" : ""
    end
FIXME this has english in it so will cause problems if the locale is not en