Integrate the app end to end, add class outline, browser check and README
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This commit is contained in:
1 parent
bdfdf581f3
commit
468cafc6db
17 files changed
+702
-16
No files matched your search
@@ -64,8 +64,12 @@ export function parseMarcRecord(rec: Node): MarcFields {
|
||||
const fields = fieldsOf(rec);
|
||||
const all = (tag: string) => fields.filter((f) => f.tag === tag);
|
||||
|
||||
// Leader position 6 is the record type. Videos, sound recordings and the like carry their own
|
||||
// classification (a DVD of a novel is not the novel's shelf number), so only text records count.
|
||||
const leader = text(rec['leader']);
|
||||
const isText = leader.length < 7 || 'at'.includes(leader[6]);
|
||||
const lcc: Candidate[] = [];
|
||||
for (const f of all('050')) {
|
||||
for (const f of isText ? all('050') : []) {
|
||||
const a = sub(f, 'a');
|
||||
if (!a) continue;
|
||||
const b = sub(f, 'b');
|
||||
|
||||
Reference in new issue
Block a user