Skip to content
Snippets Groups Projects
Commit 5414bb5b authored by esikkala's avatar esikkala
Browse files

Hide production place facet, adjust result table layout

parent bbab4767
No related branches found
No related tags found
No related merge requests found
......@@ -87,7 +87,7 @@ class FacetBar extends React.Component {
<Paper className={classes.headingContainer}>
<Typography variant="h6">Production place</Typography>
</Paper>
<div className={classes.facetValuesContainerTen}>
{ /* <div className={classes.facetValuesContainerTen}>
<Tree
property='productionPlace'
lastUpdatedFacet={facet.lastUpdatedFacet}
......@@ -95,6 +95,7 @@ class FacetBar extends React.Component {
updateFilter={this.props.updateFilter}
/>
</div>
*/ }
</Paper>
<Paper className={classes.facetContainerLast}>
<Paper className={classes.headingContainer}>
......
......@@ -36,6 +36,9 @@ const styles = () => ({
paddingLeft: 0
},
withFilter: {
//minWidth: 170
},
wideColumn: {
minWidth: 170
},
infoIcon: {
......@@ -260,6 +263,9 @@ class ResultTable extends React.Component {
{rows.map(row => {
return (
<TableRow key={row.id}>
<TableCell className={classes.withFilter}>
{this.objectListRenderer(row.source, true)}
</TableCell>
<TableCell className={classes.withFilter} >
{this.stringListRenderer(row.prefLabel)}
</TableCell>
......@@ -269,7 +275,7 @@ class ResultTable extends React.Component {
<TableCell className={classes.withFilter}>
{this.objectListRenderer(row.productionPlace, true)}
</TableCell>
<TableCell className={classes.withFilter}>
<TableCell className={classes.wideColumn}>
{this.objectListRenderer(row.timespan)}
</TableCell>
<TableCell className={classes.withFilter}>
......@@ -278,15 +284,13 @@ class ResultTable extends React.Component {
{/*<TableCell className={classes.withFilter}>
{this.stringListRenderer(row.material)}
</TableCell>*/}
<TableCell className={classes.withFilter}>
<TableCell className={classes.wideColumn}>
{this.eventRenderer(row.event)}
</TableCell>
<TableCell className={classes.withFilter}>
<TableCell className={classes.wideColumn}>
{this.ownerRenderer(row.owner)}
</TableCell>
<TableCell className={classes.withFilter}>
{this.objectListRenderer(row.source, true)}
</TableCell>
</TableRow>
);
})}
......
......@@ -20,6 +20,12 @@ const styles = () => ({
});
const columns = [
{
label: 'Source',
property: 'source',
desc: 'Source description',
//filter: true
},
{
label: 'Title',
property: 'prefLabel',
......@@ -62,12 +68,6 @@ const columns = [
property: 'owner',
desc: 'Material description'
},
{
label: 'Source',
property: 'source',
desc: 'Source description',
//filter: true
},
];
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment