@@ -15,9 +15,15 @@ declare option output:html-version "5";
15
15
@author margaretha
16
16
:)
17
17
18
+ let $sortBy := request:get-parameter ('sortBy' , '' )
19
+
18
20
let $recommendations-strange-domains := sc:get-recommendations-with-missing-or-unknown-domains ()
19
21
let $recommendations-strange-levels := sc:get-recommendations-with-missing-or-unknown-levels ()
20
22
let $similar-recommendations := sc:get-similar-recommendations ()
23
+
24
+ let $missingFormats := fm:list-missing-format-ids ($sortBy)
25
+ let $numOfMissingFormats := count ($missingFormats)
26
+
21
27
return
22
28
23
29
<html lang = "en" >
@@ -50,16 +56,26 @@ return
50
56
</div>
51
57
52
58
<div id = "missing" >
53
- <h2>List of missing format descriptions ({fm:count-missing-format-ids () }): </h2>
59
+ <h2>List of missing format descriptions ({$numOfMissingFormats }): </h2>
54
60
<p>The formats listed below are referenced by recommendations, but not yet described <a href = "{app:link ("views/list-formats.xq" )} " >inside the SIS</a>.
55
61
Clicking on a format name below opens a list of centres whose recommendations reference that format. The number of such centres is shown in brackets.
56
62
Clicking on the ⊕ character opens a pre-configured GitHub issue where you can suggest the content of the format description. Clicking on the
57
63
<img src = "{app:resource ("copy.png" ,"image" )} " width = "12" /> symbol copies the format ID, e.g. to be used in editing format recommendations.</p>
58
64
<p>The list is also part of the sanity checking functionality: it may happen that some recommendation has a typo in the format ID, and then it
59
65
will show up here.</p>
66
+
67
+ <p>
68
+ <form id = "missing-form" action = "{app:link ("views/sanity-check.xq?#missing-form" )} " >
69
+ <button name = "sortBy" class = "button" style = "margin-right:15px;height:30px;width:200px;"
70
+ type = "submit" value = "id" >Sort by Format Ids </button>
71
+ <button name = "sortBy" class = "button" style = "margin:0;height:30px;width:300px;"
72
+ type = "submit" value = "recommendation" >Sort by Number of Recommendations</button>
73
+ </form>
74
+ </p>
75
+
60
76
<div style = "column-count: 3;" >
61
77
<ul style = "margin: 0; padding-left:15px;" >
62
- {fm:list-missing-format-ids () }
78
+ {$missingFormats }
63
79
</ul>
64
80
</div>
65
81
</div>
0 commit comments