Author SHA1 Message Date
Claude f0a9728016 library: bare address opens Room for Books; Koha's own screens via the menu
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_013wi3ZSot4XbUViwRFgLpRf
2026-11-07 03:33:53 +00:00
3 changed files with 10 additions and 2 deletions
+5
View File
@@ -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/`) ## The home page (the Room for Books site at `/add/`)
**One address.** `http://<ip>:<port>/` (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 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** (**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, (top right) holds the rest: browse all books, lend / return, people and library cards, barcodes and settings, export / import,
+3
View File
@@ -78,6 +78,9 @@ if [ ! -d "/etc/koha/sites/$INST" ]; then
cat > /etc/koha/apache-quickadd.conf << APACHE cat > /etc/koha/apache-quickadd.conf << APACHE
<IfModule mod_proxy_http.c> <IfModule mod_proxy_http.c>
RedirectMatch ^/add\$ /add/ 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%/}/ ProxyPass /add/ ${KOHA_QUICKADD_URL%/}/
ProxyPassReverse /add/ ${KOHA_QUICKADD_URL%/}/ ProxyPassReverse /add/ ${KOHA_QUICKADD_URL%/}/
${SSO_BLOCK} ${SSO_BLOCK}
+2 -2
View File
@@ -1347,8 +1347,8 @@
// The public catalogue is off by default: only link to it when a public address was configured. // The public catalogue is off by default: only link to it when a public address was configured.
$('lnk-opac').hidden = !s.opac_url; $('lnk-opac').hidden = !s.opac_url;
if (s.opac_url) $('lnk-opac').href = s.opac_url + '/'; if (s.opac_url) $('lnk-opac').href = s.opac_url + '/';
$('lnk-staff').href = staffRoot() + '/'; $('lnk-staff').href = staffRoot() + '/cgi-bin/koha/mainpage.pl';
$('lnk-staff').hidden = viewer; $('footkoha').href = staffRoot() + '/'; $('lnk-staff').hidden = viewer; $('footkoha').href = staffRoot() + '/cgi-bin/koha/mainpage.pl';
$('footname').textContent = 'Room for Books' + (s.library_name ? ' · ' + s.library_name : ''); $('footname').textContent = 'Room for Books' + (s.library_name ? ' · ' + s.library_name : '');
$('lnk-labels').href = staffRoot() + '/cgi-bin/koha/labels/label-edit-range.pl'; $('lnk-labels').href = staffRoot() + '/cgi-bin/koha/labels/label-edit-range.pl';
if (s.locations && s.locations.length) { if (s.locations && s.locations.length) {