Commit Graph

619 Commits

Author SHA1 Message Date
5906c705c9 Allow the user to choose between 3 preview sizes 2020-11-09 09:40:21 +01:00
8c8788bc69 Provide fallback image for previews 2020-11-09 09:00:03 +01:00
d4bbb936b6 Count preview image sizes in insight data 2020-11-09 09:00:03 +01:00
30682fbecc Document the re-generate all previews endpoint 2020-11-09 09:00:03 +01:00
f4e50c5229 Provide endpoints to submit tasks to re-generate previews
The scaling factor can be given in the config file. When this changes,
images can be regenerated via POSTing to certain endpoints. It is
possible to regenerate just one attachment preview or all within a
collective.
2020-11-09 09:00:02 +01:00
6037b54959 Don't fail processing if generating preview fails 2020-11-09 00:05:11 +01:00
cf6e63785d Fix potential index-out-of-bounds error in classifier
The stanford library expects a non-empty text.
2020-11-09 00:04:51 +01:00
709848244c Create tasks to generate all previews
There is a task to generate preview images per attachment. It can
either add them (if not present yet) or overwrite them (e.g. some
config has changed).

There is a task that selects all attachments without previews and
submits a task to create it. This is submitted on start automatically
to generate previews for all existing attachments.
2020-11-08 23:46:02 +01:00
eede194352 Fix deleting preview files 2020-11-08 21:27:55 +01:00
2c96590aad First ui view of preview images for items
Users can choose to not show them via ui settings
2020-11-08 15:12:56 +01:00
7ba6baf6f0 Make preview image smaller 2020-11-08 15:12:56 +01:00
757ad31165 Add a route to get the item preview
This is the first available preview of an attachment wrt position. If
all attachments have a preview image, the preview of the first
attachment is returned.
2020-11-08 15:12:56 +01:00
8cc89fd3b7 Move handling binary responses to a shared space 2020-11-08 15:12:56 +01:00
d376ef3ef1 Add simple route to get the preview image 2020-11-08 13:33:39 +01:00
6db5c39d78 Fix converted filename
Mark it by default with a string from the config file.

Issue: 397
2020-11-08 09:45:03 +01:00
ef7cb4e779 Create a preview image of all files during processing 2020-11-08 01:25:59 +01:00
0841a33ae3 Add a table to hold the preview files 2020-11-08 01:25:38 +01:00
350a271b22 Add simple pdf page preview function 2020-11-08 01:25:14 +01:00
59dfae6a49 Introduce fomantic-ui, replacing semantic-ui
Replaced semantic-ui with the drop-in replacement fomantic-ui [0]
which is a maintained fork. The fomantic-ui used here is a custom
build [1] of the less-version _without_ google-fonts (css-only). The
javascript part of fomantic-ui is not used, and also jquery could be
dropped now.

[0] https://fomantic-ui.com
[1] https://github.com/eikek/fomantic-slim-default

Issue: #349
2020-11-05 22:44:10 +01:00
47e780d35f Set version to 0.15.0-SNAPSHOT 2020-11-01 21:00:19 +01:00
1a1104c387 Set version to 0.14.0 2020-11-01 20:25:07 +01:00
a965605a9e Improve tag multi-edit 2020-10-31 14:42:17 +01:00
f4c79c72ae Allow to remove tags from multiple items 2020-10-31 14:42:17 +01:00
6a16d8afc7 Allow to confirm/unconfirm multiple items 2020-10-29 23:15:38 +01:00
ab50792879 Change icon for hiding/showing search menu 2020-10-29 23:02:08 +01:00
0461cfefe7 Fix sql error for mariadb <10.4
MariaDB below 10.4 doesn't support parentheses around selects for
`intersect` and `union`.

https://mariadb.com/kb/en/intersect/#parentheses

Fixes #404
2020-10-28 22:54:51 +01:00
509823404e Try improve search bar/menu switch
Adressing some parts of #395
2020-10-28 21:55:42 +01:00
96d7eb5c97 Merge pull request #401 from eikek/fix-replace-cards
Preserve context highlighting from full-text search
2020-10-27 23:57:12 +00:00
c6b8355902 Preserve context highlighting from full-text search
When replacing changed cards the fulltext highlighting should be
preserved from the original item.
2020-10-27 22:51:11 +01:00
183bcf5bec Add ui-settings flag for side menus 2020-10-27 22:35:52 +01:00
83b41b027f Change default position for notes to bottom 2020-10-27 20:43:58 +01:00
2ad2f3be57 Merge pull request #392 from eikek/fix-process-timeout
Fix process timeout
2020-10-26 23:48:27 +00:00
ab1139523a Let the convert-all task retry when pdf conversion fails 2020-10-26 23:39:26 +01:00
b59696a9d3 Make sure to only remove/retry items in premature states 2020-10-26 23:39:26 +01:00
0114bb4d72 Use source name from config file for integration endpoint uploads
Fixes: #389
2020-10-26 22:37:30 +01:00
dd89e05cc2 Convert exceptions when converting to pdf into an error result
The file processing tries pdf conversion once and keeps going if it
fails. Some errors (e.g. timeouts) are raised via an exception.

Issue: #387
2020-10-26 19:51:02 +01:00
0f84200118 Indicate saving when changing name for multiple items 2020-10-26 15:32:58 +01:00
0eabb7d589 Change tooltip of new select-items button 2020-10-26 14:46:04 +01:00
998aad5627 Delete multiple items 2020-10-26 14:46:04 +01:00
9193d7ca51 Send multiple items to reprocessing 2020-10-26 14:03:56 +01:00
26e89bf84e Edit org/person/equipment of multiple items 2020-10-26 13:35:47 +01:00
2e6026b817 Edit dates of multiple items 2020-10-26 13:16:03 +01:00
7ade7dd70b Display direction icon when editing multiple items 2020-10-26 12:49:30 +01:00
d4043634ac Edit direction of multiple items 2020-10-26 12:48:15 +01:00
42c989a6cd Edit folder of multiple items 2020-10-26 12:39:44 +01:00
17472fa4ca Edit name of multiple items 2020-10-26 12:17:55 +01:00
7ad37c8d26 Editing tags for multiple items 2020-10-26 11:54:04 +01:00
5735a47199 Replace changed item cards 2020-10-25 23:08:40 +01:00
458fa7edd9 Allow to search in a defined item subset 2020-10-25 22:19:55 +01:00
5f2f20c8d7 Extend http api for multi-edit 2020-10-25 22:19:55 +01:00