A community-supported supercharged document management system: scan, index and archive all your documents
Python aiangulararchivingdjangodmsdocument-managementdocument-management-systemllmmachine-learningocroptical-character-recognitionpdf
Reorder frontend matching model options & update strings
shamoon927616decb1f
diff --git a/src-ui/messages.xlf b/src-ui/messages.xlfindex 4a71b06ed..50dc362ee 100644--- a/src-ui/messages.xlf+++ b/src-ui/messages.xlf@@ -1109,21 +1109,21 @@<source>Create new item</source><context-group purpose="location"><context context-type="sourcefile">src/app/components/common/edit-dialog/edit-dialog.component.ts</context>- <context context-type="linenumber">67</context>+ <context context-type="linenumber">71</context></context-group></trans-unit><trans-unit id="5324147361912094446" datatype="html"><source>Edit item</source><context-group purpose="location"><context context-type="sourcefile">src/app/components/common/edit-dialog/edit-dialog.component.ts</context>- <context context-type="linenumber">71</context>+ <context context-type="linenumber">75</context></context-group></trans-unit><trans-unit id="1699589597032579396" datatype="html"><source>Could not save element: <x id="PH" equiv-text="error"/></source><context-group purpose="location"><context context-type="sourcefile">src/app/components/common/edit-dialog/edit-dialog.component.ts</context>- <context context-type="linenumber">75</context>+ <context context-type="linenumber">79</context></context-group></trans-unit><trans-unit id="7314814725704332646" datatype="html">@@ -1498,7 +1498,7 @@</context-group><context-group purpose="location"><context context-type="sourcefile">src/app/components/manage/management-list/management-list.component.ts</context>- <context context-type="linenumber">192</context>+ <context context-type="linenumber">195</context></context-group><context-group purpose="location"><context context-type="sourcefile">src/app/components/manage/settings/settings.component.html</context>@@ -2671,7 +2671,7 @@</context-group><context-group purpose="location"><context context-type="sourcefile">src/app/components/manage/management-list/management-list.component.ts</context>- <context context-type="linenumber">188</context>+ <context context-type="linenumber">191</context></context-group></trans-unit><trans-unit id="5382975254277698192" datatype="html">@@ -3677,53 +3677,64 @@<source>Automatic</source><context-group purpose="location"><context context-type="sourcefile">src/app/components/manage/management-list/management-list.component.ts</context>- <context context-type="linenumber">98</context>+ <context context-type="linenumber">99</context></context-group><context-group purpose="location"><context context-type="sourcefile">src/app/data/matching-model.ts</context>- <context context-type="linenumber">39</context>+ <context context-type="linenumber">15</context>+ </context-group>+ </trans-unit>+ <trans-unit id="6252070156626006029" datatype="html">+ <source>None</source>+ <context-group purpose="location">+ <context context-type="sourcefile">src/app/components/manage/management-list/management-list.component.ts</context>+ <context context-type="linenumber">101</context>+ </context-group>+ <context-group purpose="location">+ <context context-type="sourcefile">src/app/data/matching-model.ts</context>+ <context context-type="linenumber">45</context></context-group></trans-unit><trans-unit id="211408744872436427" datatype="html"><source>Successfully created <x id="PH" equiv-text="this.typeName"/>.</source><context-group purpose="location"><context context-type="sourcefile">src/app/components/manage/management-list/management-list.component.ts</context>- <context context-type="linenumber">138</context>+ <context context-type="linenumber">141</context></context-group></trans-unit><trans-unit id="6328828522970676938" datatype="html"><source>Error occurred while creating <x id="PH" equiv-text="this.typeName"/> : <x id="PH_1" equiv-text="e.toString()"/>.</source><context-group purpose="location"><context context-type="sourcefile">src/app/components/manage/management-list/management-list.component.ts</context>- <context context-type="linenumber">143,145</context>+ <context context-type="linenumber">146,148</context></context-group></trans-unit><trans-unit id="2541368547549828690" datatype="html"><source>Successfully updated <x id="PH" equiv-text="this.typeName"/>.</source><context-group purpose="location"><context context-type="sourcefile">src/app/components/manage/management-list/management-list.component.ts</context>- <context context-type="linenumber">161</context>+ <context context-type="linenumber">164</context></context-group></trans-unit><trans-unit id="6151710751857751783" datatype="html"><source>Error occurred while saving <x id="PH" equiv-text="this.typeName"/> : <x id="PH_1" equiv-text="e.toString()"/>.</source><context-group purpose="location"><context context-type="sourcefile">src/app/components/manage/management-list/management-list.component.ts</context>- <context context-type="linenumber">166,168</context>+ <context context-type="linenumber">169,171</context></context-group></trans-unit><trans-unit id="4012132330507560812" datatype="html"><source>Do you really want to delete the <x id="PH" equiv-text="this.typeName"/>?</source><context-group purpose="location"><context context-type="sourcefile">src/app/components/manage/management-list/management-list.component.ts</context>- <context context-type="linenumber">175</context>+ <context context-type="linenumber">178</context></context-group></trans-unit><trans-unit id="8371896857609524947" datatype="html"><source>Associated documents will not be deleted.</source><context-group purpose="location"><context context-type="sourcefile">src/app/components/manage/management-list/management-list.component.ts</context>- <context context-type="linenumber">190</context>+ <context context-type="linenumber">193</context></context-group></trans-unit><trans-unit id="5467489005440577210" datatype="html">@@ -3732,7 +3743,7 @@)"/></source><context-group purpose="location"><context context-type="sourcefile">src/app/components/manage/management-list/management-list.component.ts</context>- <context context-type="linenumber">203,205</context>+ <context context-type="linenumber">206,208</context></context-group></trans-unit><trans-unit id="1685061484835793745" datatype="html">@@ -4501,81 +4512,88 @@<context context-type="linenumber">7</context></context-group></trans-unit>+ <trans-unit id="2167862279705099846" datatype="html">+ <source>Auto: Learn matching automatically</source>+ <context-group purpose="location">+ <context context-type="sourcefile">src/app/data/matching-model.ts</context>+ <context context-type="linenumber">16</context>+ </context-group>+ </trans-unit><trans-unit id="5851669019930456395" datatype="html"><source>Any word</source><context-group purpose="location"><context context-type="sourcefile">src/app/data/matching-model.ts</context>- <context context-type="linenumber">14</context>+ <context context-type="linenumber">20</context></context-group></trans-unit><trans-unit id="7517655726614958140" datatype="html"><source>Any: Document contains any of these words (space separated)</source><context-group purpose="location"><context context-type="sourcefile">src/app/data/matching-model.ts</context>- <context context-type="linenumber">15</context>+ <context context-type="linenumber">21</context></context-group></trans-unit><trans-unit id="700315718208181326" datatype="html"><source>All words</source><context-group purpose="location"><context context-type="sourcefile">src/app/data/matching-model.ts</context>- <context context-type="linenumber">19</context>+ <context context-type="linenumber">25</context></context-group></trans-unit><trans-unit id="111914402588955480" datatype="html"><source>All: Document contains all of these words (space separated)</source><context-group purpose="location"><context context-type="sourcefile">src/app/data/matching-model.ts</context>- <context context-type="linenumber">20</context>+ <context context-type="linenumber">26</context></context-group></trans-unit><trans-unit id="9180173992399180575" datatype="html"><source>Exact match</source><context-group purpose="location"><context context-type="sourcefile">src/app/data/matching-model.ts</context>- <context context-type="linenumber">24</context>+ <context context-type="linenumber">30</context></context-group></trans-unit><trans-unit id="7109184332944610787" datatype="html"><source>Exact: Document contains this string</source><context-group purpose="location"><context context-type="sourcefile">src/app/data/matching-model.ts</context>- <context context-type="linenumber">25</context>+ <context context-type="linenumber">31</context></context-group></trans-unit><trans-unit id="1338733395833138319" datatype="html"><source>Regular expression</source><context-group purpose="location"><context context-type="sourcefile">src/app/data/matching-model.ts</context>- <context context-type="linenumber">29</context>+ <context context-type="linenumber">35</context></context-group></trans-unit><trans-unit id="7548151332424148033" datatype="html"><source>Regular expression: Document matches this regular expression</source><context-group purpose="location"><context context-type="sourcefile">src/app/data/matching-model.ts</context>- <context context-type="linenumber">30</context>+ <context context-type="linenumber">36</context></context-group></trans-unit><trans-unit id="1856513373880048959" datatype="html"><source>Fuzzy word</source><context-group purpose="location"><context context-type="sourcefile">src/app/data/matching-model.ts</context>- <context context-type="linenumber">34</context>+ <context context-type="linenumber">40</context></context-group></trans-unit><trans-unit id="8419167206585286450" datatype="html"><source>Fuzzy: Document contains a word similar to this word</source><context-group purpose="location"><context context-type="sourcefile">src/app/data/matching-model.ts</context>- <context context-type="linenumber">35</context>+ <context context-type="linenumber">41</context></context-group></trans-unit>- <trans-unit id="2167862279705099846" datatype="html">- <source>Auto: Learn matching automatically</source>+ <trans-unit id="8233576851457338601" datatype="html">+ <source>None: Disable matching</source><context-group purpose="location"><context context-type="sourcefile">src/app/data/matching-model.ts</context>- <context context-type="linenumber">40</context>+ <context context-type="linenumber">46</context></context-group></trans-unit><trans-unit id="5948496158474272829" datatype="html">diff --git a/src-ui/src/app/data/matching-model.ts b/src-ui/src/app/data/matching-model.tsindex dc2f8298d..a65cb9956 100644--- a/src-ui/src/app/data/matching-model.ts+++ b/src-ui/src/app/data/matching-model.ts@@ -1,4 +1,4 @@-import { ObjectWithPermissions } from './object-with-permissions'+import { ObjectWithId } from './object-with-id'export const MATCH_NONE = 0export const MATCH_ANY = 1@@ -11,9 +11,9 @@ export const DEFAULT_MATCHING_ALGORITHM = MATCH_AUTOexport const MATCHING_ALGORITHMS = [{- id: MATCH_NONE,- shortName: $localize`None`,- name: $localize`None: Disable matching`,+ id: MATCH_AUTO,+ shortName: $localize`Automatic`,+ name: $localize`Auto: Learn matching automatically`,},{id: MATCH_ANY,@@ -41,13 +41,13 @@ export const MATCHING_ALGORITHMS = [name: $localize`Fuzzy: Document contains a word similar to this word`,},{- id: MATCH_AUTO,- shortName: $localize`Automatic`,- name: $localize`Auto: Learn matching automatically`,+ id: MATCH_NONE,+ shortName: $localize`None`,+ name: $localize`None: Disable matching`,},]-export interface MatchingModel extends ObjectWithPermissions {+export interface MatchingModel extends ObjectWithId {name?: stringslug?: string