library: name is Room for Books (no article)

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_013wi3ZSot4XbUViwRFgLpRf
This commit is contained in:
Claude
2026-11-07 01:24:58 +00:00
parent 442b45c2e0
commit 0af833a39d
3 changed files with 9 additions and 9 deletions
+1 -1
View File
@@ -1,4 +1,4 @@
# A Room for Books: a home library (Koha + the A Room for Books site, in Docker) # Room for Books: a home library (Koha + the Room for Books site, in Docker)
A self-hosted library catalogue you can set up in one command: A self-hosted library catalogue you can set up in one command:
+5 -5
View File
@@ -37,8 +37,8 @@ unless ( -e $flag ) {
} }
# Staff home page block (Koha 26.05 keeps these in the HTML customizations tool). Rewritten each start. # Staff home page block (Koha 26.05 keeps these in the HTML customizations tool). Rewritten each start.
my $html = '<div class="main-heading"><h3>A Room for Books</h3></div><ul class="list-unstyled">' my $html = '<div class="main-heading"><h3>Room for Books</h3></div><ul class="list-unstyled">'
. '<li><a class="btn btn-primary" href="/add/">Open A Room for Books</a> (library, lend / return, people, add books)</li>' . '<li><a class="btn btn-primary" href="/add/">Open Room for Books</a> (library, lend / return, people, add books)</li>'
. '<li><a href="/add/#find">Find a book</a></li></ul>'; . '<li><a href="/add/#find">Find a book</a></li></ul>';
my ($id) = $dbh->selectrow_array(q{SELECT id FROM additional_contents WHERE code = 'library_tools'}); my ($id) = $dbh->selectrow_array(q{SELECT id FROM additional_contents WHERE code = 'library_tools'});
unless ($id) { unless ($id) {
@@ -46,10 +46,10 @@ unless ($id) {
VALUES ('html_customizations', 'library_tools', 'IntranetmainUserblock', NULL, CURDATE(), 1)}); VALUES ('html_customizations', 'library_tools', 'IntranetmainUserblock', NULL, CURDATE(), 1)});
$id = $dbh->last_insert_id( undef, undef, 'additional_contents', 'id' ); $id = $dbh->last_insert_id( undef, undef, 'additional_contents', 'id' );
$dbh->do( q{INSERT INTO additional_contents_localizations (additional_content_id, title, content, lang) $dbh->do( q{INSERT INTO additional_contents_localizations (additional_content_id, title, content, lang)
VALUES (?, 'A Room for Books', ?, 'default')}, undef, $id, $html ); VALUES (?, 'Room for Books', ?, 'default')}, undef, $id, $html );
say "ensure: added the staff home 'A Room for Books' block"; say "ensure: added the staff home 'Room for Books' block";
} }
else { else {
$dbh->do( q{UPDATE additional_contents_localizations SET title = 'A Room for Books', content = ? WHERE additional_content_id = ? AND lang = 'default'}, $dbh->do( q{UPDATE additional_contents_localizations SET title = 'Room for Books', content = ? WHERE additional_content_id = ? AND lang = 'default'},
undef, $html, $id ); undef, $html, $id );
} }
+3 -3
View File
@@ -3,7 +3,7 @@
<head> <head>
<meta charset="utf-8"> <meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="viewport" content="width=device-width, initial-scale=1">
<title>A Room for Books</title> <title>Room for Books</title>
<style> <style>
:root { :root {
--bg: #f6f5f1; --card: #ffffff; --ink: #1d2320; --muted: #5b655f; --line: #dcdad2; --bg: #f6f5f1; --card: #ffffff; --ink: #1d2320; --muted: #5b655f; --line: #dcdad2;
@@ -147,7 +147,7 @@
<body> <body>
<main> <main>
<header> <header>
<h1 id="title">A Room for Books</h1> <h1 id="title">Room for Books</h1>
<nav class="tabs" aria-label="Sections"> <nav class="tabs" aria-label="Sections">
<a id="tab-library" href="#library" class="on">Library</a> <a id="tab-library" href="#library" class="on">Library</a>
<a id="tab-mine" href="#mine" hidden>My books</a> <a id="tab-mine" href="#mine" hidden>My books</a>
@@ -1197,7 +1197,7 @@
for (const t of ['add', 'lend', 'people']) $('tab-' + t).hidden = viewer; for (const t of ['add', 'lend', 'people']) $('tab-' + t).hidden = viewer;
$('csvtools').hidden = viewer; $('csvtools').hidden = viewer;
const names = { library: 'The library', book: 'The library', add: 'Add books', lend: 'Lend / return', people: 'People', card: 'Library card', cards: 'Library cards', mine: 'My books' }; const names = { library: 'The library', book: 'The library', add: 'Add books', lend: 'Lend / return', people: 'People', card: 'Library card', cards: 'Library cards', mine: 'My books' };
document.title = names[view] + ' - A Room for Books'; document.title = names[view] + ' - Room for Books';
if (view === 'book') loadBook(m[1]); if (view === 'book') loadBook(m[1]);
else if (view === 'mine') loadMine(); else if (view === 'mine') loadMine();
else if (view === 'add') $('code').focus(); else if (view === 'add') $('code').focus();