Updating the badge printing module. It needs a bit of work. Removing the old versions of functions.
This commit is contained in:
@@ -169,24 +169,18 @@ $: if ($events_trigger == 'load__event_badge_obj_li' && $events_slct.event_id) {
|
||||
}
|
||||
console.log(`"${search_str}"`);
|
||||
|
||||
let params = {
|
||||
'qry__enabled': 'enabled',
|
||||
'qry__hidden': 'not_hidden',
|
||||
'qry__limit': 35,
|
||||
}
|
||||
let enabled = 'enabled';
|
||||
let hidden = 'not_hidden';
|
||||
let limit = 35;
|
||||
|
||||
if ($ae_loc.administrator_access) {
|
||||
params['qry__enabled'] = 'all';
|
||||
params['qry__hidden'] = 'all';
|
||||
params['qry__limit'] = 150;
|
||||
enabled = 'all';
|
||||
hidden = 'all';
|
||||
limit = 250;
|
||||
} else if ($ae_loc.trusted_access) {
|
||||
params['qry__enabled'] = 'enabled';
|
||||
params['qry__hidden'] = 'all';
|
||||
params['qry__limit'] = 75;
|
||||
} else {
|
||||
params['qry__enabled'] = 'enabled';
|
||||
params['qry__hidden'] = 'not_hidden';
|
||||
params['qry__limit'] = 35;
|
||||
enabled = 'enabled';
|
||||
hidden = 'all';
|
||||
limit = 150;
|
||||
}
|
||||
|
||||
if ($events_sess.status_qry__search == 'loading') {
|
||||
@@ -197,15 +191,16 @@ $: if ($events_trigger == 'load__event_badge_obj_li' && $events_slct.event_id) {
|
||||
|
||||
$events_sess.status_qry__search = 'loading';
|
||||
|
||||
search_submit_results = events_func.handle_search__event_badge({
|
||||
search_submit_results = events_func.search__event_badge({
|
||||
api_cfg: $ae_api,
|
||||
event_id: $events_slct.event_id,
|
||||
type_code: type_code,
|
||||
fulltext_search_qry_str: ft_search_str_new,
|
||||
like_search_qry_str: lk_search_str_new,
|
||||
external_event_id: $events_loc.badges.default__external_registration_id,
|
||||
params: params,
|
||||
try_cache: false
|
||||
enabled: enabled,
|
||||
hidden: hidden,
|
||||
limit: limit,
|
||||
})
|
||||
.then(function (search_results) {
|
||||
$events_slct.badge_obj_li = search_results;
|
||||
@@ -218,15 +213,16 @@ $: if ($events_trigger == 'load__event_badge_obj_li' && $events_slct.event_id) {
|
||||
|
||||
$events_sess.status_qry__search = 'loading';
|
||||
|
||||
search_submit_results = events_func.handle_search__event_badge({
|
||||
search_submit_results = events_func.search__event_badge({
|
||||
api_cfg: $ae_api,
|
||||
event_id: $events_slct.event_id,
|
||||
type_code: type_code,
|
||||
fulltext_search_qry_str: ft_search_str_new,
|
||||
like_search_qry_str: lk_search_str_new,
|
||||
external_event_id: $events_loc.badges.default__external_registration_id,
|
||||
params: params,
|
||||
try_cache: false
|
||||
enabled: enabled,
|
||||
hidden: hidden,
|
||||
limit: limit,
|
||||
})
|
||||
.then(function (search_results) {
|
||||
$events_slct.badge_obj_li = search_results;
|
||||
|
||||
@@ -176,24 +176,18 @@ $: if ($events_trigger == 'load__event_badge_obj_li' && $events_slct.event_id) {
|
||||
}
|
||||
console.log(`"${search_str}"`);
|
||||
|
||||
let params = {
|
||||
'qry__enabled': 'enabled',
|
||||
'qry__hidden': 'not_hidden',
|
||||
'qry__limit': 35,
|
||||
}
|
||||
let enabled = 'enabled';
|
||||
let hidden = 'not_hidden';
|
||||
let limit = 35;
|
||||
|
||||
if ($ae_loc.administrator_access) {
|
||||
params['qry__enabled'] = 'all';
|
||||
params['qry__hidden'] = 'all';
|
||||
params['qry__limit'] = 150;
|
||||
enabled = 'all';
|
||||
hidden = 'all';
|
||||
limit = 250;
|
||||
} else if ($ae_loc.trusted_access) {
|
||||
params['qry__enabled'] = 'enabled';
|
||||
params['qry__hidden'] = 'all';
|
||||
params['qry__limit'] = 75;
|
||||
} else {
|
||||
params['qry__enabled'] = 'enabled';
|
||||
params['qry__hidden'] = 'not_hidden';
|
||||
params['qry__limit'] = 35;
|
||||
enabled = 'enabled';
|
||||
hidden = 'all';
|
||||
limit = 150;
|
||||
}
|
||||
|
||||
if ($events_sess.status_qry__search == 'loading') {
|
||||
@@ -204,15 +198,16 @@ $: if ($events_trigger == 'load__event_badge_obj_li' && $events_slct.event_id) {
|
||||
|
||||
$events_sess.status_qry__search = 'loading';
|
||||
|
||||
search_submit_results = events_func.handle_search__event_badge({
|
||||
search_submit_results = events_func.search__event_badge({
|
||||
api_cfg: $ae_api,
|
||||
event_id: $events_slct.event_id,
|
||||
type_code: type_code,
|
||||
fulltext_search_qry_str: ft_search_str_new,
|
||||
like_search_qry_str: lk_search_str_new,
|
||||
external_event_id: $events_loc.badges.default__external_registration_id,
|
||||
params: params,
|
||||
try_cache: false
|
||||
enabled: enabled,
|
||||
hidden: hidden,
|
||||
limit: limit,
|
||||
})
|
||||
.then(function (search_results) {
|
||||
$events_slct.badge_obj_li = search_results;
|
||||
@@ -225,15 +220,16 @@ $: if ($events_trigger == 'load__event_badge_obj_li' && $events_slct.event_id) {
|
||||
|
||||
$events_sess.status_qry__search = 'loading';
|
||||
|
||||
search_submit_results = events_func.handle_search__event_badge({
|
||||
search_submit_results = events_func.search__event_badge({
|
||||
api_cfg: $ae_api,
|
||||
event_id: $events_slct.event_id,
|
||||
type_code: type_code,
|
||||
fulltext_search_qry_str: ft_search_str_new,
|
||||
like_search_qry_str: lk_search_str_new,
|
||||
external_event_id: $events_loc.badges.default__external_registration_id,
|
||||
params: params,
|
||||
try_cache: false
|
||||
enabled: enabled,
|
||||
hidden: hidden,
|
||||
limit: limit,
|
||||
})
|
||||
.then(function (search_results) {
|
||||
$events_slct.badge_obj_li = search_results;
|
||||
|
||||
@@ -77,7 +77,12 @@ async function handle_submit_form_search(event) {
|
||||
let search_str = $events_sess.leads.entered_search_str.trim();
|
||||
console.log(search_str);
|
||||
|
||||
search_submit_results = await events_func.handle_search__event_badge({api_cfg: $ae_api, event_id: $event_exhibit_obj.event_id_random, fulltext_search_qry_str: search_str, external_event_id: $events_loc.leads.default__external_registration_id});
|
||||
search_submit_results = await events_func.search__event_badge({
|
||||
api_cfg: $ae_api,
|
||||
event_id: $event_exhibit_obj.event_id_random,
|
||||
fulltext_search_qry_str: search_str,
|
||||
external_event_id: $events_loc.leads.default__external_registration_id
|
||||
});
|
||||
console.log(search_submit_results);
|
||||
|
||||
$events_slct.badge_obj_li = search_submit_results;
|
||||
|
||||
@@ -82,7 +82,12 @@ async function handle_submit_form_search(event) {
|
||||
let search_str = $events_sess.leads.entered_search_str.trim();
|
||||
console.log(search_str);
|
||||
|
||||
search_submit_results = await events_func.handle_search__event_badge({api_cfg: $ae_api, event_id: $event_exhibit_obj.event_id_random, fulltext_search_qry_str: search_str, external_event_id: $events_loc.leads.default__external_registration_id});
|
||||
search_submit_results = await events_func.search__event_badge({
|
||||
api_cfg: $ae_api,
|
||||
event_id: $event_exhibit_obj.event_id_random,
|
||||
fulltext_search_qry_str: search_str,
|
||||
external_event_id: $events_loc.leads.default__external_registration_id
|
||||
});
|
||||
console.log(search_submit_results);
|
||||
|
||||
$events_slct.badge_obj_li = search_submit_results;
|
||||
|
||||
Reference in New Issue
Block a user