[libcatmandu-marc-perl] 71/208: New upstream version 1.03
Jonas Smedegaard
dr at jones.dk
Sat Oct 28 03:42:36 UTC 2017
This is an automated email from the git hooks/post-receive script.
js pushed a commit to annotated tag upstream/1.19
in repository libcatmandu-marc-perl.
commit 9297bc770956984eed1a074845b636093c141c76
Merge: 742a6e8 d216efa
Author: Jonas Smedegaard <dr at jones.dk>
Date: Sun Dec 25 14:16:57 2016 +0100
New upstream version 1.03
Build.PL | 11 +-
Changes | 83 +++-
MANIFEST | 13 +-
META.json | 10 +-
META.yml | 10 +-
README | 8 +-
cpanfile | 8 +-
lib/Catmandu/Exporter/MARC.pm | 76 ++-
lib/Catmandu/Exporter/MARC/ALEPHSEQ.pm | 53 +-
lib/Catmandu/Exporter/MARC/Base.pm | 2 +
lib/Catmandu/Exporter/MARC/ISO.pm | 87 ++++
lib/Catmandu/Exporter/MARC/MARCMaker.pm | 42 +-
lib/Catmandu/Exporter/MARC/MiJ.pm | 48 +-
lib/Catmandu/Exporter/MARC/USMARC.pm | 81 ----
lib/Catmandu/Exporter/MARC/XML.pm | 4 +-
lib/Catmandu/Fix/Bind/marc_each.pm | 6 +-
.../Fix/Condition/{marc_match.pm => marc_has.pm} | 34 +-
lib/Catmandu/Fix/Condition/marc_has_many.pm | 76 +++
lib/Catmandu/Fix/Condition/marc_match.pm | 20 +-
lib/Catmandu/Fix/Inline/marc_add.pm | 60 +--
lib/Catmandu/Fix/Inline/marc_map.pm | 122 +----
lib/Catmandu/Fix/Inline/marc_remove.pm | 33 +-
lib/Catmandu/Fix/Inline/marc_set.pm | 113 +----
lib/Catmandu/Fix/marc_add.pm | 83 ++--
lib/Catmandu/Fix/marc_decode_dollar_subfields.pm | 59 +--
lib/Catmandu/Fix/marc_in_json.pm | 118 ++---
lib/Catmandu/Fix/marc_map.pm | 279 ++++++-----
lib/Catmandu/Fix/marc_remove.pm | 126 ++---
lib/Catmandu/Fix/marc_set.pm | 141 ++----
lib/Catmandu/Fix/marc_xml.pm | 42 +-
lib/Catmandu/Importer/MARC.pm | 81 ++--
lib/Catmandu/Importer/MARC/ALEPHSEQ.pm | 37 +-
lib/Catmandu/Importer/MARC/Decoder.pm | 17 +-
lib/Catmandu/Importer/MARC/{USMARC.pm => ISO.pm} | 60 ++-
lib/Catmandu/Importer/MARC/Lint.pm | 47 +-
lib/Catmandu/Importer/MARC/MARCMaker.pm | 46 +-
lib/Catmandu/Importer/MARC/MiJ.pm | 17 +-
lib/Catmandu/Importer/MARC/MicroLIF.pm | 46 +-
lib/Catmandu/Importer/MARC/RAW.pm | 42 +-
lib/Catmandu/Importer/MARC/Record.pm | 2 +
lib/Catmandu/Importer/MARC/XML.pm | 48 +-
lib/Catmandu/MARC.pm | 532 ++++++++++++++++++++-
lib/Catmandu/MARC/Tutorial.pod | 247 ++++++++++
t/01-importer.t | 19 +-
t/02-aleph.t | 1 -
t/03-marc_map.t | 45 +-
t/05-marc_remove.t | 20 +-
t/06-old-new-internal-syntax.t | 2 +-
t/07-inline-fix.t | 43 +-
t/08-exporter.t | 20 +-
t/12-marc_set.t | 8 +-
t/16-marc-each.t | 11 +-
t/17-microlif.t | 1 -
t/18-inlineable.t | 87 ++++
t/{camel.usmarc => 19-io-string.t} | 26 +-
t/20-marc_has.t | 49 ++
t/99-deprecate.t | 30 ++
t/{camel.usmarc => camel.mrc} | 0
t/old_new.json | 4 +-
t/rug01.aleph | 2 +-
t/test.fix | 11 +-
61 files changed, 2232 insertions(+), 1217 deletions(-)
diff --cc Changes
index ad688bb,cf19545..bf8059c
--- a/Changes
+++ b/Changes
@@@ -1,5 -1,55 +1,53 @@@
Revision history for Catmandu-MARC
-{{$NEXT}}
-
+ 1.03 2016-11-03 08:48:19 CET
+ - Adding a Catmandu::MARC::Tutorial
+ - Fixing a bug in the marc_has_many
+
+ 1.02 2016-10-15 11:18:48 CEST
+ - Fixing bug when accessing subfields 0 in MARC
+
+ 1.01 2016-09-27 16:35:19 CEST
+ - Bug version
+
+ 1.00_03 2016-09-15 11:26:03 CEST
+ - Fixing dependency problems
+ - Deleting unused modules
+ - Fixing zero-padded tags treated as numbers bug
+
+ 1.00_02 2016-09-14 14:20:47 CEST
+ - Making default MARC importer the same as default MARC exporter (ISO)
+ - Deprecation notice for USMARC
+ - Adding marc_has and marc_has_many fixes
+
+ 1.00_01 2016-07-14 09:33:22 CEST
+ - Refactoring nearly all of the emit code into Catmandu::MARC module
+ - Deprecating Catmandu::Fix::Inline::marc_*
+ - Adding more pod
+ - The -record option isn't available anymore
+ - By default all marc_map will create a single array when using the split:1 option
+ - A 'nested_arrays' option to create a list of list when using split:1
+ - Fixing bug in searching for all subfields except...
+ - Adding references to MARC::Spec
+
+ 0.219 2016-06-23 16:40:11 CEST
+ - Fixed importing from MARC as string in a Perl script
+ - Adding more POD
+ - Make all Catmandu::Fix inlineable
+
+ 0.218 2016-06-14 14:05:32 CEST
+ - Fixing marc_map for inline fixes
+
+ 0.217 2016-06-14 09:48:59 CEST
+ - Fixed dependency on Catmandu 1.0201 for Inlineable
+
+ 0.216 2016-06-13 16:57:49 CEST
+ - Fixed indicator-2 selection bug
+ - Fixed marc_map value bug
+ - Support for the value in the inline fixes
+ - Fixing combinations of substring and split
+ - Fixing array in array bugs when using split and $append combinations
+
0.215 2016-02-22 09:57:07 CET
- Supporting ISO alias for USMARC importer and exporter
- Fixing MicroLIF importer
diff --cc MANIFEST
index 2b7acba,0000000..22f9285
mode 100644,000000..100644
--- a/MANIFEST
+++ b/MANIFEST
@@@ -1,70 -1,0 +1,77 @@@
+# This file was automatically generated by Dist::Zilla::Plugin::Manifest v5.039.
+Build.PL
+Changes
+LICENSE
+MANIFEST
+MANIFEST.SKIP
+META.json
+META.yml
+README
+cpanfile
+lib/Catmandu/Exporter/MARC.pm
+lib/Catmandu/Exporter/MARC/ALEPHSEQ.pm
+lib/Catmandu/Exporter/MARC/Base.pm
++lib/Catmandu/Exporter/MARC/ISO.pm
+lib/Catmandu/Exporter/MARC/MARCMaker.pm
+lib/Catmandu/Exporter/MARC/MiJ.pm
- lib/Catmandu/Exporter/MARC/USMARC.pm
+lib/Catmandu/Exporter/MARC/XML.pm
+lib/Catmandu/Fix/Bind/marc_each.pm
++lib/Catmandu/Fix/Condition/marc_has.pm
++lib/Catmandu/Fix/Condition/marc_has_many.pm
+lib/Catmandu/Fix/Condition/marc_match.pm
+lib/Catmandu/Fix/Inline/marc_add.pm
+lib/Catmandu/Fix/Inline/marc_map.pm
+lib/Catmandu/Fix/Inline/marc_remove.pm
+lib/Catmandu/Fix/Inline/marc_set.pm
+lib/Catmandu/Fix/marc_add.pm
+lib/Catmandu/Fix/marc_decode_dollar_subfields.pm
+lib/Catmandu/Fix/marc_in_json.pm
+lib/Catmandu/Fix/marc_map.pm
+lib/Catmandu/Fix/marc_remove.pm
+lib/Catmandu/Fix/marc_set.pm
+lib/Catmandu/Fix/marc_xml.pm
+lib/Catmandu/Importer/MARC.pm
+lib/Catmandu/Importer/MARC/ALEPHSEQ.pm
+lib/Catmandu/Importer/MARC/Decoder.pm
++lib/Catmandu/Importer/MARC/ISO.pm
+lib/Catmandu/Importer/MARC/Lint.pm
+lib/Catmandu/Importer/MARC/MARCMaker.pm
+lib/Catmandu/Importer/MARC/MiJ.pm
+lib/Catmandu/Importer/MARC/MicroLIF.pm
+lib/Catmandu/Importer/MARC/RAW.pm
+lib/Catmandu/Importer/MARC/Record.pm
- lib/Catmandu/Importer/MARC/USMARC.pm
+lib/Catmandu/Importer/MARC/XML.pm
+lib/Catmandu/MARC.pm
++lib/Catmandu/MARC/Tutorial.pod
+t/00-load.t
+t/01-importer.t
+t/02-aleph.t
+t/03-marc_map.t
+t/04-marc21.t
+t/05-marc_remove.t
+t/06-old-new-internal-syntax.t
+t/07-inline-fix.t
+t/08-exporter.t
+t/09-marc_add.t
+t/10-marcmaker.t
+t/11-mij.t
+t/12-marc_set.t
+t/13-marcxml.t
+t/14-marc_decode_dollar_subfields.t
+t/15-marc_in_json.t
+t/16-marc-each.t
+t/17-microlif.t
++t/18-inlineable.t
++t/19-io-string.t
++t/20-marc_has.t
++t/99-deprecate.t
++t/camel.mrc
+t/camel.mrk
- t/camel.usmarc
+t/dollar_subfields.mrc
+t/marc.xml
+t/old_new.json
+t/release-pod-syntax.t
+t/rug01.aleph
+t/sample1.lif
+t/test.fix
+t/test.ndj
diff --cc META.json
index 658e0b4,0000000..e901a1e
mode 100644,000000..100644
--- a/META.json
+++ b/META.json
@@@ -1,92 -1,0 +1,98 @@@
+{
+ "abstract" : "Catmandu modules for working with MARC data",
+ "author" : [
+ "Patrick Hochstenbach, C<< <patrick.hochstenbach at ugent.be> >>"
+ ],
+ "dynamic_config" : 0,
+ "generated_by" : "Dist::Zilla version 5.039, Dist::Milla version v1.0.15, CPAN::Meta::Converter version 2.150005",
+ "license" : [
+ "perl_5"
+ ],
+ "meta-spec" : {
+ "url" : "http://search.cpan.org/perldoc?CPAN::Meta::Spec",
+ "version" : 2
+ },
+ "name" : "Catmandu-MARC",
+ "no_index" : {
+ "directory" : [
+ "t",
+ "xt",
+ "inc",
+ "share",
+ "eg",
+ "examples"
+ ]
+ },
+ "prereqs" : {
+ "build" : {
+ "requires" : {
+ "Module::Build" : "0.28"
+ }
+ },
+ "configure" : {
+ "requires" : {
+ "Module::Build" : "0.28"
+ }
+ },
+ "develop" : {
+ "requires" : {
+ "Dist::Milla" : "v1.0.15",
+ "Test::Pod" : "1.41"
+ }
+ },
+ "runtime" : {
+ "requires" : {
- "Catmandu" : ">= 0.94, != 0.9502, != 0.9503",
++ "Carp" : "0",
++ "Catmandu" : "1.0201",
+ "JSON::XS" : "2.3",
++ "List::Util" : "0",
+ "MARC::File::MARCMaker" : "0.05",
+ "MARC::File::MiJ" : "0.04",
+ "MARC::File::XML" : "v1.0.3",
++ "MARC::Lint" : "0",
+ "MARC::Parser::RAW" : "0",
+ "MARC::Record" : "v2.0.6",
++ "Memoize" : "0",
+ "Moo" : "1.0",
++ "MooX::Singleton" : "0",
+ "YAML::XS" : "0.34",
+ "perl" : "v5.10.1"
+ }
+ },
+ "test" : {
+ "requires" : {
+ "Pod::Simple::HTML" : "3.23",
+ "Test::Deep" : "0",
+ "Test::More" : "1.001003",
+ "Test::Pod" : "0",
+ "Test::Simple" : "1.001003",
++ "Test::Warnings" : "0",
+ "XML::XPath" : "1.13"
+ }
+ }
+ },
+ "release_status" : "stable",
+ "resources" : {
+ "bugtracker" : {
+ "web" : "https://github.com/LibreCat/Catmandu-MARC/issues"
+ },
+ "homepage" : "https://github.com/LibreCat/Catmandu-MARC",
+ "repository" : {
+ "type" : "git",
+ "url" : "https://github.com/LibreCat/Catmandu-MARC.git",
+ "web" : "https://github.com/LibreCat/Catmandu-MARC"
+ }
+ },
- "version" : "0.215",
++ "version" : "1.03",
+ "x_contributors" : [
+ "Chris Cormack <chrisc at catalyst.net.nz>",
+ "Jakob Voss <voss at gbv.de>",
+ "Johann Rolschewski <jorol at cpan.org>",
+ "Johann Rolschewski <rolschewski at gmail.com>",
+ "Nicolas Steenlant <nicolas.steenlant at ugent.be>",
+ "Patrick Hochstenbach <Patrick.Hochstenbach at UGent.be>",
+ "Patrick Hochstenbach <patrick.hochstenbach at ugent.be>",
+ "Robin Sheat <robin at catalyst.net.nz>"
+ ]
+}
+
diff --cc META.yml
index 47c58fa,0000000..c452a35
mode 100644,000000..100644
--- a/META.yml
+++ b/META.yml
@@@ -1,54 -1,0 +1,60 @@@
+---
+abstract: 'Catmandu modules for working with MARC data'
+author:
+ - 'Patrick Hochstenbach, C<< <patrick.hochstenbach at ugent.be> >>'
+build_requires:
+ Module::Build: '0.28'
+ Pod::Simple::HTML: '3.23'
+ Test::Deep: '0'
+ Test::More: '1.001003'
+ Test::Pod: '0'
+ Test::Simple: '1.001003'
++ Test::Warnings: '0'
+ XML::XPath: '1.13'
+configure_requires:
+ Module::Build: '0.28'
+dynamic_config: 0
+generated_by: 'Dist::Zilla version 5.039, Dist::Milla version v1.0.15, CPAN::Meta::Converter version 2.150005'
+license: perl
+meta-spec:
+ url: http://module-build.sourceforge.net/META-spec-v1.4.html
+ version: '1.4'
+name: Catmandu-MARC
+no_index:
+ directory:
+ - t
+ - xt
+ - inc
+ - share
+ - eg
+ - examples
+requires:
- Catmandu: '>= 0.94, != 0.9502, != 0.9503'
++ Carp: '0'
++ Catmandu: '1.0201'
+ JSON::XS: '2.3'
++ List::Util: '0'
+ MARC::File::MARCMaker: '0.05'
+ MARC::File::MiJ: '0.04'
+ MARC::File::XML: v1.0.3
++ MARC::Lint: '0'
+ MARC::Parser::RAW: '0'
+ MARC::Record: v2.0.6
++ Memoize: '0'
+ Moo: '1.0'
++ MooX::Singleton: '0'
+ YAML::XS: '0.34'
+ perl: v5.10.1
+resources:
+ bugtracker: https://github.com/LibreCat/Catmandu-MARC/issues
+ homepage: https://github.com/LibreCat/Catmandu-MARC
+ repository: https://github.com/LibreCat/Catmandu-MARC.git
- version: '0.215'
++version: '1.03'
+x_contributors:
+ - 'Chris Cormack <chrisc at catalyst.net.nz>'
+ - 'Jakob Voss <voss at gbv.de>'
+ - 'Johann Rolschewski <jorol at cpan.org>'
+ - 'Johann Rolschewski <rolschewski at gmail.com>'
+ - 'Nicolas Steenlant <nicolas.steenlant at ugent.be>'
+ - 'Patrick Hochstenbach <Patrick.Hochstenbach at UGent.be>'
+ - 'Patrick Hochstenbach <patrick.hochstenbach at ugent.be>'
+ - 'Robin Sheat <robin at catalyst.net.nz>'
diff --cc README
index c9d0129,e1f0376..9e96b7e
--- a/README
+++ b/README
@@@ -1,106 -1,7 +1,112 @@@
-Catmandu::MARC - Catmandu modules for working with MARC data
+NAME
-To install run:
+ Catmandu::MARC - Catmandu modules for working with MARC data
+
+SYNOPSIS
+
+ # On the command line
+
+ $ catmandu convert MARC to JSON < data.mrc
+
+ $ catmandu convert MARC --type MiJ to YAML < data.marc_in_json
+
+ $ catmandu convert MARC --fix "marc_map(245,title)" < data.mrc
+
+ $ catmandu convert MARC --fix myfixes.txt < data.mrc
+
+ myfixes:
-
++
+ marc_map("245a", title)
+ marc_map("5**", note.$append)
+ marc_map('710','my.authors.$append')
+ marc_map('008_/35-35','my.language')
+ remove_field(record)
+ add_field(my.funny.field,'test123')
+
+ $ catmandu import MARC --fix myfixes.txt to ElasticSearch --index_name 'catmandu' < data.marc
+
+ # In perl
+ use Catmandu;
+
+ my $importer = Catmandu->importer('MARC', file => 'data.mrc' );
+ my $fixer = Catmandu->fixer('myfixes.txt');
+ my $store = Catmandu->store('ElasticSearch', index_name => 'catmandu');
+
+ $store->add_many(
+ $fixer->fix($importer)
+ );
+
+MODULES
+
+ * Catmandu::Importer::MARC
+
+ * Catmandu::Exporter::MARC
+
+ * Catmandu::Fix::marc_map
+
+ * Catmandu::Fix::marc_add
+
+ * Catmandu::Fix::marc_remove
+
+ * Catmandu::Fix::marc_xml
+
+ * Catmandu::Fix::marc_in_json
+
++ * Catmandu::Fix::marc_decode_dollar_subfields
++
+ * Catmandu::Fix::marc_set
+
+ * Catmandu::Fix::Bind::marc_each
+
+ * Catmandu::Fix::Condition::marc_match
+
++ * Catmandu::Fix::Condition::marc_has
++
++ * Catmandu::Fix::Condition::marc_has_many
++
+ * Catmandu::Fix::Inline::marc_map
+
+ * Catmandu::Fix::Inline::marc_add
+
+ * Catmandu::Fix::Inline::marc_remove
+
+DESCRIPTION
+
+ With Catmandu, LibreCat tools abstract digital library and research
+ services as data warehouse processes. As stores we reuse MongoDB or
+ ElasticSearch providing us with developer friendly APIs. Catmandu works
+ with international library standards such as MARC, MODS and Dublin
+ Core, protocols such as OAI-PMH, SRU and open repositories such as
+ DSpace and Fedora. And, of course, we speak the evolving Semantic Web.
+
+ Follow us on http://librecat.org and read an introduction into Catmandu
+ data processing at https://github.com/LibreCat/Catmandu/wiki.
+
+SEE ALSO
+
+ Catmandu, Catmandu::Importer, Catmandu::Fix, Catmandu::Store
+
+AUTHOR
+
+ Patrick Hochstenbach, <patrick.hochstenbach at ugent.be>
+
+CONTRIBUTORS
+
+ * Nicolas Steenlant, <nicolas.steenlant at ugent.be>
+
+ * Nicolas Franck, <nicolas.franck at ugent.be>
+
+ * Johann Rolschewski, jorol at cpan.org
+
+ * Chris Cormack
+
+ * Robin Sheat
+
+LICENSE AND COPYRIGHT
+
+ This program is free software; you can redistribute it and/or modify it
+ under the terms of either: the GNU General Public License as published
+ by the Free Software Foundation; or the Artistic License.
+
+ See http://dev.perl.org/licenses/ for more information.
- $ perl ./Build.PL
- $ ./Build test
- $ ./Build install
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-perl/packages/libcatmandu-marc-perl.git
More information about the Pkg-perl-cvs-commits
mailing list