Skip to content

Commit 522114a

Browse files
committed
first pass for AP-616
- removed unused client.search() - added client.write_search_results_to_file() - added method to iterate through search xml results - added some xml fixtures for a first and last result for a sample search as well as the expected output xml for said search.
1 parent 144d4aa commit 522114a

6 files changed

Lines changed: 19798 additions & 29 deletions

File tree

CHANGELOG.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,28 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8+
## [Unreleased]
9+
10+
### Added
11+
- client method to write search results to an XML file, with validation against expected number of records to be written
12+
- client method to return an iterator of XML records from a search, to support streaming results for large result sets
13+
14+
### Changed
15+
- N/A
16+
17+
### Deprecated
18+
- N/A
19+
20+
### Removed
21+
- client method to return raw XML or pyMARC records from a search, in favor of separate methods for each result format and a streaming iterator method for XML results
22+
23+
### Fixed
24+
- N/A
25+
26+
### Security
27+
- N/A
28+
29+
830
## [0.1.1]
931

1032
### Added

README.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -74,9 +74,8 @@ ids = client.fetch_ids_search("collection:'Disabled Students Program Photos'")
7474
# return PyMARC records matching a query
7575
records = client.fetch_search_metadata("collection:'Disabled Students Program Photos'")
7676

77-
# return raw XML or PyMARC records from a paginated search
78-
xml_results = client.search("collection:'Disabled Students Program Photos'", result_format="xml")
79-
pymarc_results = client.search("collection:'Disabled Students Program Photos'", result_format="pymarc")
77+
# search Tind with a query and write results to an XML file in the default storage directory
78+
records_written = client.write_search_results_to_file("Old Emperor Norton", "full_norton_results.xml")
8079
```
8180

8281
## Running tests

0 commit comments

Comments
 (0)