Module: Alexandria::SmartLibrary::Rule::Operands

Extended by:
GetText
Includes:
GetText
Defined in:
lib/alexandria/smart_library.rb

Constant Summary collapse

LEFT =
[
  LeftOperand.new(:title, _("Title"), String),
  LeftOperand.new(:isbn, _("ISBN"), String),
  LeftOperand.new(:authors, _("Authors"), String),
  LeftOperand.new(:publisher, _("Publisher"), String),
  LeftOperand.new(:publishing_year, _("Publish Year"), Integer),
  LeftOperand.new(:edition, _("Binding"), String),
  LeftOperand.new(:rating, _("Rating"), Integer),
  LeftOperand.new(:notes, _("Notes"), String),
  LeftOperand.new(:tags, _("Tags"), Array),
  LeftOperand.new(:loaned, _("Loaning State"), TrueClass),
  LeftOperand.new(:loaned_since, _("Loaning Date"), Time),
  LeftOperand.new(:loaned_to, _("Loaning Person"), String),
  LeftOperand.new(:redd, _("Read"), TrueClass),
  LeftOperand.new(:redd_when, _("Date Read"), Time),
  LeftOperand.new(:own, _("Own"), TrueClass),
  LeftOperand.new(:want, _("Want"), TrueClass),
].sort
STRING =
Operand.new(nil, String)
STRING_ARRAY =
Operand.new(nil, String)
INTEGER =
Operand.new(nil, Integer)
TIME =
Operand.new(nil, Time)
DAYS =
Operand.new(_("days"), Integer)