projects
/
webpac2
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
595b9ee
)
marc_clone and marc_original_order now preserve subfields order
author
Dobrica Pavlinusic
<dpavlin@rot13.org>
Wed, 27 Nov 2013 15:40:23 +0000
(16:40 +0100)
committer
Dobrica Pavlinusic
<dpavlin@rot13.org>
Wed, 27 Nov 2013 15:40:23 +0000
(16:40 +0100)
lib/WebPAC/Normalize/MARC.pm
patch
|
blob
|
history
diff --git
a/lib/WebPAC/Normalize/MARC.pm
b/lib/WebPAC/Normalize/MARC.pm
index
c77e5b4
..
84eb485
100644
(file)
--- a/
lib/WebPAC/Normalize/MARC.pm
+++ b/
lib/WebPAC/Normalize/MARC.pm
@@
-493,6
+493,8
@@
sub marc_remove {
die "marc_remove needs record number" unless defined($f);
+ delete $created_with_marc_template->{$f}; # remote magic marker
+
my $marc = $marc_record->[ $marc_record_offset ];
warn "### marc_remove before = ", dump( $marc ), $/ if ($debug > 2);
@@
-571,6
+573,8
@@
sub marc_original_order {
warn "## marc_original_order($to,$from) source = ", dump( $r ),$/ if ($debug > 1);
+ $created_with_marc_template->{$to}++; # don't use magic
+
foreach my $d (@$r) {
if ( ! ref($d) ) {