Transkribus / TranskribusSwtGui

Note: the repo has been moved to https://gitlab.com/readcoop/Transkribus/TranskribusSwtGui
GNU General Public License v3.0
18 stars 4 forks source link

Load recent document after login and make behavior configurable #230

Closed kahlep closed 3 years ago

kahlep commented 5 years ago

Currently the first collection from the list is opened and the first document is loaded. On each collection change the first doc from the collection is loaded automatically.

  1. [x] Unload any remote doc upon collection change rather than loading a random one
  2. [x] Add option to config.properties
  3. [x] Determine the most recently edited/viewed document, either by a. Getting the most recent user actions of type "Save" and "Access document" from the server. b. Read this from the registry. This however lacks the server URL and encodes information into Strings
  4. [x] Load the most recently edited/viewed document automatically after login.
  5. [ ] Add checkbox (?) to config dialog config dialog for changing behavior
kahlep commented 5 years ago
  1. solved with 4a786f443489a40799b2ae288d664b4783ebd9ec
  2. solved with c05f7bb66668fdf3a3cb0d9d3ae6b098cb949775
kahlep commented 5 years ago
  1. started in 409fe92c209edca7ed7ac757cc4441f2a3956ea3

Using option a) to start, as server side provides this functionality, except passing several action type IDs, and changing the string encoded registry format might easily break functionality.

  1. Blocking: There is another event handler loading the first collection from the collection list. This triggers the handler from 1. and unloads the document again. -> find this handler and put the code in one place
kahlep commented 5 years ago

Test Server actions API now allows to pass multiple action type IDs. Retrieval method picks the most recent action of type "Access Document", "Save" or "Status Change"

kahlep commented 5 years ago
  1. fixed in 095fea7c48c545e94a03e236e000b3482c1cad73
kahlep commented 5 years ago

Works stable so far and can be enabled in config.properties: loadMostRecentDocOnLogin = true

The UI for that could be done in #232

hackmanschorsch commented 3 years ago

feature enabled in the main menu (burger menu)