Hi,
I've posted a set of questions today to this list and they are
remaining
**open**. So those who feel able to answer the questions please check
out this thread.
Despite the open questions I tried an example implementation:
https://blends.debian.org/med/tasks/bio
To mark different repositories visibly I went to their homepage and
picked the "main color" there to use it as background for the according
link (but used transparency level 75% to make the page not to
varicoloured.
I did **not** implemented the 'NA' feature suggested by Steffen since I
was not convinced that users will really follow any link to do
something
- my experience to provide screenshots, debtags and translations is
quite bad (BTW, have you provided any screenshot today?)
Please test, comment and find bugs in the implementation - and answer
the open questions in this thread.
Kind regards
Andreas.
On Mon, Oct 09, 2017 at 04:10:59PM +0200, Steffen Möller wrote:
Hi Andreas,
here some R/Python/PHP-mix pseudocode idea for getting
the registry links displayed on the task page:
registry_prefix={
"bio.tools"=>"https://bio.tools/",
"RRID" => "http://identifiers.org/rrid/RRID:",
"SciCrunch" => "http://identifiers.org/rrid/RRID:",
"OMICtools" => "https://duckduckgo.com/?q=\\" (a single backslash at
the end is what I want)
}
print "Registries: "
for (registry_name,registry_id) %in% registry_assignments {
prefix=registry_prefix[[registry_name]]
if (empty(prefix) or "NA"==registry_id) {
print "%s:%s" % ($registry_name,$registry_id)
} else {
print "%s:<a href="%s%s">%s</a>" %
(registry_name,prefix,registry_id,registry_id)
}
}
The situation with OMICtools is not yet ideal, but from what
I understood this will soon get better. The single backslash
at the end induces some "You feel lucky!"-like immediate
forward to the top hit. Funnily enough, SciCrunch also needs
a bit of bridge, albeit a more deterministic one.
Best,
Steffen
--
http://fam-tille.de