forked from ChelseaKR/queer-the-stacks
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlenses.example.toml
More file actions
79 lines (73 loc) · 3.13 KB
/
Copy pathlenses.example.toml
File metadata and controls
79 lines (73 loc) · 3.13 KB
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
# Diversity lenses — the "Dimensions" grouping on the diversity section of the
# dashboard (see app/diversity.py). Each [[lenses]] entry groups *sourced book
# descriptors* (Calibre tags, OpenLibrary subjects, curated-list labels) under a
# single reader-legible name. This is a view over book tags, never a claim
# about an author's identity.
#
# Copy this template to data/lenses.toml, then edit the names, descriptors, or
# whole lenses to match your own shelf's vocabulary. The active file is ignored
# by Git because a personalized lens can reveal sensitive reading interests.
# Descriptors are matched case-insensitively against sourced book theme tags.
#
# Validation (app/diversity.py::validate_dimensions): every lens needs a
# non-empty ``name``, a non-empty ``descriptors`` list, and no two lenses may
# share a name (case-insensitive). If this file is missing, unreadable,
# malformed, or fails validation, the dashboard falls back to the built-in
# defaults with a visible warning — never a blank section.
#
# ``sensitive`` (optional, defaults to TRUE) controls the privacy toggle
# (STACKS_HIDE_SENSITIVE=1 or ?hide_sensitive=1), which exists for one
# situation: a queer or trans reading history on a shared screen. With the
# toggle on, a sensitive lens has its granular descriptors aggregated into a
# single row and its matched labels replaced by a placeholder; the lens name and
# its book count stay visible, so the picture is not lost.
#
# It defaults to TRUE on purpose. A lens you add is a category *you* decided
# mattered enough to name, and this file exists because the shipped vocabulary
# did not describe your shelf — which is exactly the case the toggle is for. Set
# ``sensitive = false`` on a lens you are happy to show in full. The four
# non-identity lenses below are marked that way, so copying this template
# unchanged reproduces the built-in behaviour exactly.
#
# Descriptors on the built-in identity list (trans, transgender, nonbinary,
# non-binary, genderqueer, queer, lgbtq, lgbtq+, lesbian, gay, bisexual,
# sapphic) are always redacted when the toggle is on, whether or not any lens
# here lists them — removing one from this file cannot un-redact it.
#
# Known limit: redaction works on lens vocabulary. A sourced descriptor that
# belongs to no lens here and is not on the built-in list is shown as-is. If a
# tag on your shelf matters, put it in a lens.
[[lenses]]
name = "Trans & nonbinary"
sensitive = true
descriptors = ["trans", "transgender", "nonbinary", "non-binary", "genderqueer"]
[[lenses]]
name = "Queer / LGBTQ+"
sensitive = true
descriptors = ["queer", "lgbtq", "lgbtq+", "lesbian", "gay", "bisexual", "sapphic"]
[[lenses]]
name = "Speculative / SFF"
sensitive = false
descriptors = [
"speculative",
"science fiction",
"sci-fi",
"fantasy",
"epic fantasy",
"dystopia",
"time travel",
"fabulist",
"horror",
]
[[lenses]]
name = "Feminist"
sensitive = false
descriptors = ["feminist", "feminism", "womanist"]
[[lenses]]
name = "Literary"
sensitive = false
descriptors = ["literary", "short stories", "essays"]
[[lenses]]
name = "Historical"
sensitive = false
descriptors = ["historical", "history"]