Bugzilla – Attachment 22394 Details for
Bug 8015
Add MARC Modifications Templates
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 8015 - Add MARC Modifications Templates - Followup
Bug-8015---Add-MARC-Modifications-Templates---Foll.patch (text/plain), 5.73 KB, created by
Kyle M Hall (khall)
on 2013-10-25 13:31:00 UTC
(
hide
)
Description:
Bug 8015 - Add MARC Modifications Templates - Followup
Filename:
MIME Type:
Creator:
Kyle M Hall (khall)
Created:
2013-10-25 13:31:00 UTC
Size:
5.73 KB
patch
obsolete
>From 42bebca6f5d9d5faf7d83c635f9b09df9bd10f02 Mon Sep 17 00:00:00 2001 >From: Kyle M Hall <kyle@bywatersolutions.com> >Date: Fri, 28 Sep 2012 08:39:58 -0400 >Subject: [PATCH] Bug 8015 - Add MARC Modifications Templates - Followup > >Signed-off-by: Leila <koha.aixmarseille@gmail.com> >--- > {Koha => C4}/MarcModificationTemplates.pm | 24 ++++++++++++------------ > tools/marc_modification_templates.pl | 2 +- > tools/stage-marc-import.pl | 2 +- > 3 files changed, 14 insertions(+), 14 deletions(-) > rename {Koha => C4}/MarcModificationTemplates.pm (93%) > >diff --git a/Koha/MarcModificationTemplates.pm b/C4/MarcModificationTemplates.pm >similarity index 93% >rename from Koha/MarcModificationTemplates.pm >rename to C4/MarcModificationTemplates.pm >index 86a03e6..2c8bbaf 100644 >--- a/Koha/MarcModificationTemplates.pm >+++ b/C4/MarcModificationTemplates.pm >@@ -1,4 +1,4 @@ >-package Koha::MarcModificationTemplates; >+package C4::MarcModificationTemplates; > > # Copyright 2010 Kyle M Hall <kyle.m.hall@gmail.com> > # >@@ -58,7 +58,7 @@ BEGIN { > > =head1 NAME > >-Koha::MarcModificationTemplates - Module to manage MARC Modification Templates >+C4::MarcModificationTemplates - Module to manage MARC Modification Templates > > =head1 DESCRIPTION > >@@ -79,8 +79,8 @@ files telling Koha what fields to insert data into. > > sub GetModificationTemplates { > my ( $template_id ) = @_; >- C4::Koha::Log("Koha::MarcModificationTemplates::GetModificationTemplates( $template_id )") if DEBUG; >- warn("Koha::MarcModificationTemplates::GetModificationTemplates( $template_id )") if DEBUG; >+ C4::Koha::Log("C4::MarcModificationTemplates::GetModificationTemplates( $template_id )") if DEBUG; >+ warn("C4::MarcModificationTemplates::GetModificationTemplates( $template_id )") if DEBUG; > > my $dbh = C4::Context->dbh; > my $sth = $dbh->prepare("SELECT * FROM marc_modification_templates"); >@@ -187,8 +187,8 @@ sub GetModificationTemplateAction { > sub GetModificationTemplateActions { > my ( $template_id ) = @_; > >- C4::Koha::Log( "Koha::MarcModificationTemplates::GetModificationTemplateActions( $template_id )" ) if DEBUG; >- warn( "Koha::MarcModificationTemplates::GetModificationTemplateActions( $template_id )" ) if DEBUG; >+ C4::Koha::Log( "C4::MarcModificationTemplates::GetModificationTemplateActions( $template_id )" ) if DEBUG; >+ warn( "C4::MarcModificationTemplates::GetModificationTemplateActions( $template_id )" ) if DEBUG; > > my $dbh = C4::Context->dbh; > my $sth = $dbh->prepare("SELECT * FROM marc_modification_template_actions WHERE template_id = ? ORDER BY ordering"); >@@ -241,11 +241,11 @@ sub AddModificationTemplateAction { > $description > ) = @_; > >- C4::Koha::Log( "Koha::MarcModificationTemplates::AddModificationTemplateAction( $template_id, $action, >+ C4::Koha::Log( "C4::MarcModificationTemplates::AddModificationTemplateAction( $template_id, $action, > $field_number, $from_field, $from_subfield, $field_value, $to_field, $to_subfield, > $to_regex, $conditional, $conditional_field, $conditional_subfield, $conditional_comparison, > $conditional_value, $conditional_regex, $description )" ) if DEBUG; >- warn( "Koha::MarcModificationTemplates::AddModificationTemplateAction( $template_id, $action, >+ warn( "C4::MarcModificationTemplates::AddModificationTemplateAction( $template_id, $action, > $field_number, $from_field, $from_subfield, $field_value, $to_field, $to_subfield, > $to_regex, $conditional, $conditional_field, $conditional_subfield, $conditional_comparison, > $conditional_value, $conditional_regex, $description )" ) if DEBUG; >@@ -475,8 +475,8 @@ sub MoveModificationTemplateAction { > > sub ModifyRecordsWithTemplate { > my ( $template_id, $batch ) = @_; >- C4::Koha::Log( "Koha::MarcModificationTemplates::ModifyRecordsWithTemplate( $template_id, $batch )" ) if DEBUG; >- warn( "Koha::MarcModificationTemplates::ModifyRecordsWithTemplate( $template_id, $batch )" ) if DEBUG; >+ C4::Koha::Log( "C4::MarcModificationTemplates::ModifyRecordsWithTemplate( $template_id, $batch )" ) if DEBUG; >+ warn( "C4::MarcModificationTemplates::ModifyRecordsWithTemplate( $template_id, $batch )" ) if DEBUG; > > while ( my $record = $batch->next() ) { > ModifyRecordWithTemplate( $template_id, $record ); >@@ -494,8 +494,8 @@ sub ModifyRecordsWithTemplate { > > sub ModifyRecordWithTemplate { > my ( $template_id, $record ) = @_; >- C4::Koha::Log( "Koha::MarcModificationTemplates::ModifyRecordWithTemplate( $template_id, $record )" ) if DEBUG; >- warn( "Koha::MarcModificationTemplates::ModifyRecordWithTemplate( $template_id, $record )" ) if DEBUG; >+ C4::Koha::Log( "C4::MarcModificationTemplates::ModifyRecordWithTemplate( $template_id, $record )" ) if DEBUG; >+ warn( "C4::MarcModificationTemplates::ModifyRecordWithTemplate( $template_id, $record )" ) if DEBUG; > C4::Koha::Log( "Unmodified Record:\n" . $record->as_formatted() ) if DEBUG >= 10; > warn( "Unmodified Record:\n" . $record->as_formatted() ) if DEBUG >= 10; > >diff --git a/tools/marc_modification_templates.pl b/tools/marc_modification_templates.pl >index 60a28cf..d3a4d8c 100755 >--- a/tools/marc_modification_templates.pl >+++ b/tools/marc_modification_templates.pl >@@ -24,7 +24,7 @@ use CGI; > use C4::Auth; > use C4::Koha; > use C4::Output; >-use Koha::MarcModificationTemplates; >+use C4::MarcModificationTemplates; > > my $cgi = new CGI; > >diff --git a/tools/stage-marc-import.pl b/tools/stage-marc-import.pl >index 86e5bbc..8d6ab1a 100755 >--- a/tools/stage-marc-import.pl >+++ b/tools/stage-marc-import.pl >@@ -41,7 +41,7 @@ use C4::ImportBatch; > use C4::Matcher; > use C4::UploadedFile; > use C4::BackgroundJob; >-use Koha::MarcModificationTemplates; >+use C4::MarcModificationTemplates; > > my $input = new CGI; > my $dbh = C4::Context->dbh; >-- >1.7.2.5
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 8015
:
9313
|
9329
|
9330
|
9331
|
10089
|
11579
|
11607
|
11608
|
12280
|
12288
|
12569
|
12570
|
12571
|
12572
|
12839
|
12856
|
12857
|
12858
|
12859
|
12860
|
13121
|
13138
|
13495
|
14030
|
14031
|
14032
|
14033
|
14034
|
14035
|
14040
|
16330
|
16331
|
16332
|
16333
|
16334
|
16335
|
16363
|
16376
|
16377
|
16378
|
16379
|
16413
|
16415
|
16423
|
16455
|
16468
|
16470
|
16471
|
16472
|
16473
|
16475
|
16476
|
16477
|
16478
|
16479
|
16480
|
17036
|
17037
|
17038
|
18372
|
18441
|
21024
|
21025
|
21026
|
21027
|
21028
|
21029
|
21030
|
21031
|
21032
|
21033
|
21034
|
21035
|
21036
|
21037
|
21038
|
21371
|
21484
|
21485
|
21486
|
21487
|
21808
|
21809
|
21876
|
21901
|
21902
|
21903
|
21904
|
21905
|
21906
|
21907
|
21908
|
21909
|
21910
|
21911
|
21912
|
21913
|
21914
|
21915
|
21916
|
21917
|
21918
|
21919
|
21920
|
22185
|
22186
|
22187
|
22188
|
22189
|
22190
|
22284
|
22285
|
22290
|
22293
|
22392
|
22393
| 22394 |
22395
|
22396
|
22397
|
22398
|
22399
|
22400
|
22401