|
Revision 788, 335 bytes
(checked in by thomase, 2 years ago)
|
Take a modsCollection file produced through biblioextraction and enrich it with material contained in another modsCollection and save the result to a third (new) file. This lets us scoop up isbns, urls and (eventually) authors etc. that have already been parsed out from catalog records via the old AWMC bibliography database.
|
- Property svn:eol-style set to
native
|
| Line | |
|---|
| 1 |
check for books that haven't had an added title: |
|---|
| 2 |
|
|---|
| 3 |
//mods/titleInfo[not(@type)]/ancestor::mods/descendant::*[local-name()='p' and not(contains(normalize-space(.), '”'))]/ancestor::mods |
|---|
| 4 |
|
|---|
| 5 |
|
|---|
| 6 |
check for works that have too many titles (i.e., there was a shorttitle match, but not a long title match) |
|---|
| 7 |
|
|---|
| 8 |
//mods[count(titleInfo) > 2] |
|---|
| 9 |
|
|---|
| 10 |
|
|---|
| 11 |
|
|---|