From f0a972801660fd04fa9fc0111f91cec956066fb2 Mon Sep 17 00:00:00 2001 From: Claude Date: Sat, 7 Nov 2026 03:33:53 +0000 Subject: [PATCH] library: bare address opens Room for Books; Koha's own screens via the menu Co-Authored-By: Claude Sonnet 5.5 Claude-Session: https://claude.ai/code/session_013wi3ZSot4XbUViwRFgLpRf --- library/README.md | 5 +++++ library/koha/entrypoint.sh | 3 +++ library/quickadd/index.html | 4 ++-- 3 files changed, 10 insertions(+), 2 deletions(-) diff --git a/library/README.md b/library/README.md index c94bded..ef7a540 100644 --- a/library/README.md +++ b/library/README.md @@ -210,6 +210,11 @@ Staff who are signed in to the library site (and allowed to edit the catalogue) ## The home page (the Room for Books site at `/add/`) +**One address.** `http://:/` (and later `https://your-domain/` behind Caddy) opens this page; there is no separate +port to remember. Koha's own staff screens live on the same address at `/cgi-bin/koha/mainpage.pl`, reached from the menu +(*Koha (full staff screens)*). Everyone signs in at the same prompt: staff with the admin login, borrowers with their card number +and password, the guest with the guest login. + One simple page: a **Look up** box (books by title, author or ISBN, and people by name or card number), four big buttons (**Check out**, **Return**, **Add books**, **Add a person**) and **Recently added** books with their covers. The **menu** (top right) holds the rest: browse all books, lend / return, people and library cards, barcodes and settings, export / import, diff --git a/library/koha/entrypoint.sh b/library/koha/entrypoint.sh index 6d7bbae..a71bca8 100755 --- a/library/koha/entrypoint.sh +++ b/library/koha/entrypoint.sh @@ -78,6 +78,9 @@ if [ ! -d "/etc/koha/sites/$INST" ]; then cat > /etc/koha/apache-quickadd.conf << APACHE RedirectMatch ^/add\$ /add/ + # The bare address (http://ip:port/ or https://your-domain/) opens the Room for Books home page; + # Koha's own staff screens stay at /cgi-bin/koha/mainpage.pl. + RedirectMatch ^/\$ /add/ ProxyPass /add/ ${KOHA_QUICKADD_URL%/}/ ProxyPassReverse /add/ ${KOHA_QUICKADD_URL%/}/ ${SSO_BLOCK} diff --git a/library/quickadd/index.html b/library/quickadd/index.html index 2b68bc7..1223f9b 100644 --- a/library/quickadd/index.html +++ b/library/quickadd/index.html @@ -1347,8 +1347,8 @@ // The public catalogue is off by default: only link to it when a public address was configured. $('lnk-opac').hidden = !s.opac_url; if (s.opac_url) $('lnk-opac').href = s.opac_url + '/'; - $('lnk-staff').href = staffRoot() + '/'; - $('lnk-staff').hidden = viewer; $('footkoha').href = staffRoot() + '/'; + $('lnk-staff').href = staffRoot() + '/cgi-bin/koha/mainpage.pl'; + $('lnk-staff').hidden = viewer; $('footkoha').href = staffRoot() + '/cgi-bin/koha/mainpage.pl'; $('footname').textContent = 'Room for Books' + (s.library_name ? ' ยท ' + s.library_name : ''); $('lnk-labels').href = staffRoot() + '/cgi-bin/koha/labels/label-edit-range.pl'; if (s.locations && s.locations.length) {