Skip to content
Snippets Groups Projects
Commit d381fa38 authored by Tögl, Christina's avatar Tögl, Christina
Browse files

Fix room name for event in location-select

parent 927a3aa5
No related branches found
No related tags found
No related merge requests found
...@@ -16,7 +16,6 @@ import * as errorUtils from "dbp-common/error"; ...@@ -16,7 +16,6 @@ import * as errorUtils from "dbp-common/error";
const locationContext = { const locationContext = {
"@id": "@id", "@id": "@id",
"identifier": "identifier",
"name": "http://schema.org/name", "name": "http://schema.org/name",
"maximumPhysicalAttendeeCapacity": "http://schema.org/maximumPhysicalAttendeeCapacity" "maximumPhysicalAttendeeCapacity": "http://schema.org/maximumPhysicalAttendeeCapacity"
}; };
...@@ -160,7 +159,7 @@ export class LocationSelect extends ScopedElementsMixin(LitElement) { ...@@ -160,7 +159,7 @@ export class LocationSelect extends ScopedElementsMixin(LitElement) {
let transformed = that.jsonld.transformMembers(data, locationContext); let transformed = that.jsonld.transformMembers(data, locationContext);
const results = []; const results = [];
transformed.forEach((place) => { transformed.forEach((place) => {
results.push({id: place["@id"], room: place["identifier"], maximumPhysicalAttendeeCapacity: place["maximumPhysicalAttendeeCapacity"], text: that.generateOptionText(place)}); results.push({id: place["@id"], maximumPhysicalAttendeeCapacity: place["maximumPhysicalAttendeeCapacity"], text: that.generateOptionText(place)});
}); });
return { return {
...@@ -176,9 +175,10 @@ export class LocationSelect extends ScopedElementsMixin(LitElement) { ...@@ -176,9 +175,10 @@ export class LocationSelect extends ScopedElementsMixin(LitElement) {
// set custom element attributes // set custom element attributes
const identifier = e.params.data.id; const identifier = e.params.data.id;
const maxCapacity = e.params.data.maximumPhysicalAttendeeCapacity; const maxCapacity = e.params.data.maximumPhysicalAttendeeCapacity;
const room = e.params.data.room;
that.object = findObjectInApiResults(identifier, that.lastResult); that.object = findObjectInApiResults(identifier, that.lastResult);
const room = that.object.identifier;
$this.attr("data-object", JSON.stringify(that.object)); $this.attr("data-object", JSON.stringify(that.object));
$this.data("object", that.object); $this.data("object", that.object);
...@@ -225,8 +225,8 @@ export class LocationSelect extends ScopedElementsMixin(LitElement) { ...@@ -225,8 +225,8 @@ export class LocationSelect extends ScopedElementsMixin(LitElement) {
that.object = place; that.object = place;
const transformed = that.jsonld.compactMember(that.jsonld.expandMember(place), locationContext); const transformed = that.jsonld.compactMember(that.jsonld.expandMember(place), locationContext);
const identifier = transformed["@id"]; const identifier = transformed["@id"];
const room = transformed["identifier"];
const maxCapacity = transformed["maximumPhysicalAttendeeCapacity"]; const maxCapacity = transformed["maximumPhysicalAttendeeCapacity"];
const room = place.identifier;
const option = new Option(that.generateOptionText(transformed), identifier, true, true); const option = new Option(that.generateOptionText(transformed), identifier, true, true);
$this.attr("data-object", JSON.stringify(place)); $this.attr("data-object", JSON.stringify(place));
...@@ -334,6 +334,15 @@ export class LocationSelect extends ScopedElementsMixin(LitElement) { ...@@ -334,6 +334,15 @@ export class LocationSelect extends ScopedElementsMixin(LitElement) {
.field .button.control dbp-icon { .field .button.control dbp-icon {
top: 0; top: 0;
} }
input {
border-radius: 0;
}
input[type="search"] {
-webkit-appearance: none;
}
` `
]; ];
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment