Now with search by location name!

This commit is contained in:
Scott Idem
2024-09-03 17:42:15 -04:00
parent e6694718e7
commit 5aaaaa164d
3 changed files with 55 additions and 0 deletions

View File

@@ -399,6 +399,7 @@ export async function search__event_session(
like_presentation_search_qry_str = null,
like_presenter_search_qry_str = null,
file_count = false, // If true then only show those that have a file count
location_name = null,
params = {},
try_cache = true,
log_lvl = 0
@@ -411,6 +412,7 @@ export async function search__event_session(
like_presentation_search_qry_str?: null|string,
like_presenter_search_qry_str?: null|string,
file_count?: boolean,
location_name?: null|string,
params?: any,
try_cache?: boolean,
log_lvl?: number
@@ -472,6 +474,11 @@ export async function search__event_session(
params_json['and_qry']['file_count'] = file_count;
}
// This should be using a like with surrounded by %'s
if (location_name) {
params_json['and_qry']['event_location_name'] = location_name;
}
let order_by_li = {'priority': 'DESC', 'sort': 'DESC', 'start_datetime': 'ASC', 'name': 'ASC', 'updated_on': 'DESC', 'created_on': 'DESC'};
ae_promises.load__event_session_obj_li = await api.get_ae_obj_li_for_obj_id_crud({

View File

@@ -206,6 +206,7 @@ let events_local_data_struct: key_val = {
show_content__session_presentations: false,
show_content__session_search_view: null,
show_content__session_search_help: true,
show_content__session_search_room_name: false,
show_content__session_view: null,
show_content__session_qr: true,
hide__session_poc: true,
@@ -377,6 +378,7 @@ let events_session_data_struct: key_val = {
presenter__updated_on: null,
session_updated_on: null,
location_name_qry_str: null,
fulltext_search_qry_str: null,
status_qry__search: null,