Install
openclaw skills install @baolinhtv/tvkh-sru-queryQuery Khánh Hòa Provincial Library SRU catalog via CQL and output structured JSON records
openclaw skills install @baolinhtv/tvkh-sru-queryEnable querying the Khánh Hòa Provincial Library SRU service via CQL (Common Query Language) to search for books, articles, and other resources at https://sru.thuvienkhanhhoa.gov.vn. The SRU endpoint (/khanhhoa) runs on top of the Zebra search and indexing engine, successfully modernizing and expanding upon the library's traditional Z39.50 bibliographic protocol infrastructure.
openclaw skills install @baolinhtv/tvkh-sru-query
(Or via Git: openclaw skills install https://github.com/baolinhtv/openclaw-skill-sru-query.git)
sru_query.py CLIpython3 sru_query.py "Văn hóa Chăm"
python3 sru_query.py "Khánh Hòa" --limit 20
python3 sru_query.py "Xứ Trầm Hương" --author "Quách Tấn"
query: search term or raw CQL query (required)author: optional, author name filter (dc.creator)title: optional, specific title keywords (dc.title)limit: optional, max records to return (default 20)The Khanh Hoa Provincial Library catalog contains thousands of bound local newspaper issues that often overwhelm search results. This skill features a built-in smart filter:
"Kho Báo" (Newspaper Archive).--limit.By default, if you input a simple string, the script wraps it in quotes "" to trigger a broad phrase search across the Zebra indexes:
"Văn hóa Chăm"
"Lịch sử Khánh Hòa"
dc.creator="Quách Tấn"dc.title="Xứ Trầm Hương"dc.subject="Văn hóa""Văn hóa" AND dc.creator="Bố Xuân Hổ"
dc.title="Chăm" AND dc.subject="Kiến trúc"
[https://sru.thuvienkhanhhoa.gov.vn/khanhhoa?operation=searchRetrieve&version=1.1&query=%22V%C4%83n+h%C3%B3a+Ch%C4%83m%22&recordSchema=marcxml&maximumRecords=10](https://sru.thuvienkhanhhoa.gov.vn/khanhhoa?operation=searchRetrieve&version=1.1&query=%22V%C4%83n+h%C3%B3a+Ch%C4%83m%22&recordSchema=marcxml&maximumRecords=10)
[https://sru.thuvienkhanhhoa.gov.vn/khanhhoa?operation=searchRetrieve&version=1.1&query=dc.title%3D%22Kh%C3%A1nh+H%C3%B2a%22&recordSchema=marcxml&maximumRecords=10](https://sru.thuvienkhanhhoa.gov.vn/khanhhoa?operation=searchRetrieve&version=1.1&query=dc.title%3D%22Kh%C3%A1nh+H%C3%B2a%22&recordSchema=marcxml&maximumRecords=10)
The skill parses raw MARC21 XML into clean, AI-ready JSON objects:
[
{
"id": "14350",
"title": "Truyền thuyết về các tháp Chăm trên miền đất cực Nam Trung bộ",
"author": "Bố, Xuân Hổ",
"authors": [
"Bố, Xuân Hổ"
],
"publisher": "Văn hóa dân tộc",
"year": "1995",
"call_number": "305.899 TR527TH",
"price": "35000đ",
"location": "Kho mở / Kho Đọc ; Kho Lưu động",
"locations": [
"Kho mở / Kho Đọc",
"Kho Lưu động"
],
"summary": "Giới thiệu văn hóa Chăm qua các tháp cổ ở miền Nam Trung Bộ, tập trung vào kiến trúc và các truyền thuyết dân gian xoay quanh việc xây dựng tháp."
}
]
recordSchema=marcxml).100), co-authors/contributors (700), and statement of responsibility (245$c).264) and traditional imprint (260).852) and DDC call numbers (082).