This commit is contained in:
@@ -26,6 +26,7 @@ import org.w3c.dom.Element;
|
|||||||
import org.w3c.dom.NodeList;
|
import org.w3c.dom.NodeList;
|
||||||
|
|
||||||
import javax.xml.parsers.DocumentBuilder;
|
import javax.xml.parsers.DocumentBuilder;
|
||||||
|
import javax.xml.parsers.DocumentBuilderFactory;
|
||||||
import javax.xml.parsers.ParserConfigurationException;
|
import javax.xml.parsers.ParserConfigurationException;
|
||||||
import java.io.*;
|
import java.io.*;
|
||||||
import java.nio.charset.Charset;
|
import java.nio.charset.Charset;
|
||||||
|
|||||||
+2
-2
@@ -249,7 +249,7 @@ export class BookBrowserQueryParamsService {
|
|||||||
|
|
||||||
serializeFilters(filters: Record<string, string[]>): string {
|
serializeFilters(filters: Record<string, string[]>): string {
|
||||||
return Object.entries(filters)
|
return Object.entries(filters)
|
||||||
.map(([k, v]) => `${k}:${v.join('|')}`)
|
.map(([k, v]) => `${k}:${v.map(val => encodeURIComponent(val)).join('|')}`)
|
||||||
.join(',');
|
.join(',');
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -262,7 +262,7 @@ export class BookBrowserQueryParamsService {
|
|||||||
const [key, ...valueParts] = pair.split(':');
|
const [key, ...valueParts] = pair.split(':');
|
||||||
const value = valueParts.join(':');
|
const value = valueParts.join(':');
|
||||||
if (key && value) {
|
if (key && value) {
|
||||||
parsedFilters[key] = value.split('|').map(v => v.trim()).filter(Boolean);
|
parsedFilters[key] = value.split('|').map(v => decodeURIComponent(v.trim())).filter(Boolean);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
@@ -246,7 +246,7 @@ export class SeriesPageComponent implements OnDestroy {
|
|||||||
sort: "title",
|
sort: "title",
|
||||||
direction: "asc",
|
direction: "asc",
|
||||||
sidebar: true,
|
sidebar: true,
|
||||||
filter: `${filterKey}:${filterValue}`,
|
filter: `${filterKey}:${encodeURIComponent(filterValue)}`,
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
+1
-1
@@ -848,7 +848,7 @@ export class MetadataViewerComponent implements OnInit, OnChanges {
|
|||||||
sort: 'title',
|
sort: 'title',
|
||||||
direction: 'asc',
|
direction: 'asc',
|
||||||
sidebar: true,
|
sidebar: true,
|
||||||
filter: `${filterKey}:${filterValue}`
|
filter: `${filterKey}:${encodeURIComponent(filterValue)}`
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
+1
-1
@@ -604,7 +604,7 @@ export class MetadataManagerComponent implements OnInit, OnDestroy {
|
|||||||
sort: 'title',
|
sort: 'title',
|
||||||
direction: 'asc',
|
direction: 'asc',
|
||||||
sidebar: true,
|
sidebar: true,
|
||||||
filter: `${filterKey}:${filterValue}`
|
filter: `${filterKey}:${encodeURIComponent(filterValue)}`
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user