Created
November 12, 2015 11:40
-
-
Save henningjensen/b6e38ab9d27a9db3f3c9 to your computer and use it in GitHub Desktop.
Geonorge - CSW search filter organisation and type
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var searchFilter = new object[] | |
{ | |
new BinaryLogicOpType() | |
{ | |
Items = new object[] | |
{ | |
new PropertyIsLikeType | |
{ | |
PropertyName = new PropertyNameType {Text = new[] {"OrganisationName"}}, | |
Literal = new LiteralType {Text = new[] { "Kartverket" }} | |
}, | |
new PropertyIsLikeType | |
{ | |
PropertyName = new PropertyNameType {Text = new[] {"Type"}}, | |
Literal = new LiteralType {Text = new[] { "service" }} | |
} | |
}, | |
ItemsElementName = new ItemsChoiceType22[] | |
{ | |
ItemsChoiceType22.PropertyIsLike, ItemsChoiceType22.PropertyIsLike, | |
} | |
}, | |
}; | |
var searchFilterNames = new ItemsChoiceType23[] | |
{ | |
ItemsChoiceType23.And | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment