Skip to content

Commit

Permalink
Update CHANGELOG.rst, __init__.py, and 2 more files...
Browse files Browse the repository at this point in the history
  • Loading branch information
jokiefer committed Jan 12, 2024
1 parent ce886d6 commit 4dab59a
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 2 deletions.
11 changes: 11 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,17 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).



[v0.12.7] - 2023-12-15
---------------------

Added
~~~~~

* add missing `startPosition` parameter inside get records xml mapper.


[v0.12.7] - 2023-12-15
---------------------

Expand Down
2 changes: 1 addition & 1 deletion ows_lib/__init__.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
__version__ = "0.12.7"
__version__ = "0.13.0"
VERSION = __version__ # synonym
3 changes: 2 additions & 1 deletion ows_lib/models/ogc_request.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
from django.http.request import HttpRequest as DjangoRequest
from eulxml.xmlmap import XmlObject, load_xmlobject_from_string
from lark.exceptions import LarkError
from lxml import etree
from lxml.etree import XMLSyntaxError
from pygeofilter.backends.django.evaluate import to_filter
from pygeofilter.parsers.ecql import parse as parse_ecql
Expand Down Expand Up @@ -338,6 +337,8 @@ def xml_request(self) -> XmlObject:
"SERVICE")
self._xml_request.result_type = self.ogc_query_params.get(
"resultType")
self._xml_request.start_position = self.ogc_query_params.get(
"startPosition")
self._xml_request.max_records = self.ogc_query_params.get(
"maxRecords")
self._xml_request.element_set_name = self.ogc_query_params.get(
Expand Down
1 change: 1 addition & 0 deletions ows_lib/xml_mapper/xml_requests/csw/get_records.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ class GetRecordsRequest(XmlObject):
service_version = StringField(xpath="./@version")
service_type = StringField(xpath="./@service")
result_type = StringField(xpath="./@resultType")
start_position = StringField(xpath="./@startPosition")
max_records = StringField(xpath="./@maxRecords")
element_set_name = StringField(xpath="./csw:Query/csw:ElementSetName")
type_names = StringField(xpath="./csw:Query/@typeNames")
Expand Down

0 comments on commit 4dab59a

Please sign in to comment.