forked from mikespub-org/seblucas-cops
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig_local.php.example
More file actions
65 lines (56 loc) · 2.08 KB
/
config_local.php.example
File metadata and controls
65 lines (56 loc) · 2.08 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
<?php
if (!isset($config)) {
$config = [];
}
/*
***************************************************
* Please read config_default.php for all possible
* configuration items
* For changes in config_default.php see CHANGELOG.md
***************************************************
*/
/*
* The directory containing calibre's metadata.db file, with sub-directories
* containing all the formats.
* BEWARE : it has to end with a /
*/
$config['calibre_directory'] = './';
/*
* Catalog's title
*/
$config['cops_title_default'] = "COPS";
/*
* use URL rewriting for downloading of ebook in HTML catalog
* See README for more information
* 1 : enable
* 0 : disable
*/
$config['cops_use_url_rewriting'] = "0";
/*
* Specify the ignored formats that will never display in COPS
*/
$config['cops_ignored_formats'] = ['ORIGINAL_EPUB', 'ORIGINAL_AZW3'];
/*
* Show links to sort by title, author, pubdate, rating or timestamp in OPDS catalog (using facets)
* Note: this will only work if your e-reader supports facets in OPDS feeds, like Thorium Reader for example
* See https://specs.opds.io/opds-1.2.html#4-facets for specification details
* To disable this feature, use an empty array in config_local.php:
* $config['cops_opds_sort_links'] = [];
*
* Available values: ['title', 'author', 'pubdate', 'rating', 'timestamp']
*/
$config['cops_opds_sort_links'] = ['title', 'author', 'pubdate', 'rating', 'timestamp'];
/*
* Show links to filter by Author, Language, Publisher, Rating, Serie or Tag in OPDS catalog (using facets)
* Note: this will only work if your e-reader supports facets in OPDS feeds, like Thorium Reader for example
* See https://specs.opds.io/opds-1.2.html#4-facets for specification details
* To disable this feature, use an empty array in config_local.php:
* $config['cops_opds_filter_links'] = [];
*
* Available values: ['author', 'language', 'publisher', 'rating', 'series', 'tag']
*/
$config['cops_opds_filter_links'] = ['author', 'language', 'rating', 'tag'];
/*
* Number of filter links to show per category in OPDS catalog
*/
$config['cops_opds_filter_limit'] = '8';