projects
/
pazpar2-moved-to-github.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix wrongly removed session_status function name
[pazpar2-moved-to-github.git]
/
src
/
settings.c
diff --git
a/src/settings.c
b/src/settings.c
index
4d68651
..
d355cf3
100644
(file)
--- a/
src/settings.c
+++ b/
src/settings.c
@@
-76,6
+76,8
@@
static char *hard_settings[] = {
"pz:query_syntax",
"pz:facetmap:",
"pz:limitmap:",
"pz:query_syntax",
"pz:facetmap:",
"pz:limitmap:",
+ "pz:url",
+ "pz:sortmap:",
0
};
0
};
@@
-333,7
+335,7
@@
void expand_settings_array(struct setting ***set_ar, int *num, int offset,
// This is called from grep_databases -- adds/overrides setting for a target
// This is also where the rules for precedence of settings are implemented
// This is called from grep_databases -- adds/overrides setting for a target
// This is also where the rules for precedence of settings are implemented
-static void update_database(void *context, struct database *db)
+static void update_database_fun(void *context, struct database *db)
{
struct setting *set = ((struct update_database_context *)
context)->set;
{
struct setting *set = ((struct update_database_context *)
context)->set;
@@
-343,7
+345,7
@@
static void update_database(void *context, struct database *db)
int offset;
// Is this the right database?
int offset;
// Is this the right database?
- if (!match_zurl(db->url, set->target))
+ if (!match_zurl(db->id, set->target))
return;
offset = settings_create_offset(service, set->name);
return;
offset = settings_create_offset(service, set->name);
@@
-401,7
+403,7
@@
static void update_databases(void *client_data, struct setting *set)
struct update_database_context context;
context.set = set;
context.service = service;
struct update_database_context context;
context.set = set;
context.service = service;
- predef_grep_databases(&context, service, update_database);
+ predef_grep_databases(&context, service, update_database_fun);
}
// This simply copies the 'hard' (application-specific) settings
}
// This simply copies the 'hard' (application-specific) settings
@@
-442,7
+444,7
@@
static void prepare_target_dictionary(void *client_data, struct setting *set)
// If target address is not wildcard, add the database
if (*set->target && !zurl_wildcard(set->target))
// If target address is not wildcard, add the database
if (*set->target && !zurl_wildcard(set->target))
- find_database(set->target, service);
+ create_database_for_service(set->target, service);
// Determine if we already have a dictionary entry
if (!strncmp(set->name, "pz:", 3) && (p = strchr(set->name + 3, ':')))
// Determine if we already have a dictionary entry
if (!strncmp(set->name, "pz:", 3) && (p = strchr(set->name + 3, ':')))