diff options
author | Frederick Muriuki Muriithi | 2025-07-01 11:57:07 -0500 |
---|---|---|
committer | Frederick Muriuki Muriithi | 2025-07-01 11:57:07 -0500 |
commit | 6042b313019815c8bc7be552c4e111ccc224c9a7 (patch) | |
tree | 61225fcadf3954894ccb623aaa712b1421a697fb | |
parent | f07b917cb83cd20a36db7bc72d8b79d7511ca585 (diff) | |
download | gn-uploader-6042b313019815c8bc7be552c4e111ccc224c9a7.tar.gz |
Fix publications UI.
-rw-r--r-- | uploader/templates/publications/index.html | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/uploader/templates/publications/index.html b/uploader/templates/publications/index.html index f846d54..369812b 100644 --- a/uploader/templates/publications/index.html +++ b/uploader/templates/publications/index.html @@ -41,6 +41,7 @@ [ {data: "index"}, { + searchable: true, data: (pub) => { if(pub.PubMed_ID) { return `<a href="https://pubmed.ncbi.nlm.nih.gov/` + @@ -52,6 +53,7 @@ } }, { + searchable: true, data: (pub) => { var title = "βΈ»"; if(pub.Title) { @@ -64,6 +66,7 @@ } }, { + searchable: true, data: (pub) => { authors = pub.Authors.split(",").map( (item) => {return item.trim();}); @@ -75,16 +78,21 @@ } ], { + serverSide: true, ajax: { url: "/publications/list", dataSrc: "publications" }, scrollY: 700, - paging: false, + scroller: true, + scrollCollapse: true, + paging: true, deferRender: true, layout: { topStart: "info", - topEnd: "search" + topEnd: "search", + bottomStart: "pageLength", + bottomEnd: false } }); }); |