Skip to content

Commit 58f1e9e

Browse files
committed
fixed bugs in ui:choice introduced by previous PR
1 parent 4f620ae commit 58f1e9e

3 files changed

Lines changed: 294 additions & 93 deletions

File tree

Documentation/form-examples/structures3.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
content="HTML Tidy for Mac OS X (vers 31 October 2006 - Apple Inc. build 15.17), see www.w3.org" />
88
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii" />
99

10-
<title>Form structures 4 - Choice</title>
10+
<title>Form structures 3 - Choice</title>
1111
<link type="text/css" rel="stylesheet" href="../style/demo-style.css" />
1212

1313
<!-- used for production-ready documentation -->
@@ -24,7 +24,7 @@
2424

2525
<body>
2626

27-
<h1>Form structures 4 - Choice</h1>
27+
<h1>Form structures 3 - Choice</h1>
2828
<pre id="Prolog">
2929
@prefix foaf: &lt;http://xmlns.com/foaf/0.1/&gt;.
3030
@prefix sched: &lt;http://www.w3.org/ns/pim/schedule#&gt;.

src/utils/label.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,5 +115,6 @@ function getWellKnownLabel (thing) {
115115
store.any(thing, UI.ns.foaf('nick')) ||
116116
store.any(thing, UI.ns.as('name')) ||
117117
store.any(thing, UI.ns.schema('name')) ||
118-
store.any(thing, UI.ns.rdfs('label'))
118+
store.any(thing, UI.ns.rdfs('label')) ||
119+
store.any(thing, store.sym('http://www.w3.org/2004/02/skos/core#prefLabel'))
119120
}

0 commit comments

Comments
 (0)