Time |
Nick |
Message |
02:29 |
|
stevenyvr2 joined #evergreen |
02:29 |
|
stevenyvr2 left #evergreen |
05:19 |
|
Rish joined #evergreen |
08:33 |
|
Dyrcona joined #evergreen |
08:34 |
* Dyrcona |
ponders adding "strict" and "not-so-strict" modes to OpenILS::Utils::Normalize::clean_marc(). |
08:34 |
Dyrcona |
Yes, I'm likely putting in another 7.5 hours on this "day off." |
08:34 |
Dyrcona |
That'll make 15 extra hours of the whole weekend. |
08:34 |
Dyrcona |
Good thing I get comp. time. |
08:35 |
* Dyrcona |
is fairly sure that no one here knows what this "day off" means, including Dyrcona himself. |
10:00 |
|
dox left #evergreen |
10:28 |
bshum |
Day off? Whatever. |
11:42 |
|
RBecker joined #evergreen |
11:48 |
|
stevenyvr2 joined #evergreen |
11:49 |
|
stevenyvr2 left #evergreen |
11:49 |
jcamins |
Dyrcona: you should call the modes "like your data will ever validate against this!" and "oh my god, my eyes!" |
11:49 |
jcamins |
With exclamation marks. |
11:50 |
* jcamins |
's MARC records are mocking him. |
12:03 |
Dyrcona |
heh. |
12:04 |
Dyrcona |
jcamins: The code that I'm using right now doesn't really try validating. |
12:05 |
Dyrcona |
It basically says, "Oh, you have a subfield code that isn't a-z or 0-9. I'm deleting the subfield. Oh, you have a data field with no subfields. I'm deleting that, too." |
12:12 |
Dyrcona |
That's the generic bits anyway. There is an additional check specific to this particular set of MARC records. |
12:13 |
Dyrcona |
I'm using a wrapper around OpenIL::Utils::Normalize::clean_marc in my application. |
12:13 |
* Dyrcona |
daemonizes himself and goes back to watching messages scroll in a console window. |
12:30 |
* Dyrcona |
forks a foreground process. |
12:30 |
Dyrcona |
Heh. Now, it also deletes "empty" subfields. |
12:30 |
Dyrcona |
I should call it "Kiss your MARC goodbye." ;) |
12:44 |
jcamins |
Dyrcona: doesn't MARC::Record already handle that? |
12:44 |
jcamins |
(subfield-less fields and data-less subfields) |
12:45 |
Dyrcona |
jcamins: I don't think so. It only seems to complain about empty data fields, not subfields. |
12:45 |
Dyrcona |
I made a patch to it yesterday to match subfield codes by regexp. |
12:45 |
jcamins |
Ooh, that's useful! |
12:45 |
Dyrcona |
Also, I'm defining empty as /^\s*$/ |
12:46 |
Dyrcona |
So all spaces or actually empty, so I'm getting things that MARC::Record would miss anyway. |
12:47 |
Dyrcona |
https://rt.cpan.org/Public/Bug/Display.html?id=88682 |
12:49 |
Dyrcona |
Line 458 could probably be improved. Maybe I'll submit an updated patch. |
12:49 |
jcamins |
Still looks useful. |
12:49 |
* jcamins |
heads to the greenmarket. |
12:50 |
Dyrcona |
Well, I guess it is line 461 after the patch is applied. |
12:50 |
Dyrcona |
I find it very useful. |
13:05 |
Dyrcona |
And improve patch is sent. |
13:05 |
Dyrcona |
improved, even. |
14:24 |
|
stevenyvr2 joined #evergreen |
16:11 |
|
Dyrcona joined #evergreen |
22:01 |
|
zerick joined #evergreen |