|
Lines 122-134
if(defined $localcust) { #local customize module
Link Here
|
| 122 |
if($marc_mod_template ne '') { |
122 |
if($marc_mod_template ne '') { |
| 123 |
my @templates = GetModificationTemplates(); |
123 |
my @templates = GetModificationTemplates(); |
| 124 |
foreach my $this_template (@templates) { |
124 |
foreach my $this_template (@templates) { |
| 125 |
if($this_template->{'name'} eq $marc_mod_template) { |
125 |
if($this_template->{'name'} eq $marc_mod_template) { |
| 126 |
$marc_mod_template_id = $this_template->{'template_id'}; |
126 |
if($marc_mod_template_id < 0) { |
| 127 |
last; |
127 |
$marc_mod_template_id = $this_template->{'template_id'}; |
| 128 |
} |
128 |
} else { |
|
|
129 |
print "WARNING: MARC modification template name " . |
| 130 |
"'$marc_mod_template' matches multiple templates. " . |
| 131 |
"Please rename these templates\n"; |
| 132 |
exit 1; |
| 133 |
} |
| 134 |
} |
| 129 |
} |
135 |
} |
| 130 |
if($marc_mod_template_id < 0) { |
136 |
if($marc_mod_template_id < 0) { |
| 131 |
die "Can't located MARC modification template '$marc_mod_template'\n"; |
137 |
die "Can't located MARC modification template '$marc_mod_template'\n"; |
| 132 |
} |
138 |
} |
| 133 |
} |
139 |
} |
| 134 |
|
140 |
|
| 135 |
- |
|
|