Работа над расширенным поиском

This commit is contained in:
Book Pauk
2022-12-07 18:27:11 +07:00
parent 3a26a12807
commit a965032b08
3 changed files with 30 additions and 27 deletions

View File

@@ -81,7 +81,7 @@
</div>
<div v-show="showJson && mode == 'extended'">
<pre style="font-size: 80%">{{ book }}</pre>
<pre style="font-size: 80%; white-space: pre-wrap;">{{ book }}</pre>
</div>
</div>
</div>

View File

@@ -395,6 +395,8 @@ const componentOptions = {
if (this.getListRoute() != newValue) {
this.updateRouteQueryFromSearch();
}
this.makeTitle();
},
searchDate() {
this.updateSearchDate(false);
@@ -670,6 +672,7 @@ class Search {
let result = `Коллекция ${this.collection}`;
if (!this.isExtendedSearch) {
const search = this.search;
const specSym = new Set(['*', '#']);
const correctValue = (v) => {
@@ -695,6 +698,9 @@ class Search {
result = [s, t].filter(v => v).join(' ');
result = [a, result].filter(v => v).join(' ');
}
} else {
result = this.extSearchNames;
}
this.$root.setAppTitle(result);
if (this.list.liberamaReady)

View File

@@ -151,15 +151,12 @@ class SelectExtSearchDialog {
<li>
без префикса: значение трактуется, как "начинается с"
</li>
<br>
<li>
префикс "=": поиск по точному совпадению
</li>
<br>
<li>
префикс "*": поиск подстроки в строке
</li>
<br>
<li>
префикс "#": поиск подстроки в строке, но только среди начинающихся не с латинского или кириллического символа
</li>