{
  api_path: (path) => 'https://api.loopio.com/data/v2' + path,
  safe: (val) => (val != null ? '' + val : ''),
  format_entry: (e) => (e.id != null ? '#' + e.id + ': ' : '') + (e.question != null ? e.question.substring(0, 100) : '(no question)') + (e.answer != null && e.answer.text != null ? ' -> ' + e.answer.text.substring(0, 80) : ' -> (unanswered)'),
  format_project: (p) => (p.name != null ? p.name : '?') + ' [' + (p.projectType != null ? p.projectType : '?') + ']' + (p.status != null ? ' (' + p.status + ')' : ''),
  format_library: (e) => (e.id != null ? '#' + e.id + ': ' : '') + (e.questions != null && e.questions.length > 0 ? e.questions[0].text.substring(0, 80) : '(no question)')
}