MAM for Koha 1.1: attach scans, documents, audio and video to records and items (beta, testers welcome)
MAM (Media Asset Management) for Koha Hello everyone, I'd like to share an open-source project I've been building for our library: MAM (Media Asset Management) for Koha. It gives Koha a proper home for digital media: scanned books and theses, PDFs, images, audio and video, attached to bibliographic records or to individual items. How it works A cataloguer clicks Attach Media on a record in the staff interface (or on an item, from its Actions menu). The MAM application opens in a new tab, already signed in with their Koha account. There is no second password, and Koha permissions decide who may attach media. They upload the file. It is checked, virus-scanned, and prepared for viewing. After approval, the link is written back to Koha through the REST API: MARC 856 for a record, or the item's URL (952$u) for a copy. Patrons open it from the OPAC in a secure viewer, with document search, video streaming, zoomable images, and a watermark. View counts reflect real reading or watching, not page loads. A 20-second walkthrough: <https://github.com/tahir242/koha-media-manager/blob/main/docs/images/attach-media-flow.gif> https://github.com/tahir242/koha-media-manager/blob/main/docs/images/attach-... Try it in one command. If you have Docker, this starts Koha 26.05, the MAM, and the plugin, already configured, on your own computer: git clone https://github.com/tahir242/koha-mam.git cd koha-mam/demo docker compose up -d --build Then open <http://staff.localhost:8081/>http://staff.localhost:8081 and sign in as librarian / Library2026. The first start takes 10–20 minutes. The two parts - Koha plugin (Koha 22.11 to 26.05): <https://github.com/tahir242/koha-media-manager> https://github.com/tahir242/koha-media-manager - MAM application (Laravel/PHP; MySQL, MariaDB or PostgreSQL; local disk, NAS or S3 storage): <https://github.com/tahir242/koha-mam> https://github.com/tahir242/koha-mam The plugin stores no media and never edits records itself; publishing goes through Koha's official REST API. It's in beta. I'm looking for 3–5 libraries willing to try it on a test server and tell me what works and what doesn't, especially libraries with digitisation projects, theses, or audio-visual collections. Feedback is welcome on this list, by email, or in the project's GitHub Discussions: <https://github.com/tahir242/koha-mam/discussions> https://github.com/tahir242/koha-mam/discussions Both parts are open source: the plugin under the GPL-3.0-or-later, like Koha, and the MAM application under the MIT license. Thank you, -- Regards, *Tahir Ali Channa* Mob# +92-334-3532646
I have begun implementing an SRU client against my Koha catalog. See: http://index.distantreader.org My Koha catalog includes about 1.4 million records. About 2/3 of them are MARC records describing scholarly open access journal articles. About 1/3 of them are MARC records describing open access and public domain etexts ("books"). My bare-bones catalog interface can be seen at http://catalog.distantreader.org As you may or may not know, SRU (Search/Retrieve via URL) is a Web services protocol used to query things like library catalogs. See: https://www.loc.gov/standards/sru/ I used Koha's administrative interface to turn on the SRU server, and then I patched the SRU server's source code so the server supports facets: https://gist.github.com/a-roussos/cdafddf9554b4b9f9a5a1d353e027be7 With these things in place, I then wrote two XSL stylesheets. The first transforms an SRU Explain request into a human readable search form. The second transforms an SRU SearchRetrieve request into a set of human readable search results. Temporarily, see: https://distantreader.org/tmp/explain.txt https://distantreader.org/tmp/searchRetrieve.txt Consequently, when you go to the following URL, you are presented with a rudimentary form allowing you to query my Koha catalog: http://index.distantreader.org The server supports a query language called CQL (Common Query Language) which is very expressive but requires practice. Example queries include: libraries libraries and privacy libraries and dc.subject=privacy libraries and dc.subject=privacy and koha.itemtype=article Search results include rudimentary bibliographic information as well as links to the full text of given items, usually. ;-) Why is this cool? It is cool because the SRU server returns results as a well-formed and valid XML stream, and consequently the search results can be transformed in a whole bunch of different ways. For example, I created a command-line SRU client that takes a query as input (like the ones above), searches my catalog, finds all results, and downloads the full text to a folder. Thus, my query returns each item found plus their bibliographic details. Temporarily see: https://distantreader.org/tmp/reader-sru-retrieve.py This paves the way for distant reading. For example, the following query downloads the whole of Plato's works, and it does it in less than thirty seconds: dc.author=plato and koha.ccode=alex My next step will be to finish refining an even more refined SRU interface to my catalog using a technology called MCP (Model Context Protocol). This will facilitate two things. First, it will eliminate the need to know CQL, and second, it will evaluate search results and make them much more meaningful. koha++ A very very functional bibliographic catalog. Thank you! -- Eric Lease Morgan <eric_morgan@infomotions.com>
participants (2)
-
Eric Lease Morgan -
Tahir Ali Channa