{"id":20570083,"url":"https://github.com/digibib/koha-indexer","last_synced_at":"2025-05-09T19:30:40.520Z","repository":{"id":140037140,"uuid":"82454562","full_name":"digibib/koha-indexer","owner":"digibib","description":null,"archived":true,"fork":false,"pushed_at":"2018-05-30T12:33:08.000Z","size":28,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":17,"default_branch":"master","last_synced_at":"2025-03-06T09:49:12.523Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/digibib.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-02-19T11:35:12.000Z","updated_at":"2024-10-30T08:42:58.000Z","dependencies_parsed_at":null,"dependency_job_id":"a5858151-ee68-490c-b68d-4fe06b8360da","html_url":"https://github.com/digibib/koha-indexer","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/digibib%2Fkoha-indexer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/digibib%2Fkoha-indexer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/digibib%2Fkoha-indexer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/digibib%2Fkoha-indexer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/digibib","download_url":"https://codeload.github.com/digibib/koha-indexer/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253312062,"owners_count":21888562,"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-16T05:11:24.758Z","updated_at":"2025-05-09T19:30:40.505Z","avatar_url":"https://github.com/digibib.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Koha-indexer\n\nKoha-indexer is a daemon that periodically queries Koha's MySQL database for popularity and availability data, persists this data on disk, and exposes it via a simple HTTP API queryable by biblionumber.\n\n## Usage\n\n```\nUsage of koha-indexer:\n  -db string\n      Path to db file, will be created if not existing (default \"koharecords.db\")\n  -dsn string\n      DSN for connecting to MySQL (username:password@hostname/dbname)\n  -freq duration\n      Query frequency (default 15m0s)\n  -http string\n      HTTP serve address (default \":8009\")\n  -initial-import\n      Perform inital import of all availability data via SPARQL\n  -services string\n      Services availablity endpoint (default \"http://services:8005/publication/\")\n  -sparql string\n      Fuseki SPARQL endpoint (default \"http://fuseki:3030/ds/sparql\")\n  -update\n      Send changes in availability to services\n```\n\n\n## HTTP API\n\n#### GET /record/{biblionumber}\n\nExample response:\n\n```\n{\n  \"Biblionumber\": 1931218,\n  \"Updated\": \"2017-04-11T10:11:05.783324589Z\",\n  \"ItemsTotal\": 57,\n  \"Checkouts1m\": 89,\n  \"Checkouts6m\": 454,\n  \"Branches\": [\n    \"fbje\",\n    \"fbjo\",\n    \"fbol\",\n    \"ffur\",\n    \"fgam\",\n    \"fgry\",\n    \"fhol\",\n    \"flam\",\n    \"fmaj\",\n    \"fnor\",\n    \"fnyd\",\n    \"fopp\",\n    \"frik\",\n    \"frmm\",\n    \"froa\",\n    \"from\",\n    \"fsto\",\n    \"ftor\",\n    \"hutl\"\n  ],\n  \"Availability\": [\n    \"fbjo\",\n    \"flam\"\n  ]\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdigibib%2Fkoha-indexer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdigibib%2Fkoha-indexer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdigibib%2Fkoha-indexer/lists"}