Skip to content

Commit 256d3d3

Browse files
committed
Tweak text and layout.
1 parent 5905e3a commit 256d3d3

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

  • src/formats/profiles/gpo-icufl-explorer

src/formats/profiles/gpo-icufl-explorer/index.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -86,8 +86,11 @@ const s = view(Inputs.table(entries, {
8686

8787
If you select an item in the list (using the small circle in the left-hand column), more details about the item will be shown below (although it might take a moment to update).
8888

89+
8990
## Files with extension '${ext}' in the selected item
9091

92+
This lists files in the item that have the extension '${ext}' (up to 1,000 files).
93+
9194
```js
9295

9396
function item_file_linker(path, i, d) {
@@ -102,7 +105,7 @@ function item_file_linker(path, i, d) {
102105
}
103106
}
104107

105-
const files = await sql([`SELECT fid, path, size FROM icufl WHERE LOWER(extension) == LOWER('.${ext}') AND item_id == '${q_item_id}' ORDER BY media ASC, path ASC`]);
108+
const files = await sql([`SELECT fid, path, size FROM icufl WHERE LOWER(extension) == LOWER('.${ext}') AND item_id == '${q_item_id}' ORDER BY media ASC, path ASC LIMIT 1000`]);
106109
```
107110

108111
```js
@@ -121,7 +124,7 @@ Inputs.table(files, {
121124

122125
## All file extensions in this item
123126

124-
This table shows all of the file extensions in the selected item, and counts up how many files have that extension, and now many bytes these files take up in total.
127+
This table shows all of the file extensions in the selected item, and counts up how many files have that extension, and now many bytes these files take up in total. This can be useful for spotting items with similar patterns of files extensions and file extensions that commonly appear together.
125128

126129
```js
127130
const q_item_id = (s === null) ? 0 : s.item_id;
@@ -131,10 +134,9 @@ display(Inputs.table(exts, {
131134
layout: 'auto',
132135
select: false,
133136
format: {
134-
extension: (x) => htl.html`<a href="../../lookup?ext=${x}" target="_blank">${x}</a>`,
137+
extension: (x) => htl.html`<a href="../../lookup_ext?ext=${x}" target="_blank">${x}</a>`,
135138
size: show_big_int
136139
}
137140
}));
138141
```
139142

140-
This can be useful for spotting items with similar patterns of files extensions and file extensions that commonly appear together.

0 commit comments

Comments
 (0)