Commit 4f0090fa authored by Laurent Wouters's avatar Laurent Wouters
Browse files

[fix] Fixing date display for conferences

parent f11710ae5f1b
......@@ -180,6 +180,13 @@ export interface Book extends rdfMeta.Loadable {
releaseDate: string;
}
/**
* The data for an ical date
*/
export interface IcalDate extends rdfMeta.Loadable {
value: string;
}
/**
* The data for a conference
*/
......@@ -187,8 +194,8 @@ export interface Conference extends rdfMeta.Loadable {
title: string;
label: string;
acronym: string;
startDate: string;
endDate: string;
startDate: IcalDate;
endDate: IcalDate;
tracks: Track[];
}
......@@ -222,6 +229,11 @@ const LINK_METACLASS = new rdfMeta.MetaClass();
*/
const PERSON_METACLASS = new rdfMeta.MetaClass();
/**
* The metaclass for an ical date
*/
const ICALDATE_METACLASS = new rdfMeta.MetaClass();
/**
* The metaclass for a conference
*/
......@@ -342,6 +354,13 @@ BOOK_METACLASS.properties = [
)
];
ICALDATE_METACLASS.properties = [
new rdfMeta.MetaPropertyData(
"value",
"http://www.w3.org/2002/12/cal/ical#date"
)
];
CONFERENCE_METACLASS.properties = [
new rdfMeta.MetaPropertyData(
"title",
......@@ -355,13 +374,17 @@ CONFERENCE_METACLASS.properties = [
"acronym",
"http://data.semanticweb.org/ns/swc/ontology#hasAcronym"
),
new rdfMeta.MetaPropertyData(
new rdfMeta.MetaPropertyObject(
"startDate",
"http://www.w3.org/2002/12/cal/ical#dtstart"
"http://www.w3.org/2002/12/cal/ical#dtstart",
ICALDATE_METACLASS,
false
),
new rdfMeta.MetaPropertyData(
new rdfMeta.MetaPropertyObject(
"endDate",
"http://www.w3.org/2002/12/cal/ical#dtend"
"http://www.w3.org/2002/12/cal/ical#dtend",
ICALDATE_METACLASS,
false
),
new rdfMeta.MetaPropertyObject(
"tracks",
......
......@@ -20,7 +20,7 @@
<tr>
<td><b>Start date</b></td>
<td>
{{conference.startDate}}
{{conference.startDate.value}}
<span v-if="conference.__warnings['startDate'] != undefined" style="color: yellow; font-size: 8pt;" :title="conference.__warnings['startDate']">
&#x26A0;
</span>
......@@ -29,7 +29,7 @@
<tr>
<td><b>End date</b></td>
<td>
{{conference.endDate}}
{{conference.endDate.value}}
<span v-if="conference.__warnings['endDate'] != undefined" style="color: yellow; font-size: 8pt;" :title="conference.__warnings['endDate']">
&#x26A0;
</span>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment