{"id":21198891,"url":"https://github.com/natlibfi/aleph-x-query","last_synced_at":"2025-03-14T22:21:05.127Z","repository":{"id":36338839,"uuid":"40643560","full_name":"NatLibFi/aleph-x-query","owner":"NatLibFi","description":"A module for querying records from Aleph X-service","archived":false,"fork":false,"pushed_at":"2017-10-25T18:42:04.000Z","size":12,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":9,"default_branch":"master","last_synced_at":"2025-01-21T14:46:24.946Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"lgpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/NatLibFi.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-08-13T06:54:07.000Z","updated_at":"2017-10-25T18:42:18.000Z","dependencies_parsed_at":"2022-09-25T06:02:36.239Z","dependency_job_id":null,"html_url":"https://github.com/NatLibFi/aleph-x-query","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NatLibFi%2Faleph-x-query","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NatLibFi%2Faleph-x-query/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NatLibFi%2Faleph-x-query/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NatLibFi%2Faleph-x-query/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/NatLibFi","download_url":"https://codeload.github.com/NatLibFi/aleph-x-query/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243653392,"owners_count":20325734,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-20T19:54:01.459Z","updated_at":"2025-03-14T22:21:05.108Z","avatar_url":"https://github.com/NatLibFi.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# A module for querying records from Aleph X-service\n\n## Installation\n\n```\nnpm install aleph-x-query\n```\n\n## Usage\n\nTo query an index (op=find):\n\n```\nAlephXServices = require('aleph-x-query');\n\nvar aleph = new AlephXServices({\n\tXendpoint: 'http://my-aleph-installation/X' \n});\n\n// The parameters are: base, index, and query term.\nvar base = 'fin11';\nvar index = 'WNA';\nvar searchTerm = 'Virtanen';\n\naleph.query(base, index, searchTerm).then(function(records) {\n\t// do something with records. The records are instances of marc-record-js \n\n}).catch(function(e) {\n\t// handle errors\n}).done();\n\n```\n## License and copyright\n\nCopyright (c) 2015-2017 University Of Helsinki (The National Library Of Finland)\n\nThis project's source code is licensed under the terms of **GNU Lesser General Public License Version 3**  or any later version.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnatlibfi%2Faleph-x-query","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnatlibfi%2Faleph-x-query","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnatlibfi%2Faleph-x-query/lists"}