[libcatmandu-marc-perl] 195/208: Version up
Jonas Smedegaard
dr at jones.dk
Sat Oct 28 03:42:50 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 744d3f4ee1e52372bec36718195d9c563ecaa03b
Author: Patrick Hochstenbach <patrick.hochstenbach at ugent.be>
Date: Sat Jul 22 11:46:43 2017 +0200
Version up
---
Changes | 1 +
lib/Catmandu/Fix/marc_paste.pm | 20 +++++++++++++++-----
2 files changed, 16 insertions(+), 5 deletions(-)
diff --git a/Changes b/Changes
index a05b5a7..8818529 100644
--- a/Changes
+++ b/Changes
@@ -3,6 +3,7 @@ Revision history for Catmandu-MARC
{{$NEXT}}
- Adding skip_errors option in the importer and exporter
- More POD
+ - Added more examples to the Catmandu::MARC::Tutorial
1.171 2017-07-13 08:50:35 CEST
- Fixing 0 as false bug in marc_spec
diff --git a/lib/Catmandu/Fix/marc_paste.pm b/lib/Catmandu/Fix/marc_paste.pm
index 0bbfc72..1724019 100644
--- a/lib/Catmandu/Fix/marc_paste.pm
+++ b/lib/Catmandu/Fix/marc_paste.pm
@@ -31,14 +31,24 @@ Catmandu::Fix::marc_paste - paste a MARC structured field back into the MARC rec
=head1 SYNOPSIS
- # Copy a MARC field
+ # Copy and paste to the end of the record
marc_copy(001, fixed001)
+ set_fieldfixed001.$first.tag,002)
+ marc_paste(fixed001)
- # Change it
- set_fieldfixed001.0.tag,002)
+ # Copy and paste in place (rename a field)
+ do marc_each()
+ if marc_has(001)
+ # Copy a MARC field
+ marc_copy(001, fixed001)
- # Paste it back into the record
- marc_paste(fixed001)
+ # Change it
+ set_fieldfixed001.$first.tag,002)
+
+ # Paste it back into the record
+ marc_paste(fixed001)
+ end
+ end
=head1 DESCRIPTION
--
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