Skip to content

Commit

Permalink
use same order as ADS side
Browse files Browse the repository at this point in the history
  • Loading branch information
gmella committed May 24, 2024
1 parent 5cac764 commit 1196fa9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/app.xql
Original file line number Diff line number Diff line change
Expand Up @@ -889,7 +889,7 @@ declare function app:search-cats-analysis($node as node(), $model as map(*), $sk
let $log := util:log("info","app:search-cats-analysis()/9")
let $by-bib-list := for $bibcode in $bibcodes
let $record := adsabs:get-records($bibcode)
order by adsabs:get-pub-date($record) descending
order by $bibcode descending
let $tags := for $t in map:keys($groups) return if ( $groups($t)?bibcodes[. = $bibcode] ) then $t else ()
let $second-order-tags := map:for-each($bibcodes-by-second-order, function ($tag, $bibcodes){ if ($bibcodes=$bibcode) then $tag else () })
let $labels := $tags ! ( <li><span class="label label-{$groups(.)?color}">{data(.)}</span></li> )
Expand Down

0 comments on commit 1196fa9

Please sign in to comment.