-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathView Citation by Subject.tid
118 lines (113 loc) · 2.23 KB
/
View Citation by Subject.tid
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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
caption: View Citation by Subject
creator: OokTech
no_edit: true
title: $:/plugins/OokTech/Citations/View Citation by Subject
\define thisNoteTiddler()
<$list
filter='[<CitationTiddler>!has[note_tiddler]]'
>
<$button>
Create Note Tiddler
<$action-setfield
$tiddler=<<thisNoteTiddlerName>>
text=''
/>
<$action-setfield
$tiddler=<<CitationTiddler>>
note_tiddler=<<thisNoteTiddlerName>>
/>
</$button>
</$list>
<$list
filter='[<CitationTiddler>has[note_tiddler]]'
>
<$edit-text
tiddler={{!!note_tiddler}}
class='tc-edit-texteditor'
minHeight={{$:/state/viewcitation/noteheight}}
placeholder='Citation Notes'
/>
</$list>
\end
\define thisNoteTiddlerName()
$(CitationTiddler)$_notes
\end
Subject:
<$select
tiddler='$:/state/viewcitation/subject'
default='No Subject'
>
<$list
filter='[tag[CitationsSubject]sort[title]]'
>
<option
value=<<currentTiddler>>
>
<$view
field='title'
/>
</option>
</$list>
</$select>
Note area height:
<$select
tiddler='$:/state/viewcitation/noteheight'
>
<$list
filter='50px 100px 200px 300px 400px 500px 600px 700px'
>
<option>
<<currentTiddler>>
</option>
</$list>
</$select>
Citation:
<$select
tiddler='$:/state/viewcitation/citationbysubject'
>
<$list
filter='[tag[Citations]sort[title]]'
variable=currentCitation
>
<$list
filter='[title<currentCitation>get[subject_tiddler]]'
variable=subjectsTiddler
>
<$list
filter='[title<subjectsTiddler>indexes[]]'
><!-- variable=currentSubject>-->
<$list
filter='[title{$:/state/viewcitation/subject}is[current]]'
>
<option>
<$view
tiddler=<<currentCitation>>
field='title'
/>
</option>
</$list>
</$list>
</$list>
</$list>
</$select>
<$set
name=CitationTiddler
value={{$:/state/viewcitation/citationbysubject}}
>
<table
style='width:100%'
>
<tr>
<td
style='width:50%;height:100%;'
>
<<thisNoteTiddler>>
</td>
<td>
<$transclude
tiddler=<<CitationTiddler>> mode='block'
/>
</td>
</tr>
</table>
</$set>