A community-supported supercharged document management system: scan, index and archive all your documents
Python aiangulararchivingdjangodmsdocument-managementdocument-management-systemllmmachine-learningocroptical-character-recognitionpdf
Enhancement: default to title/content search, allow choosing full search link from global search (#6805)
shamoon719f76060b04
diff --git a/src-ui/messages.xlf b/src-ui/messages.xlfindex 5edab40e9..37fecf495 100644--- a/src-ui/messages.xlf+++ b/src-ui/messages.xlf@@ -350,7 +350,7 @@</context-group><context-group purpose="location"><context context-type="sourcefile">src/app/components/admin/settings/settings.component.html</context>- <context context-type="linenumber">323</context>+ <context context-type="linenumber">339</context></context-group><context-group purpose="location"><context context-type="sourcefile">src/app/components/app-frame/app-frame.component.html</context>@@ -563,7 +563,7 @@</context-group><context-group purpose="location"><context context-type="sourcefile">src/app/components/admin/settings/settings.component.html</context>- <context context-type="linenumber">403</context>+ <context context-type="linenumber">419</context></context-group><context-group purpose="location"><context context-type="sourcefile">src/app/components/common/edit-dialog/correspondent-edit-dialog/correspondent-edit-dialog.component.html</context>@@ -705,7 +705,7 @@</context-group><context-group purpose="location"><context context-type="sourcefile">src/app/components/admin/settings/settings.component.html</context>- <context context-type="linenumber">391</context>+ <context context-type="linenumber">407</context></context-group><context-group purpose="location"><context context-type="sourcefile">src/app/components/admin/tasks/tasks.component.html</context>@@ -1025,21 +1025,50 @@</context-group><context-group purpose="location"><context context-type="sourcefile">src/app/components/app-frame/global-search/global-search.component.ts</context>- <context context-type="linenumber">93</context>+ <context context-type="linenumber">104</context></context-group></trans-unit>- <trans-unit id="1926290004382723170" datatype="html">- <source>Search database only (do not include advanced search results)</source>+ <trans-unit id="2818183879511244335" datatype="html">+ <source>Do not include advanced search results</source><context-group purpose="location"><context context-type="sourcefile">src/app/components/admin/settings/settings.component.html</context><context context-type="linenumber">204</context></context-group></trans-unit>+ <trans-unit id="3969258421469113318" datatype="html">+ <source>Full search links to</source>+ <context-group purpose="location">+ <context context-type="sourcefile">src/app/components/admin/settings/settings.component.html</context>+ <context context-type="linenumber">212</context>+ </context-group>+ </trans-unit>+ <trans-unit id="6631288852577115923" datatype="html">+ <source>Title and content search</source>+ <context-group purpose="location">+ <context context-type="sourcefile">src/app/components/admin/settings/settings.component.html</context>+ <context context-type="linenumber">216</context>+ </context-group>+ </trans-unit>+ <trans-unit id="1010505078885609376" datatype="html">+ <source>Advanced search</source>+ <context-group purpose="location">+ <context context-type="sourcefile">src/app/components/admin/settings/settings.component.html</context>+ <context context-type="linenumber">217</context>+ </context-group>+ <context-group purpose="location">+ <context context-type="sourcefile">src/app/components/app-frame/global-search/global-search.component.html</context>+ <context context-type="linenumber">24</context>+ </context-group>+ <context-group purpose="location">+ <context context-type="sourcefile">src/app/components/document-list/filter-editor/filter-editor.component.ts</context>+ <context context-type="linenumber">143</context>+ </context-group>+ </trans-unit><trans-unit id="8104421162933956065" datatype="html"><source>Notes</source><context-group purpose="location"><context context-type="sourcefile">src/app/components/admin/settings/settings.component.html</context>- <context context-type="linenumber">208</context>+ <context context-type="linenumber">224</context></context-group><context-group purpose="location"><context context-type="sourcefile">src/app/components/document-list/document-list.component.html</context>@@ -1058,14 +1087,14 @@<source>Enable notes</source><context-group purpose="location"><context context-type="sourcefile">src/app/components/admin/settings/settings.component.html</context>- <context context-type="linenumber">212</context>+ <context context-type="linenumber">228</context></context-group></trans-unit><trans-unit id="7314814725704332646" datatype="html"><source>Permissions</source><context-group purpose="location"><context context-type="sourcefile">src/app/components/admin/settings/settings.component.html</context>- <context context-type="linenumber">220</context>+ <context context-type="linenumber">236</context></context-group><context-group purpose="location"><context context-type="sourcefile">src/app/components/common/edit-dialog/group-edit-dialog/group-edit-dialog.component.html</context>@@ -1120,28 +1149,28 @@<source>Default Permissions</source><context-group purpose="location"><context context-type="sourcefile">src/app/components/admin/settings/settings.component.html</context>- <context context-type="linenumber">223</context>+ <context context-type="linenumber">239</context></context-group></trans-unit><trans-unit id="8222269449891326545" datatype="html"><source> Settings apply to this user account for objects (Tags, Mail Rules, etc.) created via the web UI </source><context-group purpose="location"><context context-type="sourcefile">src/app/components/admin/settings/settings.component.html</context>- <context context-type="linenumber">227,229</context>+ <context context-type="linenumber">243,245</context></context-group></trans-unit><trans-unit id="4292903881380648974" datatype="html"><source>Default Owner</source><context-group purpose="location"><context context-type="sourcefile">src/app/components/admin/settings/settings.component.html</context>- <context context-type="linenumber">234</context>+ <context context-type="linenumber">250</context></context-group></trans-unit><trans-unit id="734147282056744882" datatype="html"><source>Objects without an owner can be viewed and edited by all users</source><context-group purpose="location"><context context-type="sourcefile">src/app/components/admin/settings/settings.component.html</context>- <context context-type="linenumber">238</context>+ <context context-type="linenumber">254</context></context-group><context-group purpose="location"><context context-type="sourcefile">src/app/components/common/input/permissions/permissions-form/permissions-form.component.html</context>@@ -1152,18 +1181,18 @@<source>Default View Permissions</source><context-group purpose="location"><context context-type="sourcefile">src/app/components/admin/settings/settings.component.html</context>- <context context-type="linenumber">243</context>+ <context context-type="linenumber">259</context></context-group></trans-unit><trans-unit id="2191775412581217688" datatype="html"><source>Users:</source><context-group purpose="location"><context context-type="sourcefile">src/app/components/admin/settings/settings.component.html</context>- <context context-type="linenumber">248</context>+ <context context-type="linenumber">264</context></context-group><context-group purpose="location"><context context-type="sourcefile">src/app/components/admin/settings/settings.component.html</context>- <context context-type="linenumber">275</context>+ <context context-type="linenumber">291</context></context-group><context-group purpose="location"><context context-type="sourcefile">src/app/components/common/edit-dialog/workflow-edit-dialog/workflow-edit-dialog.component.html</context>@@ -1194,11 +1223,11 @@<source>Groups:</source><context-group purpose="location"><context context-type="sourcefile">src/app/components/admin/settings/settings.component.html</context>- <context context-type="linenumber">258</context>+ <context context-type="linenumber">274</context></context-group><context-group purpose="location"><context context-type="sourcefile">src/app/components/admin/settings/settings.component.html</context>- <context context-type="linenumber">285</context>+ <context context-type="linenumber">301</context></context-group><context-group purpose="location"><context context-type="sourcefile">src/app/components/common/edit-dialog/workflow-edit-dialog/workflow-edit-dialog.component.html</context>@@ -1229,14 +1258,14 @@<source>Default Edit Permissions</source><context-group purpose="location"><context context-type="sourcefile">src/app/components/admin/settings/settings.component.html</context>- <context context-type="linenumber">270</context>+ <context context-type="linenumber">286</context></context-group></trans-unit><trans-unit id="3728984448750213892" datatype="html"><source>Edit permissions also grant viewing permissions</source><context-group purpose="location"><context context-type="sourcefile">src/app/components/admin/settings/settings.component.html</context>- <context context-type="linenumber">294</context>+ <context context-type="linenumber">310</context></context-group><context-group purpose="location"><context context-type="sourcefile">src/app/components/common/edit-dialog/workflow-edit-dialog/workflow-edit-dialog.component.html</context>@@ -1255,56 +1284,56 @@<source>Notifications</source><context-group purpose="location"><context context-type="sourcefile">src/app/components/admin/settings/settings.component.html</context>- <context context-type="linenumber">302</context>+ <context context-type="linenumber">318</context></context-group></trans-unit><trans-unit id="8545554728558600606" datatype="html"><source>Document processing</source><context-group purpose="location"><context context-type="sourcefile">src/app/components/admin/settings/settings.component.html</context>- <context context-type="linenumber">305</context>+ <context context-type="linenumber">321</context></context-group></trans-unit><trans-unit id="3656786776644872398" datatype="html"><source>Show notifications when new documents are detected</source><context-group purpose="location"><context context-type="sourcefile">src/app/components/admin/settings/settings.component.html</context>- <context context-type="linenumber">309</context>+ <context context-type="linenumber">325</context></context-group></trans-unit><trans-unit id="6057053428592387613" datatype="html"><source>Show notifications when document processing completes successfully</source><context-group purpose="location"><context context-type="sourcefile">src/app/components/admin/settings/settings.component.html</context>- <context context-type="linenumber">310</context>+ <context context-type="linenumber">326</context></context-group></trans-unit><trans-unit id="370315664367425513" datatype="html"><source>Show notifications when document processing fails</source><context-group purpose="location"><context context-type="sourcefile">src/app/components/admin/settings/settings.component.html</context>- <context context-type="linenumber">311</context>+ <context context-type="linenumber">327</context></context-group></trans-unit><trans-unit id="6838309441164918531" datatype="html"><source>Suppress notifications on dashboard</source><context-group purpose="location"><context context-type="sourcefile">src/app/components/admin/settings/settings.component.html</context>- <context context-type="linenumber">312</context>+ <context context-type="linenumber">328</context></context-group></trans-unit><trans-unit id="2741919327232918179" datatype="html"><source>This will suppress all messages about document processing status on the dashboard.</source><context-group purpose="location"><context context-type="sourcefile">src/app/components/admin/settings/settings.component.html</context>- <context context-type="linenumber">312</context>+ <context context-type="linenumber">328</context></context-group></trans-unit><trans-unit id="472206565520537964" datatype="html"><source>Saved views</source><context-group purpose="location"><context context-type="sourcefile">src/app/components/admin/settings/settings.component.html</context>- <context context-type="linenumber">320</context>+ <context context-type="linenumber">336</context></context-group><context-group purpose="location"><context context-type="sourcefile">src/app/components/app-frame/app-frame.component.html</context>@@ -1315,14 +1344,14 @@<source>Show warning when closing saved views with unsaved changes</source><context-group purpose="location"><context context-type="sourcefile">src/app/components/admin/settings/settings.component.html</context>- <context context-type="linenumber">326</context>+ <context context-type="linenumber">342</context></context-group></trans-unit><trans-unit id="2123659921722214537" datatype="html"><source>Views</source><context-group purpose="location"><context context-type="sourcefile">src/app/components/admin/settings/settings.component.html</context>- <context context-type="linenumber">330</context>+ <context context-type="linenumber">346</context></context-group><context-group purpose="location"><context context-type="sourcefile">src/app/components/document-list/document-list.component.html</context>@@ -1333,7 +1362,7 @@<source>Show on dashboard</source><context-group purpose="location"><context context-type="sourcefile">src/app/components/admin/settings/settings.component.html</context>- <context context-type="linenumber">343</context>+ <context context-type="linenumber">359</context></context-group><context-group purpose="location"><context context-type="sourcefile">src/app/components/document-list/save-view-config-dialog/save-view-config-dialog.component.html</context>@@ -1344,7 +1373,7 @@<source>Show in sidebar</source><context-group purpose="location"><context context-type="sourcefile">src/app/components/admin/settings/settings.component.html</context>- <context context-type="linenumber">347</context>+ <context context-type="linenumber">363</context></context-group><context-group purpose="location"><context context-type="sourcefile">src/app/components/document-list/save-view-config-dialog/save-view-config-dialog.component.html</context>@@ -1355,7 +1384,7 @@<source>Actions</source><context-group purpose="location"><context context-type="sourcefile">src/app/components/admin/settings/settings.component.html</context>- <context context-type="linenumber">351</context>+ <context context-type="linenumber">367</context></context-group><context-group purpose="location"><context context-type="sourcefile">src/app/components/admin/tasks/tasks.component.html</context>@@ -1418,7 +1447,7 @@<source>Delete</source><context-group purpose="location"><context context-type="sourcefile">src/app/components/admin/settings/settings.component.html</context>- <context context-type="linenumber">353</context>+ <context context-type="linenumber">369</context></context-group><context-group purpose="location"><context context-type="sourcefile">src/app/components/admin/users-groups/users-groups.component.html</context>@@ -1529,42 +1558,42 @@<source>Documents page size</source><context-group purpose="location"><context context-type="sourcefile">src/app/components/admin/settings/settings.component.html</context>- <context context-type="linenumber">364</context>+ <context context-type="linenumber">380</context></context-group></trans-unit><trans-unit id="4729108320774167624" datatype="html"><source>Display as</source><context-group purpose="location"><context context-type="sourcefile">src/app/components/admin/settings/settings.component.html</context>- <context context-type="linenumber">367</context>+ <context context-type="linenumber">383</context></context-group></trans-unit><trans-unit id="1358239534403218079" datatype="html"><source>Table</source><context-group purpose="location"><context context-type="sourcefile">src/app/components/admin/settings/settings.component.html</context>- <context context-type="linenumber">369</context>+ <context context-type="linenumber">385</context></context-group></trans-unit><trans-unit id="4236040382842528005" datatype="html"><source>Small Cards</source><context-group purpose="location"><context context-type="sourcefile">src/app/components/admin/settings/settings.component.html</context>- <context context-type="linenumber">370</context>+ <context context-type="linenumber">386</context></context-group></trans-unit><trans-unit id="8569593958139569111" datatype="html"><source>Large Cards</source><context-group purpose="location"><context context-type="sourcefile">src/app/components/admin/settings/settings.component.html</context>- <context context-type="linenumber">371</context>+ <context context-type="linenumber">387</context></context-group></trans-unit><trans-unit id="8461842260159597706" datatype="html"><source>Show</source><context-group purpose="location"><context context-type="sourcefile">src/app/components/admin/settings/settings.component.html</context>- <context context-type="linenumber">375</context>+ <context context-type="linenumber">391</context></context-group><context-group purpose="location"><context context-type="sourcefile">src/app/components/document-list/document-list.component.html</context>@@ -1575,7 +1604,7 @@<source>Default</source><context-group purpose="location"><context context-type="sourcefile">src/app/components/admin/settings/settings.component.html</context>- <context context-type="linenumber">375</context>+ <context context-type="linenumber">391</context></context-group><context-group purpose="location"><context context-type="sourcefile">src/app/components/document-detail/document-detail.component.html</context>@@ -1586,14 +1615,14 @@<source>No saved views defined.</source><context-group purpose="location"><context context-type="sourcefile">src/app/components/admin/settings/settings.component.html</context>- <context context-type="linenumber">384</context>+ <context context-type="linenumber">400</context></context-group></trans-unit><trans-unit id="2159130950882492111" datatype="html"><source>Cancel</source><context-group purpose="location"><context context-type="sourcefile">src/app/components/admin/settings/settings.component.html</context>- <context context-type="linenumber">404</context>+ <context context-type="linenumber">420</context></context-group><context-group purpose="location"><context context-type="sourcefile">src/app/components/common/confirm-dialog/confirm-dialog.component.ts</context>@@ -1678,7 +1707,7 @@<source>Error retrieving users</source><context-group purpose="location"><context context-type="sourcefile">src/app/components/admin/settings/settings.component.ts</context>- <context context-type="linenumber">189</context>+ <context context-type="linenumber">192</context></context-group><context-group purpose="location"><context context-type="sourcefile">src/app/components/admin/users-groups/users-groups.component.ts</context>@@ -1689,7 +1718,7 @@<source>Error retrieving groups</source><context-group purpose="location"><context context-type="sourcefile">src/app/components/admin/settings/settings.component.ts</context>- <context context-type="linenumber">208</context>+ <context context-type="linenumber">211</context></context-group><context-group purpose="location"><context context-type="sourcefile">src/app/components/admin/users-groups/users-groups.component.ts</context>@@ -1700,35 +1729,35 @@<source>Saved view "<x id="PH" equiv-text="savedView.name"/>" deleted.</source><context-group purpose="location"><context context-type="sourcefile">src/app/components/admin/settings/settings.component.ts</context>- <context context-type="linenumber">423</context>+ <context context-type="linenumber">427</context></context-group></trans-unit><trans-unit id="7217000812750597833" datatype="html"><source>Settings were saved successfully.</source><context-group purpose="location"><context context-type="sourcefile">src/app/components/admin/settings/settings.component.ts</context>- <context context-type="linenumber">553</context>+ <context context-type="linenumber">561</context></context-group></trans-unit><trans-unit id="525012668859298131" datatype="html"><source>Settings were saved successfully. Reload is required to apply some changes.</source><context-group purpose="location"><context context-type="sourcefile">src/app/components/admin/settings/settings.component.ts</context>- <context context-type="linenumber">557</context>+ <context context-type="linenumber">565</context></context-group></trans-unit><trans-unit id="8491974984518503778" datatype="html"><source>Reload now</source><context-group purpose="location"><context context-type="sourcefile">src/app/components/admin/settings/settings.component.ts</context>- <context context-type="linenumber">558</context>+ <context context-type="linenumber">566</context></context-group></trans-unit><trans-unit id="3011185103048412841" datatype="html"><source>An error occurred while saving settings.</source><context-group purpose="location"><context context-type="sourcefile">src/app/components/admin/settings/settings.component.ts</context>- <context context-type="linenumber">568</context>+ <context context-type="linenumber">576</context></context-group><context-group purpose="location"><context context-type="sourcefile">src/app/components/app-frame/app-frame.component.ts</context>@@ -1739,7 +1768,7 @@<source>Error while storing settings on server.</source><context-group purpose="location"><context context-type="sourcefile">src/app/components/admin/settings/settings.component.ts</context>- <context context-type="linenumber">602</context>+ <context context-type="linenumber">610</context></context-group></trans-unit><trans-unit id="2991443309752293110" datatype="html">@@ -2125,11 +2154,11 @@</context-group><context-group purpose="location"><context context-type="sourcefile">src/app/components/app-frame/global-search/global-search.component.html</context>- <context context-type="linenumber">55</context>+ <context context-type="linenumber">59</context></context-group><context-group purpose="location"><context context-type="sourcefile">src/app/components/app-frame/global-search/global-search.component.html</context>- <context context-type="linenumber">72</context>+ <context context-type="linenumber">76</context></context-group><context-group purpose="location"><context context-type="sourcefile">src/app/components/common/input/permissions/permissions-form/permissions-form.component.html</context>@@ -2683,41 +2712,34 @@<context context-type="sourcefile">src/app/components/app-frame/global-search/global-search.component.html</context><context context-type="linenumber">8</context></context-group>- </trans-unit>- <trans-unit id="1010505078885609376" datatype="html">- <source>Advanced search</source><context-group purpose="location"><context context-type="sourcefile">src/app/components/app-frame/global-search/global-search.component.html</context>- <context context-type="linenumber">23</context>- </context-group>- <context-group purpose="location">- <context context-type="sourcefile">src/app/components/document-list/filter-editor/filter-editor.component.ts</context>- <context context-type="linenumber">143</context>+ <context context-type="linenumber">26</context></context-group></trans-unit><trans-unit id="7593555694782789615" datatype="html"><source>Open</source><context-group purpose="location"><context context-type="sourcefile">src/app/components/app-frame/global-search/global-search.component.html</context>- <context context-type="linenumber">49</context>+ <context context-type="linenumber">53</context></context-group><context-group purpose="location"><context context-type="sourcefile">src/app/components/app-frame/global-search/global-search.component.html</context>- <context context-type="linenumber">52</context>+ <context context-type="linenumber">56</context></context-group></trans-unit><trans-unit id="6329940072345709724" datatype="html"><source>Filter documents</source><context-group purpose="location"><context context-type="sourcefile">src/app/components/app-frame/global-search/global-search.component.html</context>- <context context-type="linenumber">58</context>+ <context context-type="linenumber">62</context></context-group></trans-unit><trans-unit id="3099741642167775297" datatype="html"><source>Download</source><context-group purpose="location"><context context-type="sourcefile">src/app/components/app-frame/global-search/global-search.component.html</context>- <context context-type="linenumber">69</context>+ <context context-type="linenumber">73</context></context-group><context-group purpose="location"><context context-type="sourcefile">src/app/components/dashboard/widgets/saved-view-widget/saved-view-widget.component.html</context>@@ -2744,113 +2766,113 @@<source>No results</source><context-group purpose="location"><context context-type="sourcefile">src/app/components/app-frame/global-search/global-search.component.html</context>- <context context-type="linenumber">83</context>+ <context context-type="linenumber">87</context></context-group></trans-unit><trans-unit id="searchResults.documents" datatype="html"><source>Documents</source><context-group purpose="location"><context context-type="sourcefile">src/app/components/app-frame/global-search/global-search.component.html</context>- <context context-type="linenumber">86</context>+ <context context-type="linenumber">90</context></context-group></trans-unit><trans-unit id="searchResults.saved_views" datatype="html"><source>Saved Views</source><context-group purpose="location"><context context-type="sourcefile">src/app/components/app-frame/global-search/global-search.component.html</context>- <context context-type="linenumber">92</context>+ <context context-type="linenumber">96</context></context-group></trans-unit><trans-unit id="searchResults.tags" datatype="html"><source>Tags</source><context-group purpose="location"><context context-type="sourcefile">src/app/components/app-frame/global-search/global-search.component.html</context>- <context context-type="linenumber">99</context>+ <context context-type="linenumber">103</context></context-group></trans-unit><trans-unit id="searchResults.correspondents" datatype="html"><source>Correspondents</source><context-group purpose="location"><context context-type="sourcefile">src/app/components/app-frame/global-search/global-search.component.html</context>- <context context-type="linenumber">106</context>+ <context context-type="linenumber">110</context></context-group></trans-unit><trans-unit id="searchResults.documentTypes" datatype="html"><source>Document types</source><context-group purpose="location"><context context-type="sourcefile">src/app/components/app-frame/global-search/global-search.component.html</context>- <context context-type="linenumber">113</context>+ <context context-type="linenumber">117</context></context-group></trans-unit><trans-unit id="searchResults.storagePaths" datatype="html"><source>Storage paths</source><context-group purpose="location"><context context-type="sourcefile">src/app/components/app-frame/global-search/global-search.component.html</context>- <context context-type="linenumber">120</context>+ <context context-type="linenumber">124</context></context-group></trans-unit><trans-unit id="searchResults.users" datatype="html"><source>Users</source><context-group purpose="location"><context context-type="sourcefile">src/app/components/app-frame/global-search/global-search.component.html</context>- <context context-type="linenumber">127</context>+ <context context-type="linenumber">131</context></context-group></trans-unit><trans-unit id="searchResults.groups" datatype="html"><source>Groups</source><context-group purpose="location"><context context-type="sourcefile">src/app/components/app-frame/global-search/global-search.component.html</context>- <context context-type="linenumber">134</context>+ <context context-type="linenumber">138</context></context-group></trans-unit><trans-unit id="searchResults.customFields" datatype="html"><source>Custom fields</source><context-group purpose="location"><context context-type="sourcefile">src/app/components/app-frame/global-search/global-search.component.html</context>- <context context-type="linenumber">141</context>+ <context context-type="linenumber">145</context></context-group></trans-unit><trans-unit id="searchResults.mailAccounts" datatype="html"><source>Mail accounts</source><context-group purpose="location"><context context-type="sourcefile">src/app/components/app-frame/global-search/global-search.component.html</context>- <context context-type="linenumber">148</context>+ <context context-type="linenumber">152</context></context-group></trans-unit><trans-unit id="searchResults.mailRules" datatype="html"><source>Mail rules</source><context-group purpose="location"><context context-type="sourcefile">src/app/components/app-frame/global-search/global-search.component.html</context>- <context context-type="linenumber">155</context>+ <context context-type="linenumber">159</context></context-group></trans-unit><trans-unit id="searchResults.workflows" datatype="html"><source>Workflows</source><context-group purpose="location"><context context-type="sourcefile">src/app/components/app-frame/global-search/global-search.component.html</context>- <context context-type="linenumber">162</context>+ <context context-type="linenumber">166</context></context-group></trans-unit><trans-unit id="83507137894716798" datatype="html"><source>Successfully updated object.</source><context-group purpose="location"><context context-type="sourcefile">src/app/components/app-frame/global-search/global-search.component.ts</context>- <context context-type="linenumber">182</context>+ <context context-type="linenumber">193</context></context-group><context-group purpose="location"><context context-type="sourcefile">src/app/components/app-frame/global-search/global-search.component.ts</context>- <context context-type="linenumber">220</context>+ <context context-type="linenumber">231</context></context-group></trans-unit><trans-unit id="1801333259018423190" datatype="html"><source>Error occurred saving object.</source><context-group purpose="location"><context context-type="sourcefile">src/app/components/app-frame/global-search/global-search.component.ts</context>- <context context-type="linenumber">185</context>+ <context context-type="linenumber">196</context></context-group><context-group purpose="location"><context context-type="sourcefile">src/app/components/app-frame/global-search/global-search.component.ts</context>- <context context-type="linenumber">223</context>+ <context context-type="linenumber">234</context></context-group></trans-unit><trans-unit id="8700121026680200191" datatype="html">diff --git a/src-ui/src/app/components/admin/settings/settings.component.html b/src-ui/src/app/components/admin/settings/settings.component.htmlindex 87d7ba68a..bcab7de33 100644--- a/src-ui/src/app/components/admin/settings/settings.component.html+++ b/src-ui/src/app/components/admin/settings/settings.component.html@@ -201,7 +201,23 @@<div class="row mb-3"><div class="offset-md-3 col">- <pngx-input-check i18n-title title="Search database only (do not include advanced search results)" formControlName="searchDbOnly"></pngx-input-check>+ <pngx-input-check i18n-title title="Do not include advanced search results" formControlName="searchDbOnly"></pngx-input-check>+ </div>+ </div>++ <div class="row mb-3">+ <div class="offset-md-3 col">+ <div class="row">+ <div class="col-md-2 col-form-label pt-0">+ <span i18n>Full search links to</span>+ </div>+ <div class="col">+ <select class="form-select" formControlName="searchLink">+ <option [ngValue]="GlobalSearchType.TITLE_CONTENT" i18n>Title and content search</option>+ <option [ngValue]="GlobalSearchType.ADVANCED" i18n>Advanced search</option>+ </select>+ </div>+ </div></div></div>diff --git a/src-ui/src/app/components/admin/settings/settings.component.spec.ts b/src-ui/src/app/components/admin/settings/settings.component.spec.tsindex 71778d394..47581ddba 100644--- a/src-ui/src/app/components/admin/settings/settings.component.spec.ts+++ b/src-ui/src/app/components/admin/settings/settings.component.spec.ts@@ -309,7 +309,7 @@ describe('SettingsComponent', () => {expect(toastErrorSpy).toHaveBeenCalled()expect(storeSpy).toHaveBeenCalled()expect(appearanceSettingsSpy).not.toHaveBeenCalled()- expect(setSpy).toHaveBeenCalledTimes(26)+ expect(setSpy).toHaveBeenCalledTimes(27)// succeedstoreSpy.mockReturnValueOnce(of(true))diff --git a/src-ui/src/app/components/admin/settings/settings.component.ts b/src-ui/src/app/components/admin/settings/settings.component.tsindex 036f27f48..fcb7d7c65 100644--- a/src-ui/src/app/components/admin/settings/settings.component.ts+++ b/src-ui/src/app/components/admin/settings/settings.component.ts@@ -27,7 +27,7 @@ import {} from 'rxjs'import { Group } from 'src/app/data/group'import { SavedView } from 'src/app/data/saved-view'-import { SETTINGS_KEYS } from 'src/app/data/ui-settings'+import { GlobalSearchType, SETTINGS_KEYS } from 'src/app/data/ui-settings'import { User } from 'src/app/data/user'import { DocumentListViewService } from 'src/app/services/document-list-view.service'import {@@ -101,6 +101,7 @@ export class SettingsComponentdefaultPermsEditGroups: new FormControl(null),documentEditingRemoveInboxTags: new FormControl(null),searchDbOnly: new FormControl(null),+ searchLink: new FormControl(null),notificationsConsumerNewDocument: new FormControl(null),notificationsConsumerSuccess: new FormControl(null),@@ -129,6 +130,8 @@ export class SettingsComponentpublic systemStatus: SystemStatus+ public readonly GlobalSearchType = GlobalSearchType+get systemStatusHasErrors(): boolean {return (this.systemStatus.database.status === SystemStatusItemStatus.ERROR ||@@ -306,6 +309,7 @@ export class SettingsComponentSETTINGS_KEYS.DOCUMENT_EDITING_REMOVE_INBOX_TAGS),searchDbOnly: this.settings.get(SETTINGS_KEYS.SEARCH_DB_ONLY),+ searchLink: this.settings.get(SETTINGS_KEYS.SEARCH_FULL_TYPE),savedViews: {},}}@@ -539,6 +543,10 @@ export class SettingsComponentSETTINGS_KEYS.SEARCH_DB_ONLY,this.settingsForm.value.searchDbOnly)+ this.settings.set(+ SETTINGS_KEYS.SEARCH_FULL_TYPE,+ this.settingsForm.value.searchLink+ )this.settings.setLanguage(this.settingsForm.value.displayLanguage)this.settings.storeSettings()diff --git a/src-ui/src/app/components/app-frame/global-search/global-search.component.html b/src-ui/src/app/components/app-frame/global-search/global-search.component.htmlindex eeb118967..1e51dc1b6 100644--- a/src-ui/src/app/components/app-frame/global-search/global-search.component.html+++ b/src-ui/src/app/components/app-frame/global-search/global-search.component.html@@ -19,8 +19,12 @@</div></div>@if (query) {- <button class="btn btn-sm btn-outline-secondary" type="button" (click)="runAdvanedSearch()">- <ng-container i18n>Advanced search</ng-container>+ <button class="btn btn-sm btn-outline-secondary" type="button" (click)="runFullSearch()">+ @if (useAdvancedForFullSearch) {+ <ng-container i18n>Advanced search</ng-container>+ } @else {+ <ng-container i18n>Search</ng-container>+ }<i-bs width="1em" height="1em" name="arrow-right-short"></i-bs></button>}diff --git a/src-ui/src/app/components/app-frame/global-search/global-search.component.spec.ts b/src-ui/src/app/components/app-frame/global-search/global-search.component.spec.tsindex 076fa95d1..f2a1ac3a6 100644--- a/src-ui/src/app/components/app-frame/global-search/global-search.component.spec.ts+++ b/src-ui/src/app/components/app-frame/global-search/global-search.component.spec.ts@@ -25,6 +25,7 @@ import {FILTER_HAS_DOCUMENT_TYPE_ANY,FILTER_HAS_STORAGE_PATH_ANY,FILTER_HAS_TAGS_ALL,+ FILTER_TITLE_CONTENT,} from 'src/app/data/filter-rule-type'import { NgxBootstrapIconsModule, allIcons } from 'ngx-bootstrap-icons'import { DocumentService } from 'src/app/services/rest/document.service'@@ -37,6 +38,8 @@ import { ElementRef } from '@angular/core'import { ToastService } from 'src/app/services/toast.service'import { DataType } from 'src/app/data/datatype'import { queryParamsFromFilterRules } from 'src/app/utils/query-params'+import { SettingsService } from 'src/app/services/settings.service'+import { GlobalSearchType, SETTINGS_KEYS } from 'src/app/data/ui-settings'const searchResults = {total: 11,@@ -130,6 +133,7 @@ describe('GlobalSearchComponent', () => {let documentService: DocumentServicelet documentListViewService: DocumentListViewServicelet toastService: ToastService+ let settingsService: SettingsServicebeforeEach(async () => {await TestBed.configureTestingModule({@@ -150,6 +154,7 @@ describe('GlobalSearchComponent', () => {documentService = TestBed.inject(DocumentService)documentListViewService = TestBed.inject(DocumentListViewService)toastService = TestBed.inject(ToastService)+ settingsService = TestBed.inject(SettingsService)fixture = TestBed.createComponent(GlobalSearchComponent)component = fixture.componentInstance@@ -262,7 +267,7 @@ describe('GlobalSearchComponent', () => {component.searchResults = searchResults as anycomponent.resultsDropdown.open()component.query = 'test'- const advancedSearchSpy = jest.spyOn(component, 'runAdvanedSearch')+ const advancedSearchSpy = jest.spyOn(component, 'runFullSearch')component.searchInputKeyDown(new KeyboardEvent('keydown', { key: 'Enter' }))expect(advancedSearchSpy).toHaveBeenCalled()})@@ -499,15 +504,6 @@ describe('GlobalSearchComponent', () => {expect(focusSpy).toHaveBeenCalled()})- it('should support explicit advanced search', () => {- const qfSpy = jest.spyOn(documentListViewService, 'quickFilter')- component.query = 'test'- component.runAdvanedSearch()- expect(qfSpy).toHaveBeenCalledWith([- { rule_type: FILTER_FULLTEXT_QUERY, value: 'test' },- ])- })-it('should support open in new window', () => {const openSpy = jest.spyOn(window, 'open')const event = new Event('click')@@ -528,4 +524,23 @@ describe('GlobalSearchComponent', () => {button.dispatchEvent(keyboardEvent)expect(dispatchSpy).toHaveBeenCalledTimes(2) // once for keydown, second for click})++ it('should support title content search and advanced search', () => {+ const qfSpy = jest.spyOn(documentListViewService, 'quickFilter')+ component.query = 'test'+ component.runFullSearch()+ expect(qfSpy).toHaveBeenCalledWith([+ { rule_type: FILTER_TITLE_CONTENT, value: 'test' },+ ])++ settingsService.set(+ SETTINGS_KEYS.SEARCH_FULL_TYPE,+ GlobalSearchType.ADVANCED+ )+ component.query = 'test'+ component.runFullSearch()+ expect(qfSpy).toHaveBeenCalledWith([+ { rule_type: FILTER_FULLTEXT_QUERY, value: 'test' },+ ])+ })})diff --git a/src-ui/src/app/components/app-frame/global-search/global-search.component.ts b/src-ui/src/app/components/app-frame/global-search/global-search.component.tsindex 2742ff59a..dda1bc5f3 100644--- a/src-ui/src/app/components/app-frame/global-search/global-search.component.ts+++ b/src-ui/src/app/components/app-frame/global-search/global-search.component.ts@@ -15,6 +15,7 @@ import {FILTER_HAS_DOCUMENT_TYPE_ANY,FILTER_HAS_STORAGE_PATH_ANY,FILTER_HAS_TAGS_ALL,+ FILTER_TITLE_CONTENT,} from 'src/app/data/filter-rule-type'import { DataType } from 'src/app/data/datatype'import { ObjectWithId } from 'src/app/data/object-with-id'@@ -42,6 +43,8 @@ import { UserEditDialogComponent } from '../../common/edit-dialog/user-edit-dialimport { WorkflowEditDialogComponent } from '../../common/edit-dialog/workflow-edit-dialog/workflow-edit-dialog.component'import { HotKeyService } from 'src/app/services/hot-key.service'import { paramsFromViewState } from 'src/app/utils/query-params'+import { SettingsService } from 'src/app/services/settings.service'+import { GlobalSearchType, SETTINGS_KEYS } from 'src/app/data/ui-settings'@Component({selector: 'pngx-global-search',@@ -63,6 +66,13 @@ export class GlobalSearchComponent implements OnInit {@ViewChildren('primaryButton') primaryButtons: QueryList<ElementRef>@ViewChildren('secondaryButton') secondaryButtons: QueryList<ElementRef>+ get useAdvancedForFullSearch(): boolean {+ return (+ this.settingsService.get(SETTINGS_KEYS.SEARCH_FULL_TYPE) ===+ GlobalSearchType.ADVANCED+ )+ }+constructor(public searchService: SearchService,private router: Router,@@ -71,7 +81,8 @@ export class GlobalSearchComponent implements OnInit {private documentListViewService: DocumentListViewService,private permissionsService: PermissionsService,private toastService: ToastService,- private hotkeyService: HotKeyService+ private hotkeyService: HotKeyService,+ private settingsService: SettingsService) {this.queryDebounce = new Subject<string>()@@ -282,7 +293,7 @@ export class GlobalSearchComponent implements OnInit {this.primaryButtons.first.nativeElement.click()this.searchInput.nativeElement.blur()} else if (this.query?.length) {- this.runAdvanedSearch()+ this.runFullSearch()this.reset(true)}} else if (event.key === 'Escape' && !this.resultsDropdown.isOpen()) {@@ -378,9 +389,12 @@ export class GlobalSearchComponent implements OnInit {)}- public runAdvanedSearch() {+ public runFullSearch() {+ const ruleType = this.useAdvancedForFullSearch+ ? FILTER_FULLTEXT_QUERY+ : FILTER_TITLE_CONTENTthis.documentListViewService.quickFilter([- { rule_type: FILTER_FULLTEXT_QUERY, value: this.query },+ { rule_type: ruleType, value: this.query },])this.reset(true)}diff --git a/src-ui/src/app/data/ui-settings.ts b/src-ui/src/app/data/ui-settings.tsindex 6f8f246ff..29ea08786 100644--- a/src-ui/src/app/data/ui-settings.ts+++ b/src-ui/src/app/data/ui-settings.ts@@ -12,6 +12,11 @@ export interface UiSetting {default: any}+export enum GlobalSearchType {+ ADVANCED = 'advanced',+ TITLE_CONTENT = 'title-content',+}+export const SETTINGS_KEYS = {LANGUAGE: 'language',APP_LOGO: 'app_logo',@@ -57,6 +62,7 @@ export const SETTINGS_KEYS = {DOCUMENT_EDITING_REMOVE_INBOX_TAGS:'general-settings:document-editing:remove-inbox-tags',SEARCH_DB_ONLY: 'general-settings:search:db-only',+ SEARCH_FULL_TYPE: 'general-settings:search:more-link',}export const SETTINGS: UiSetting[] = [@@ -225,4 +231,9 @@ export const SETTINGS: UiSetting[] = [type: 'boolean',default: false,},+ {+ key: SETTINGS_KEYS.SEARCH_FULL_TYPE,+ type: 'string',+ default: GlobalSearchType.TITLE_CONTENT,+ },]