Commit Graph

154 Commits

Author SHA1 Message Date
4fd6e02ec0 Improve glob and filter archive entries 2020-11-11 21:01:23 +01:00
55a6f7aaf6 Add more properties to upload meta data 2020-11-11 21:01:23 +01:00
29455d638c Add startup task to find page counts of existing files 2020-11-09 20:35:35 +01:00
8c08bf233d Amend search results with attachment info
This uses again another query per item to retrieve some information
about each attachment already in the search results.
2020-11-09 14:24:28 +01:00
8c8788bc69 Provide fallback image for previews 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
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
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
f4c79c72ae Allow to remove tags from multiple items 2020-10-31 14:42:17 +01:00
0114bb4d72 Use source name from config file for integration endpoint uploads
Fixes: #389
2020-10-26 22:37:30 +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
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
458fa7edd9 Allow to search in a defined item subset 2020-10-25 22:19:55 +01:00
4ee881963e Fix cookie's secure flag based on protocol
Now, if the configured base-url is `localhost` (that is, it is left
unchanged), the request is insepected to retrieve the base-url value.
This is then used to set the `secure` cookie attribute. The `domain`
attribute has been removed from the cookie.

The notify-items task has been updated to use the same pattern for
creating absolute urls to items it its mail body.
2020-10-11 18:31:36 +02:00
df646dfabe Get the client host first from x-forwarded-host header
Then use the x-forwarded-for header (doing a reverse lookup, if
possible). At last use the Host header.
2020-10-09 23:47:07 +02:00
67e1ba05f4 Fix domain for auth cookie
The domain was incorrectly extracted from the request. It must be
using the `Host` header at last, trying now `X-Forwarded-For` and
`X-Forwarded-Host` first.
2020-09-28 00:52:09 +02:00
030ee6c932 Update website 2020-09-24 00:49:51 +02:00
f6f63000be Prepend a duplicate check when uploading files 2020-09-23 23:37:00 +02:00
d3bf03482e Add a simple service worker to make an installable app 2020-09-18 22:59:58 +02:00
d8bb6dcba3 Dynamically configure cookie and base-url
When `base-url` is the default (i.e. localhost), the cookie is now
configured with the domain doing the request and the webapp is
configured to run requests against the host in the address bar of the
browser.
2020-09-13 14:05:20 +02:00
c658677032 Autoformat 2020-09-09 00:29:32 +02:00
06879456a6 Change job priority on queue page 2020-09-05 18:50:58 +02:00
1dcccbcf7d Allow to hide classification settings in the webapp 2020-09-05 16:00:19 +02:00
7a0f71604d Serve static files/assets preferring the gzip version 2020-09-03 01:29:09 +02:00
f9fcee81a5 Add start-now button for train-classifier task 2020-09-02 21:22:22 +02:00
8c4f2e702b Add classifier settings 2020-09-02 18:28:14 +02:00
de5b33c40d Add updated column to some tables 2020-08-24 21:30:52 +02:00
760dec2230 Rename new route for retrieving used tags 2020-08-13 23:25:30 +02:00
3986487f11 Add api docs and cleanup 2020-08-13 21:22:54 +02:00
081c4da903 Add a route to trigger the convert-all-pdf task for a collective 2020-08-13 01:06:13 +02:00
69674eb485 Improve job-queue query to make sure jobs across all states show up 2020-08-13 01:06:13 +02:00
07e9a9767e Add a task to re-process files of an item 2020-08-12 22:29:56 +02:00
098e4cf868 Fix uploading to enabled/disabled source endpoints 2020-08-09 09:21:23 +02:00
43946ed347 Fail early when source id is wrong 2020-08-08 18:43:18 +02:00
06ad9ac46c Add routes to conveniently set/toggle tags 2020-08-08 15:08:04 +02:00
1c8b66194b Add a route to return used tags
This is part of the `/insights` route without queries for file usage.
2020-08-08 08:35:35 +02:00
a4796f3f7f Return more tag details with item insights 2020-08-08 00:41:20 +02:00
f3ba224124 Add missing organization/person/equipment routes 2020-08-07 01:30:43 +02:00
070c2b5e5f Allow to search by tag categories
The server accepts a list of tag categories for inclusion and
exclusion. The categories in the include list imply to return items
that have at least one tag of each category. The categories in the
exclude list imply to return all items that have no tag in any of
these categories.
2020-08-06 21:43:27 +02:00
08f953dd52 Display item notes in card view if configured
The user can set a maximum length of the item notes to display in each
card. If set to 0, it is hidden.
2020-08-05 00:09:44 +02:00
09d74b7e80 Return item notes with search results
In order to not make the response very large, a admin can define a
limit on how much to return.
2020-08-05 00:09:37 +02:00
dbd27057d1 Improve source view and add qrcode for urls
The qr-code for urls is added so that these urls are easy to copy into
a phone. Then buttons for copying them into the clipboard have been
added.
2020-08-03 23:58:41 +02:00