Bugzilla – Attachment 18275 Details for
Bug 8215
Add Course Reserves
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
bug 8215: (followup) make sure C4::CourseReserves doesn't export anything
bug-8215-followup-make-sure-C4CourseReserves-doesn.patch (text/plain), 5.30 KB, created by
Galen Charlton
on 2013-05-21 17:52:48 UTC
(
hide
)
Description:
bug 8215: (followup) make sure C4::CourseReserves doesn't export anything
Filename:
MIME Type:
Creator:
Galen Charlton
Created:
2013-05-21 17:52:48 UTC
Size:
5.30 KB
patch
obsolete
>From e83f1eb4f67a5e28b14b3f0b41dc386badeaefca Mon Sep 17 00:00:00 2001 >From: Galen Charlton <gmc@esilibrary.com> >Date: Tue, 21 May 2013 09:53:03 -0700 >Subject: [PATCH] bug 8215: (followup) make sure C4::CourseReserves doesn't export anything > >New modules should not export any symbols by default >without a very good reason. > >Signed-off-by: Galen Charlton <gmc@esilibrary.com> >--- > C4/CourseReserves.pm | 8 ++++---- > catalogue/detail.pl | 2 +- > course_reserves/add_items.pl | 2 +- > course_reserves/course-details.pl | 2 +- > course_reserves/course-reserves.pl | 2 +- > course_reserves/course.pl | 2 +- > course_reserves/mod_course.pl | 2 +- > opac/opac-course-details.pl | 2 +- > opac/opac-course-reserves.pl | 2 +- > opac/opac-detail.pl | 2 +- > t/db_dependent/CourseReserves.t | 2 +- > 11 files changed, 14 insertions(+), 14 deletions(-) > >diff --git a/C4/CourseReserves.pm b/C4/CourseReserves.pm >index 35fe269..12b6375 100644 >--- a/C4/CourseReserves.pm >+++ b/C4/CourseReserves.pm >@@ -17,8 +17,6 @@ package C4::CourseReserves; > > use Modern::Perl; > >-require Exporter; >- > use C4::Context; > use C4::Items qw(GetItem ModItem); > use C4::Biblio qw(GetBiblioFromItemNumber); >@@ -27,8 +25,9 @@ use C4::Circulation qw(GetOpenIssue); > use vars qw($VERSION @ISA @EXPORT @EXPORT_OK %EXPORT_TAGS $DEBUG @FIELDS); > > BEGIN { >- @ISA = qw(Exporter); >- @EXPORT = qw( >+ require Exporter; >+ @ISA = qw(Exporter); >+ @EXPORT_OK = qw( > &GetCourse > &ModCourse > &GetCourses >@@ -49,6 +48,7 @@ BEGIN { > > &GetItemReservesInfo > ); >+ %EXPORT_TAGS = ( 'all' => \@EXPORT_OK ); > > $DEBUG = 0; > @FIELDS = ( 'itype', 'ccode', 'holdingbranch', 'location' ); >diff --git a/catalogue/detail.pl b/catalogue/detail.pl >index 6f005d8..e9190d2 100755 >--- a/catalogue/detail.pl >+++ b/catalogue/detail.pl >@@ -41,7 +41,7 @@ use C4::XSLT; > use C4::Images; > use Koha::DateUtils; > use C4::HTML5Media; >-use C4::CourseReserves; >+use C4::CourseReserves qw(GetItemReservesInfo); > > # use Smart::Comments; > >diff --git a/course_reserves/add_items.pl b/course_reserves/add_items.pl >index c94f373..9429d91 100755 >--- a/course_reserves/add_items.pl >+++ b/course_reserves/add_items.pl >@@ -28,7 +28,7 @@ use C4::Koha; > use C4::Biblio; > use C4::Branch; > >-use C4::CourseReserves; >+use C4::CourseReserves qw(GetCourse GetCourseItem GetCourseReserve ModCourseItem ModCourseReserve); > > my $cgi = new CGI; > >diff --git a/course_reserves/course-details.pl b/course_reserves/course-details.pl >index bc224d4..8a578d5 100755 >--- a/course_reserves/course-details.pl >+++ b/course_reserves/course-details.pl >@@ -26,7 +26,7 @@ use C4::Auth; > use C4::Output; > use C4::Koha; > >-use C4::CourseReserves; >+use C4::CourseReserves qw(DelCourseReserve GetCourse GetCourseReserves); > > my $cgi = new CGI; > >diff --git a/course_reserves/course-reserves.pl b/course_reserves/course-reserves.pl >index 8b4e50e..b81bc94 100755 >--- a/course_reserves/course-reserves.pl >+++ b/course_reserves/course-reserves.pl >@@ -25,7 +25,7 @@ use CGI; > use C4::Auth; > use C4::Output; > >-use C4::CourseReserves; >+use C4::CourseReserves qw(GetCourses); > > my $cgi = new CGI; > >diff --git a/course_reserves/course.pl b/course_reserves/course.pl >index fad7bad..a82c781 100755 >--- a/course_reserves/course.pl >+++ b/course_reserves/course.pl >@@ -26,7 +26,7 @@ use C4::Auth; > use C4::Output; > use C4::Koha; > >-use C4::CourseReserves; >+use C4::CourseReserves qw(GetCourse); > > my $cgi = new CGI; > >diff --git a/course_reserves/mod_course.pl b/course_reserves/mod_course.pl >index baaeb29..5b5d940 100755 >--- a/course_reserves/mod_course.pl >+++ b/course_reserves/mod_course.pl >@@ -25,7 +25,7 @@ use C4::Output; > use C4::Reserves; > use C4::Auth; > >-use C4::CourseReserves; >+use C4::CourseReserves qw(DelCourse ModCourse ModCourseInstructors); > > my $cgi = new CGI; > my ( $template, $loggedinuser, $cookie ) = get_template_and_user( >diff --git a/opac/opac-course-details.pl b/opac/opac-course-details.pl >index 0787315..df50e47 100755 >--- a/opac/opac-course-details.pl >+++ b/opac/opac-course-details.pl >@@ -26,7 +26,7 @@ use C4::Auth; > use C4::Output; > use C4::Koha; > >-use C4::CourseReserves; >+use C4::CourseReserves qw(GetCourse GetCourseReserves); > > my $cgi = new CGI; > >diff --git a/opac/opac-course-reserves.pl b/opac/opac-course-reserves.pl >index cc94c4c..83852c4 100755 >--- a/opac/opac-course-reserves.pl >+++ b/opac/opac-course-reserves.pl >@@ -25,7 +25,7 @@ use CGI; > use C4::Auth; > use C4::Output; > >-use C4::CourseReserves; >+use C4::CourseReserves qw(SearchCourses); > > my $cgi = new CGI; > >diff --git a/opac/opac-detail.pl b/opac/opac-detail.pl >index 05e69f4..56b014f 100755 >--- a/opac/opac-detail.pl >+++ b/opac/opac-detail.pl >@@ -50,7 +50,7 @@ use List::MoreUtils qw/any none/; > use C4::Images; > use Koha::DateUtils; > use C4::HTML5Media; >-use C4::CourseReserves; >+use C4::CourseReserves qw(GetItemReservesInfo); > > BEGIN { > if (C4::Context->preference('BakerTaylorEnabled')) { >diff --git a/t/db_dependent/CourseReserves.t b/t/db_dependent/CourseReserves.t >index d052a44..776f224 100755 >--- a/t/db_dependent/CourseReserves.t >+++ b/t/db_dependent/CourseReserves.t >@@ -11,7 +11,7 @@ use Data::Dumper; > > BEGIN { > use_ok('C4::Context'); >- use_ok('C4::CourseReserves'); >+ use_ok('C4::CourseReserves', qw/:all/); > } > > 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 8215
:
9990
|
10181
|
10224
|
11131
|
11612
|
11657
|
11677
|
11678
|
11679
|
11680
|
11681
|
11682
|
11683
|
11860
|
11861
|
11862
|
11865
|
11875
|
11881
|
11882
|
11980
|
12039
|
12120
|
12128
|
12188
|
12189
|
12192
|
12246
|
12361
|
12400
|
12413
|
12414
|
12593
|
12627
|
13496
|
13497
|
13498
|
13499
|
15195
|
15196
|
15197
|
15198
|
15199
|
16228
|
16229
|
16251
|
16252
|
16532
|
16533
|
16534
|
16536
|
16537
|
16545
|
16567
|
16568
|
16587
|
16588
|
16599
|
16621
|
16623
|
16634
|
17333
|
17334
|
17335
|
17336
|
17337
|
17377
|
17378
|
17379
|
17894
|
17895
|
17896
|
17897
|
17898
|
17899
|
18274
|
18275
|
18276
|
18277
|
18278
|
18279
|
18282
|
18283
|
18284
|
18285
|
18286
|
18287
|
18288
|
18289
|
18290
|
18291
|
18292
|
18293
|
21885
|
23264