projects
/
Biblio-Z3950.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8c24266
)
configurable pageCount_suffix
author
Dobrica Pavlinusic
<dpavlin@rot13.org>
Wed, 25 Apr 2012 13:54:10 +0000
(15:54 +0200)
committer
Dobrica Pavlinusic
<dpavlin@rot13.org>
Wed, 25 Apr 2012 13:54:10 +0000
(15:54 +0200)
GoogleBooks.pm
patch
|
blob
|
history
diff --git
a/GoogleBooks.pm
b/GoogleBooks.pm
index
7806425
..
436f575
100644
(file)
--- a/
GoogleBooks.pm
+++ b/
GoogleBooks.pm
@@
-9,6
+9,9
@@
use JSON::XS;
use base 'Scraper';
+my $pageCount_suffix = 'p.'; # English
+$pageCount_suffix = ' str.'; # Croatian
+
my $debug = $ENV{DEBUG} || 0;
sub diag {
@@
-141,7
+144,7
@@
sub next_marc {
);
}
- $marc->add_fields(300,' ',' ','a' => $vi->{pageCount} .
'p.'
) if $vi->{pageCount};
+ $marc->add_fields(300,' ',' ','a' => $vi->{pageCount} .
$pageCount_suffix
) if $vi->{pageCount};
$marc->add_fields(520,' ',' ','a' => $vi->{description} ) if $vi->{description};