Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
razvanMiu committed Sep 23, 2020
1 parent 6c4e9f1 commit bf739d9
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 30 deletions.
38 changes: 9 additions & 29 deletions src/components/manage/Blocks/ArticlesSparql/View.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,15 @@ const View = (props) => {
key={`sparql-row-${index}-${item.title}`}
>
<div className="column-4 sm-12 article hero pa-1">
<Image src={item.image || placeholderImage} />
<Image
src={
item.image ||
`${
item.resource ? item.resource + '/image_large' : ''
}` ||
placeholderImage
}
/>
</div>
<div className="column-8 sm-12 article pa-1">
<div className="article-header">
Expand Down Expand Up @@ -103,34 +111,6 @@ const View = (props) => {
) : (
''
)}
{/* {items.length > 2 ? (
<div className="articles-slideshow">
{activeItem > 1 ? (
<Icon
onClick={() => {
setActiveItem(activeItem - 1);
}}
name={upSVG}
size="24px"
/>
) : (
''
)}
{activeItem < items.length - 1 ? (
<Icon
onClick={() => {
setActiveItem(activeItem + 1);
}}
name={downSVG}
size="24px"
/>
) : (
''
)}
</div>
) : (
''
)} */}
</div>
);
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ import navigationSVG from '@plone/volto/icons/navigation.svg';
// STYLES
import 'ol/ol.css';
import './style.css';
import ContentsPropertiesModal from '../../../../../omelette/src/components/manage/Contents/ContentsPropertiesModal';

const splitBy = (arr, delimiter) => {
if (Array.isArray(arr)) {
Expand Down Expand Up @@ -256,7 +257,7 @@ const OpenlayersMapView = (props) => {
if (!state.map.sitesSourceLayer.getVisible()) {
state.map.sitesSourceLayer.setVisible(true);
}
if (hasRegionsFeatures && !state.map.regionsSourceLayer.getVisible()) {
if (hasRegionsFeatures && state.map.regionsSourceLayer.getVisible()) {
state.map.regionsSourceLayer.setVisible(false);
}
state.map.sitesSourceLayer &&
Expand Down Expand Up @@ -304,6 +305,10 @@ const OpenlayersMapView = (props) => {
if (hasSidebar && filterSource === 'eprtr_filters') {
sitesSourceQuery.whereStatements = {
...sitesSourceQuery.whereStatements,
siteTerm: {
sql: `(siteName LIKE '%:options%')`,
type: 'string',
},
// Industries
EEAActivity: {
sql: `(eea_activities LIKE '%:options%')`,
Expand Down

0 comments on commit bf739d9

Please sign in to comment.