diff --git a/models/dbsql/dataset_foreigntable_for_es.sql b/models/dbsql/dataset_foreigntable_for_es.sql index 11cd745a2..7ba0bbb75 100644 --- a/models/dbsql/dataset_foreigntable_for_es.sql +++ b/models/dbsql/dataset_foreigntable_for_es.sql @@ -38,7 +38,7 @@ DELETE FROM public.dataset_es; user_id, repo_id, created_unix, - updated_unix,file_name,file_type) + updated_unix,file_name) SELECT b.id, b.title, @@ -60,8 +60,8 @@ $def$ DECLARE privateValue boolean=false; BEGIN - select into privateValue is_private from public.repository where id=NEW.repo_id; - if not privateValue then + --select into privateValue is_private from public.repository where id=NEW.repo_id; + --if not privateValue then INSERT INTO public.dataset_es( id, title, @@ -69,7 +69,8 @@ $def$ category, description, download_times, - license, task, + license, + task, release_id, user_id, repo_id, @@ -90,7 +91,7 @@ $def$ NEW.created_unix, NEW.updated_unix ); - end if; + --end if; RETURN NEW; END; $def$ diff --git a/public/home/search.js b/public/home/search.js index 5efa9de7a..01e2167c0 100644 --- a/public/home/search.js +++ b/public/home/search.js @@ -281,11 +281,11 @@ function displayDataSetResult(page,jsonResult,onlyReturnNum,keyword){ html += " " +recordMap["download_times"] + " "; html +=" "; html += "
"; - html += " " + recordMap["repoUrl"] + ""; + html += " " + recordMap["title"] + ""; html +=" "; html +="
"; html += "
"; - html += "

" + recordMap["title"] + "

"; + html += "

" + recordMap["description"] + "

"; if(!isEmpty(recordMap["file_name"])){ html += "

" + recordMap["file_name"] + "

"; }