summaryrefslogtreecommitdiff
path: root/web/biblio-require.rb
blob: 65ca235a2eaf71e7fbc2625f8faa70977694ccae (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#!/usr/bin/env ruby

$status_transform = {
  "yet-to-read" => "Not yet read",
  "completed" => "Completed",
  "ordered" => "On Order",
  "ongoing" => "Currently Reading",
  "reference" => "Reference",
  "not-owned" => "Not owned.",
  "dropped" => "Dropped",
  "collection" => "Collection",
  "paused" => "Paused"
}

$form_transform = {
  "audiobook" => "Audiobook",
  "physical" => "Physical Book",
  "virtual" => "PDF", # Deprecated attribute - use pdf instead.
  "pdf" => "PDF",
  "epub" => "EPUB",
  "light-novel" => "LN",
  "manga" => "Manga"

}

$ownership_transform = {
  "owned" => "Owned",
  "borrowed" => "Borrowed",
  "not-owned" => "Not owned"
}

$general_transform = {
  "N/A" => ""
}

$delim = ";"