Add resolver, server, PDF rendering and web app
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This commit is contained in:
1 parent
6a7fcdc4b8
commit
bdfdf581f3
59 files changed
+4088
No files matched your search
@@ -0,0 +1,13 @@
|
||||
import { cardLines, parseCallNumber } from '../../shared/callnumber.ts';
|
||||
|
||||
export function CallNo({ value, approximate }: { value: string | null; approximate?: boolean }) {
|
||||
if (!value) return <span class="callno muted">No call number</span>;
|
||||
const cn = parseCallNumber(value);
|
||||
const lines = cn ? cardLines(cn) : [value, ''];
|
||||
return (
|
||||
<span class="callno">
|
||||
<span class="callno-line">{lines[0]}{approximate ? <span class="approx" title="Approximate number"> ~</span> : null}</span>
|
||||
<span class="callno-line">{lines[1] || ' '}</span>
|
||||
</span>
|
||||
);
|
||||
}
|
||||
Reference in new issue
Block a user