Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Display datatype links like other links #964

Open
wants to merge 1 commit into
base: develop/7
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion binsrc/fct/rdfdesc/description.sql
Original file line number Diff line number Diff line change
Expand Up @@ -854,7 +854,12 @@ create procedure b3s_label (in _S any, in langs any, in lbl_order_pref_id int :=

create procedure b3s_xsd_link (in dt varchar)
{
return sprintf ('<a href="%s">%s</a>', dt, b3s_uri_curie(dt));
declare p_prefix, url any;
p_prefix := b3s_label (dt, null);
if (not length (p_prefix))
p_prefix := b3s_uri_curie (dt);
url := b3s_http_url (dt, null, null, 0);
return sprintf ('<a href="%s">%s</a>', url, p_prefix);
}
;

Expand Down