Skip to content

Commit

Permalink
Remove language filtering and show language tag
Browse files Browse the repository at this point in the history
  • Loading branch information
ehrhart committed Oct 15, 2020
1 parent 558d774 commit dc70427
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions config.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ module.exports = {
]
},
$limit: 5,
$langTag: 'hide',
},
filterFunc: (value) => [`bif:contains(?label, '"${value.replace(/'/g, '\\\'')}"')`],
allowImageSearch: false,
Expand Down Expand Up @@ -88,7 +87,6 @@ module.exports = {
'?item a ?itemType',
'?item <http://www.ebu.ch/metadata/ontologies/ebucore/ebucore#title> ?itemLabel',
],
$langTag: 'hide',
},
},
labelProp: 'http://www.ebu.ch/metadata/ontologies/ebucore/ebucore#publicationChannelName',
Expand All @@ -108,7 +106,6 @@ module.exports = {
],
$where: [
],
$langTag: 'hide',
},
filters: [
{
Expand All @@ -125,7 +122,6 @@ module.exports = {
$where: [
'?channel <http://www.ebu.ch/metadata/ontologies/ebucore/ebucore#serviceDescription> ?serviceDescription',
],
$langTag: 'hide',
},
whereFunc: () => [
'?id <http://www.ebu.ch/metadata/ontologies/ebucore/ebucore#serviceDescription> ?serviceDescription',
Expand Down Expand Up @@ -169,7 +165,6 @@ module.exports = {
// Get items count
'{ SELECT ?id (COUNT(DISTINCT ?item) AS ?itemsCount) WHERE { ?id <http://www.ebu.ch/metadata/ontologies/ebucore/ebucore#isParentOf> ?item. } }',
],
$langTag: 'hide',
},
},
labelProp: 'http://www.ebu.ch/metadata/ontologies/ebucore/ebucore#title',
Expand All @@ -194,7 +189,6 @@ module.exports = {
// Get items count
'{ SELECT ?id (COUNT(DISTINCT ?item) AS ?itemsCount) WHERE { ?id <http://www.ebu.ch/metadata/ontologies/ebucore/ebucore#isParentOf> ?item } }',
],
$langTag: 'hide',
},
filters: [],
},
Expand Down Expand Up @@ -233,10 +227,6 @@ module.exports = {
'http://www.ebu.ch/metadata/ontologies/ebucore/ebucore#RadioProgramme'
]
},
$filter: [
'langmatches(lang(?label), "en") || lang(?label) = ""',
],
$langTag: 'hide',
},
mediaFunc: (props) => props.mediaLocator ? `https://explorer.memad.eu/api/limecraft/video?locator=${encodeURIComponent(props.mediaLocator)}` : null,
excludedMetadata: ['mediaLocator'],
Expand All @@ -259,7 +249,6 @@ module.exports = {
}
],
$where: ['?id a <http://www.ebu.ch/metadata/ontologies/ebucore/ebucore#TVProgramme>'],
$langTag: 'hide',
},
filters: [
{
Expand All @@ -276,7 +265,6 @@ module.exports = {
$where: [
'?programme <http://www.ebu.ch/metadata/ontologies/ebucore/ebucore#hasGenre> ?genre',
],
$langTag: 'hide',
},
whereFunc: () => [
'?id <http://www.ebu.ch/metadata/ontologies/ebucore/ebucore#hasGenre> ?genre',
Expand All @@ -299,7 +287,6 @@ module.exports = {
$where: [
'?programme <http://www.ebu.ch/metadata/ontologies/ebucore/ebucore#hasTheme> ?theme',
],
$langTag: 'hide',
},
whereFunc: () => [
'?id <http://www.ebu.ch/metadata/ontologies/ebucore/ebucore#hasTheme> ?theme',
Expand All @@ -322,7 +309,6 @@ module.exports = {
$where: [
'?filter <http://www.ebu.ch/metadata/ontologies/ebucore/ebucore#hasLanguage> ?language',
],
$langTag: 'hide',
},
whereFunc: () => [
'?id <http://www.ebu.ch/metadata/ontologies/ebucore/ebucore#hasLanguage> ?language',
Expand Down Expand Up @@ -376,7 +362,6 @@ module.exports = {
'?id a <http://www.ebu.ch/metadata/ontologies/ebucore/ebucore#Part>',
'?video <http://www.ebu.ch/metadata/ontologies/ebucore/ebucore#hasPart> ?id',
],
$langTag: 'hide',
}
}
}
Expand Down

0 comments on commit dc70427

Please sign in to comment.