Lines 1-9
Link Here
|
1 |
use Modern::Perl; |
1 |
use Modern::Perl; |
2 |
use Test::More tests => 20; |
2 |
use Test::More tests => 24; |
|
|
3 |
|
4 |
use lib('../'); |
5 |
use UseBranchTransferLimits::PreparedTestEnvironment qw($biblioitem $itemCPLFull $itemCPLLite $borrower); |
3 |
|
6 |
|
4 |
use C4::Circulation; |
7 |
use C4::Circulation; |
5 |
use C4::Context; |
8 |
use C4::Context; |
6 |
use C4::Record; |
9 |
use C4::Record; |
|
|
10 |
use C4::Members; |
7 |
|
11 |
|
8 |
my $dbh = C4::Context->dbh; |
12 |
my $dbh = C4::Context->dbh; |
9 |
$dbh->{AutoCommit} = 0; |
13 |
$dbh->{AutoCommit} = 0; |
Lines 14-50
my $originalBranchTransferLimitsType = C4::Context->preference('BranchTransferLi
Link Here
|
14 |
### Preparing our tests we want to run ### |
18 |
### Preparing our tests we want to run ### |
15 |
sub runTestsForCCode { |
19 |
sub runTestsForCCode { |
16 |
my ($itemCPLFull, $itemCPLLite, $biblioitem) = @_; |
20 |
my ($itemCPLFull, $itemCPLLite, $biblioitem) = @_; |
|
|
21 |
|
22 |
C4::Context->set_preference("BranchTransferLimitsType", 'ccode'); |
17 |
|
23 |
|
18 |
print 'Running tests for '.C4::Context->preference("BranchTransferLimitsType")."\n"; |
24 |
print 'Running tests for '.C4::Context->preference("BranchTransferLimitsType")."\n"; |
19 |
|
25 |
|
20 |
#howto use: CanItemBeTransferred( $toBranch, $fromBranch, $item, $biblioitem] ); |
26 |
#howto use: CanItemBeTransferred( $toBranch, $fromBranch, $item, $biblioitem] ); |
21 |
my $result = C4::Circulation::CanItemBeTransferred( 'CPL', 'IPT', $itemCPLFull, $biblioitem ); |
27 |
my $result = C4::Circulation::CanItemBeTransferred( 'CPL', 'IPT', $itemCPLFull, $biblioitem ); |
22 |
is ( $result, 1, "Successful branch transfer, full parameters" ); |
28 |
is ( $result, 1, "Successful branch transfer, full parameters" ); |
23 |
|
29 |
|
24 |
$result = C4::Circulation::CanItemBeTransferred( 'IPT', 'CPL', $itemCPLFull, $biblioitem ); |
30 |
$result = C4::Circulation::CanItemBeTransferred( 'IPT', 'CPL', $itemCPLFull, $biblioitem ); |
25 |
is ( $result, 'CPL->IPT->FANTASY', "Failing branch transfer, full parameters" ); |
31 |
is ( $result, 'CPL->IPT->FANTASY', "Failing branch transfer, full parameters" ); |
26 |
|
32 |
|
27 |
$result = C4::Circulation::CanItemBeTransferred( 'CPL', 'IPT', $itemCPLFull, undef ); |
33 |
$result = C4::Circulation::CanItemBeTransferred( 'CPL', 'IPT', $itemCPLFull, undef ); |
28 |
is ( $result, 1, "Successful branch transfer, full parameters, no Biblio defined" ); |
34 |
is ( $result, 1, "Successful branch transfer, full parameters, no Biblio defined" ); |
29 |
|
35 |
|
30 |
$result = C4::Circulation::CanItemBeTransferred( 'IPT', 'CPL', $itemCPLFull, undef ); |
36 |
$result = C4::Circulation::CanItemBeTransferred( 'IPT', 'CPL', $itemCPLFull, undef ); |
31 |
is ( $result, 'CPL->IPT->FANTASY', "Failing branch transfer, full parameters, no Biblio defined" ); |
37 |
is ( $result, 'CPL->IPT->FANTASY', "Failing branch transfer, full parameters, no Biblio defined" ); |
32 |
|
38 |
|
33 |
$result = C4::Circulation::CanItemBeTransferred( 'FFL', undef, $itemCPLFull, $biblioitem ); |
39 |
$result = C4::Circulation::CanItemBeTransferred( 'FFL', undef, $itemCPLFull, $biblioitem ); |
34 |
is ( $result, 1, "Successful branch transfer, using defaults for \$fromBranch" ); |
40 |
is ( $result, 1, "Successful branch transfer, using defaults for \$fromBranch" ); |
35 |
|
41 |
|
36 |
$result = C4::Circulation::CanItemBeTransferred( 'IPT', undef, $itemCPLFull, $biblioitem ); |
42 |
$result = C4::Circulation::CanItemBeTransferred( 'IPT', undef, $itemCPLFull, $biblioitem ); |
37 |
is ( $result, 'CPL->IPT->FANTASY', "Failing branch transfer, using defaults for \$fromBranch" ); |
43 |
is ( $result, 'CPL->IPT->FANTASY', "Failing branch transfer, using defaults for \$fromBranch" ); |
38 |
|
44 |
|
39 |
$result = C4::Circulation::CanItemBeTransferred( 'FFL', undef, $itemCPLFull, undef ); |
45 |
$result = C4::Circulation::CanItemBeTransferred( 'FFL', undef, $itemCPLFull, undef ); |
40 |
is ( $result, 1, "Successful branch transfer, using minimum parameters" ); |
46 |
is ( $result, 1, "Successful branch transfer, using minimum parameters" ); |
41 |
|
47 |
|
42 |
$result = C4::Circulation::CanItemBeTransferred( 'IPT', undef, $itemCPLFull, undef ); |
48 |
$result = C4::Circulation::CanItemBeTransferred( 'IPT', undef, $itemCPLFull, undef ); |
43 |
is ( $result, 'CPL->IPT->FANTASY', "Failing branch transfer, using minimum parameters" ); |
49 |
is ( $result, 'CPL->IPT->FANTASY', "Failing branch transfer, using minimum parameters" ); |
44 |
|
50 |
|
45 |
$result = C4::Circulation::CanItemBeTransferred( 'FFL', undef, $itemCPLLite, undef ); |
51 |
$result = C4::Circulation::CanItemBeTransferred( 'FFL', undef, $itemCPLLite, undef ); |
46 |
is ( $result, 1, "Successful branch transfer, using minimum parameters" ); |
52 |
is ( $result, 1, "Successful branch transfer, using minimum parameters" ); |
47 |
|
53 |
|
48 |
$result = C4::Circulation::CanItemBeTransferred( 'IPT', undef, $itemCPLLite, undef ); |
54 |
$result = C4::Circulation::CanItemBeTransferred( 'IPT', undef, $itemCPLLite, undef ); |
49 |
is ( $result, 1, "Not failing branch transfer, because CCODE cannot be found from the item and it is not a part of the biblio." ); |
55 |
is ( $result, 1, "Not failing branch transfer, because CCODE cannot be found from the item and it is not a part of the biblio." ); |
50 |
} |
56 |
} |
Lines 52-85
sub runTestsForCCode {
Link Here
|
52 |
|
58 |
|
53 |
sub runTestsForItype { |
59 |
sub runTestsForItype { |
54 |
my ($itemCPLFull, $itemCPLLite, $biblioitem) = @_; |
60 |
my ($itemCPLFull, $itemCPLLite, $biblioitem) = @_; |
|
|
61 |
|
62 |
C4::Context->set_preference("BranchTransferLimitsType", 'itemtype'); |
55 |
|
63 |
|
56 |
print 'Running tests for '.C4::Context->preference("BranchTransferLimitsType")."\n"; |
64 |
print 'Running tests for '.C4::Context->preference("BranchTransferLimitsType")."\n"; |
57 |
|
65 |
|
58 |
#howto use: CanItemBeTransferred( $toBranch, $fromBranch, $item, $biblioitem] ); |
66 |
#howto use: CanItemBeTransferred( $toBranch, $fromBranch, $item, $biblioitem] ); |
59 |
my $result = C4::Circulation::CanItemBeTransferred( 'CPL', 'IPT', $itemCPLFull, $biblioitem ); |
67 |
my $result = C4::Circulation::CanItemBeTransferred( 'CPL', 'IPT', $itemCPLFull, $biblioitem ); |
60 |
is ( $result, 1, "Successful branch transfer, full parameters" ); |
68 |
is ( $result, 1, "Successful branch transfer, full parameters" ); |
61 |
|
69 |
|
62 |
$result = C4::Circulation::CanItemBeTransferred( 'IPT', 'CPL', $itemCPLFull, $biblioitem ); |
70 |
$result = C4::Circulation::CanItemBeTransferred( 'IPT', 'CPL', $itemCPLFull, $biblioitem ); |
63 |
is ( $result, 'CPL->IPT->BK', "Failing branch transfer, full parameters" ); |
71 |
is ( $result, 'CPL->IPT->BK', "Failing branch transfer, full parameters" ); |
64 |
|
72 |
|
65 |
$result = C4::Circulation::CanItemBeTransferred( 'CPL', 'IPT', $itemCPLFull, undef ); |
73 |
$result = C4::Circulation::CanItemBeTransferred( 'CPL', 'IPT', $itemCPLFull, undef ); |
66 |
is ( $result, 1, "Successful branch transfer, full parameters, no Biblio defined" ); |
74 |
is ( $result, 1, "Successful branch transfer, full parameters, no Biblio defined" ); |
67 |
|
75 |
|
68 |
$result = C4::Circulation::CanItemBeTransferred( 'IPT', 'CPL', $itemCPLFull, undef ); |
76 |
$result = C4::Circulation::CanItemBeTransferred( 'IPT', 'CPL', $itemCPLFull, undef ); |
69 |
is ( $result, 'CPL->IPT->BK', "Failing branch transfer, full parameters, no Biblio defined" ); |
77 |
is ( $result, 'CPL->IPT->BK', "Failing branch transfer, full parameters, no Biblio defined" ); |
70 |
|
78 |
|
71 |
$result = C4::Circulation::CanItemBeTransferred( 'FFL', undef, $itemCPLFull, $biblioitem ); |
79 |
$result = C4::Circulation::CanItemBeTransferred( 'FFL', undef, $itemCPLFull, $biblioitem ); |
72 |
is ( $result, 1, "Successful branch transfer, using defaults for \$fromBranch" ); |
80 |
is ( $result, 1, "Successful branch transfer, using defaults for \$fromBranch" ); |
73 |
|
81 |
|
74 |
$result = C4::Circulation::CanItemBeTransferred( 'IPT', undef, $itemCPLFull, $biblioitem ); |
82 |
$result = C4::Circulation::CanItemBeTransferred( 'IPT', undef, $itemCPLFull, $biblioitem ); |
75 |
is ( $result, 'CPL->IPT->BK', "Failing branch transfer, using defaults for \$fromBranch" ); |
83 |
is ( $result, 'CPL->IPT->BK', "Failing branch transfer, using defaults for \$fromBranch" ); |
76 |
|
84 |
|
77 |
$result = C4::Circulation::CanItemBeTransferred( 'FFL', undef, $itemCPLFull, undef ); |
85 |
$result = C4::Circulation::CanItemBeTransferred( 'FFL', undef, $itemCPLFull, undef ); |
78 |
is ( $result, 1, "Successful branch transfer, using minimum parameters" ); |
86 |
is ( $result, 1, "Successful branch transfer, using minimum parameters" ); |
79 |
|
87 |
|
80 |
$result = C4::Circulation::CanItemBeTransferred( 'IPT', undef, $itemCPLFull, undef ); |
88 |
$result = C4::Circulation::CanItemBeTransferred( 'IPT', undef, $itemCPLFull, undef ); |
81 |
is ( $result, 'CPL->IPT->BK', "Failing branch transfer, using minimum parameters" ); |
89 |
is ( $result, 'CPL->IPT->BK', "Failing branch transfer, using minimum parameters" ); |
82 |
|
90 |
|
83 |
$result = C4::Circulation::CanItemBeTransferred( 'FFL', undef, $itemCPLLite, undef ); |
91 |
$result = C4::Circulation::CanItemBeTransferred( 'FFL', undef, $itemCPLLite, undef ); |
84 |
is ( $result, 1, "Successful branch transfer, using minimum parameters, itemtype is pulled from Biblio" ); |
92 |
is ( $result, 1, "Successful branch transfer, using minimum parameters, itemtype is pulled from Biblio" ); |
85 |
|
93 |
|
Lines 88-260
sub runTestsForItype {
Link Here
|
88 |
} |
96 |
} |
89 |
### Tests prepared |
97 |
### Tests prepared |
90 |
|
98 |
|
91 |
### Preparing our generic testing data ### |
99 |
### Run them tests! |
92 |
|
|
|
93 |
#Set the item variables |
94 |
my $ccode = 'FANTASY'; |
95 |
my $itemtype = 'BK'; |
96 |
|
97 |
## Add a example Bibliographic record |
98 |
my $bibFramework = ''; #Using the default bibliographic framework. |
99 |
my $marcxml; |
100 |
if ( C4::Context->preference("marcflavour") eq "UNIMARC" ) { |
101 |
$marcxml=qq( |
102 |
<?xml version="1.0" encoding="UTF-8"?> |
103 |
<record |
104 |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
105 |
xsi:schemaLocation="http://www.loc.gov/MARC21/slim http://www.loc.gov/standards/marcxml/schema/MARC21slim.xsd" |
106 |
xmlns="http://www.loc.gov/MARC21/slim"> |
107 |
<leader>01534njm a2200229 4500</leader> |
108 |
<controlfield tag="001">4172</controlfield> |
109 |
<datafield tag="071" ind1=" " ind2=" "> |
110 |
<subfield code="a">8344482</subfield> |
111 |
</datafield> |
112 |
<datafield tag="090" ind1=" " ind2=" "> |
113 |
<subfield code="a">4172</subfield> |
114 |
</datafield> |
115 |
<datafield tag="100" ind1=" " ind2=" "> |
116 |
<subfield code="a">20040408 frey50 </subfield> |
117 |
</datafield> |
118 |
<datafield tag="126" ind1=" " ind2=" "> |
119 |
<subfield code="a">agbxhx cd</subfield> |
120 |
</datafield> |
121 |
<datafield tag="200" ind1="1" ind2=" "> |
122 |
<subfield code="a">The Beatles anthology 1965-1967</subfield> |
123 |
<subfield code="e">vol.2</subfield> |
124 |
<subfield code="f">The Beatles</subfield> |
125 |
<subfield code="b">CD</subfield> |
126 |
</datafield> |
127 |
<datafield tag="210" ind1=" " ind2="1"> |
128 |
<subfield code="a">Null</subfield> |
129 |
<subfield code="c">Emi music</subfield> |
130 |
<subfield code="d">1996</subfield> |
131 |
</datafield> |
132 |
<datafield tag="322" ind1=" " ind2="1"> |
133 |
<subfield code="a">anthologie des beatles concernant l'époque musicale de 1965 à 1968 période la plus expérimentale et prolifique du groupe</subfield> |
134 |
</datafield> |
135 |
<datafield tag="327" ind1="1" ind2=" "> |
136 |
<subfield code="a">Real love</subfield> |
137 |
<subfield code="a">Yes it is</subfield> |
138 |
</datafield> |
139 |
<datafield tag="345" ind1=" " ind2=" "> |
140 |
<subfield code="a">CVS</subfield> |
141 |
<subfield code="b">0724383444823</subfield> |
142 |
<subfield code="c">disque compact</subfield> |
143 |
<subfield code="d">34 E</subfield> |
144 |
</datafield> |
145 |
</record> |
146 |
); |
147 |
} |
148 |
else { # Using Marc21 by default |
149 |
$marcxml=qq(<?xml version="1.0" encoding="UTF-8"?> |
150 |
<record format="MARC21" type="Bibliographic"> |
151 |
<leader>00000cim a22000004a 4500</leader> |
152 |
<controlfield tag="001">1001</controlfield> |
153 |
<controlfield tag="005">2013-06-03 07:04:07+02</controlfield> |
154 |
<controlfield tag="007">ss||||j|||||||</controlfield> |
155 |
<controlfield tag="008"> uuuu xxk|||||||||||||||||eng|c</controlfield> |
156 |
<datafield tag="020" ind1=" " ind2=" "> |
157 |
<subfield code="a">0-00-103147-3</subfield> |
158 |
<subfield code="c">14.46 EUR</subfield> |
159 |
</datafield> |
160 |
<datafield tag="041" ind1="0" ind2=" "> |
161 |
<subfield code="d">eng</subfield> |
162 |
</datafield> |
163 |
<datafield tag="084" ind1=" " ind2=" "> |
164 |
<subfield code="a">83.5</subfield> |
165 |
<subfield code="2">ykl</subfield> |
166 |
</datafield> |
167 |
<datafield tag="100" ind1="1" ind2=" "> |
168 |
<subfield code="a">SHAKESPEARE, WILLIAM.</subfield> |
169 |
</datafield> |
170 |
<datafield tag="245" ind1="1" ind2="4"> |
171 |
<subfield code="a">THE TAMING OF THE SHREW /</subfield> |
172 |
<subfield code="c">WILLIAM SHAKESPEARE</subfield> |
173 |
<subfield code="h">[ÄÄNITE].</subfield> |
174 |
</datafield> |
175 |
<datafield tag="260" ind1=" " ind2=" "> |
176 |
<subfield code="a">LONDON :</subfield> |
177 |
<subfield code="b">COLLINS.</subfield> |
178 |
</datafield> |
179 |
<datafield tag="300" ind1=" " ind2=" "> |
180 |
<subfield code="a">2 ÄÄNIKASETTIA.</subfield> |
181 |
</datafield> |
182 |
<datafield tag="852" ind1=" " ind2=" "> |
183 |
<subfield code="a">FI-Jm</subfield> |
184 |
<subfield code="h">83.5</subfield> |
185 |
</datafield> |
186 |
<datafield tag="852" ind1=" " ind2=" "> |
187 |
<subfield code="a">FI-Konti</subfield> |
188 |
<subfield code="h">83.5</subfield> |
189 |
</datafield> |
190 |
</record> |
191 |
); |
192 |
} |
193 |
|
194 |
my $record=C4::Record::marcxml2marc($marcxml); |
195 |
|
196 |
# This should work regardless of the Marc flavour. |
197 |
my ( $biblioitemtypeTagid, $biblioitemtypeSubfieldid ) = |
198 |
C4::Biblio::GetMarcFromKohaField( 'biblioitems.itemtype', $bibFramework ); |
199 |
my $itemtypeField = MARC::Field->new($biblioitemtypeTagid, '', '', |
200 |
$biblioitemtypeSubfieldid => $itemtype); |
201 |
$record->append_fields( $itemtypeField ); |
202 |
|
203 |
my ( $newBiblionumber, $newBiblioitemnumber ) = C4::Biblio::AddBiblio( $record, $bibFramework, { defer_marc_save => 1 } ); |
204 |
|
205 |
## Add an item with a ccode. |
206 |
my ($item_bibnum, $item_bibitemnum); |
207 |
my ($itemCPLFull, $itemCPLFullId); #Item with a itemtype and ccode in its data. |
208 |
my ($itemCPLLite, $itemCPLLiteId); #Item with no itemtype nor ccode in its data. Forces to look for it from the biblio. |
209 |
($item_bibnum, $item_bibitemnum, $itemCPLFullId) = C4::Items::AddItem({ barcode => 'CPLFull', homebranch => 'CPL', holdingbranch => 'CPL', ccode => $ccode, itemtype => $itemtype}, $newBiblionumber);#, biblioitemnumber => $newBiblioitemnumber, biblionumber => $newBiblioitemnumber }); |
210 |
($item_bibnum, $item_bibitemnum, $itemCPLLiteId) = C4::Items::AddItem({ barcode => 'CPLLite', homebranch => 'CPL', holdingbranch => 'CPL'}, $newBiblionumber);# biblioitemnumber => $newBiblioitemnumber, biblionumber => $newBiblioitemnumber }); |
211 |
|
212 |
|
213 |
### Created the generic testing material. ### |
214 |
### Setting preferences for ccode use-case ### |
215 |
|
216 |
C4::Context->set_preference("BranchTransferLimitsType", 'ccode'); |
217 |
|
218 |
## Add the TransferLimit rules: |
219 |
## IPT -> CPL -> FFL -> IPT |
220 |
# to from |
221 |
C4::Circulation::CreateBranchTransferLimit( 'IPT', 'CPL', $ccode ); |
222 |
C4::Circulation::CreateBranchTransferLimit( 'CPL', 'FFL', $ccode ); |
223 |
C4::Circulation::CreateBranchTransferLimit( 'FFL', 'IPT', $ccode ); |
224 |
|
225 |
## Ready to start testing ccode use-case ## |
226 |
|
227 |
$itemCPLFull = C4::Items::GetItem($itemCPLFullId); |
228 |
$itemCPLLite = C4::Items::GetItem($itemCPLLiteId); |
229 |
my $biblioitem = C4::Biblio::GetBiblioFromItemNumber( $itemCPLFull->{itemnumber} ); |
230 |
|
231 |
|
232 |
runTestsForCCode($itemCPLFull, $itemCPLLite, $biblioitem); |
100 |
runTestsForCCode($itemCPLFull, $itemCPLLite, $biblioitem); |
233 |
|
101 |
|
|
|
102 |
runTestsForItype($itemCPLFull, $itemCPLLite, $biblioitem); |
103 |
|
234 |
|
104 |
|
|
|
105 |
#One cannot return an Item which has homebranch in CPL to FFL |
106 |
my $datedue = C4::Circulation::AddIssue( $borrower, 'CPLFull') or BAIL_OUT("Cannot check-out an Item!"); |
107 |
my ($returnOk, $errorMessage) = C4::Circulation::AddReturn('CPLFull', 'FFL', undef, undef, undef); |
108 |
is( exists $errorMessage->{BranchTransferDenied}, 1, "Check-in failed because of a branch transfer limitation." ); |
235 |
|
109 |
|
236 |
### ccode tested |
|
|
237 |
### Setting preferences for itemtype use-case ### |
238 |
|
110 |
|
239 |
C4::Context->set_preference("BranchTransferLimitsType", 'itemtype'); |
111 |
#One can return an Item which has homebranch in FFL to CPL |
|
|
112 |
($returnOk, $errorMessage) = C4::Circulation::AddReturn('CPLFull', 'CPL', undef, undef, undef); |
113 |
is( $returnOk, 1, "Check-in succeeds." ); |
240 |
|
114 |
|
241 |
## Add the TransferLimit rules: |
|
|
242 |
## IPT -> CPL -> FFL -> IPT |
243 |
# to from |
244 |
C4::Circulation::CreateBranchTransferLimit( 'IPT', 'CPL', $itemtype ); |
245 |
C4::Circulation::CreateBranchTransferLimit( 'CPL', 'FFL', $itemtype ); |
246 |
C4::Circulation::CreateBranchTransferLimit( 'FFL', 'IPT', $itemtype ); |
247 |
|
115 |
|
248 |
## Ready to start testing itemtype use-case ## |
116 |
#One can override a denied branch transfer |
|
|
117 |
$datedue = C4::Circulation::AddIssue( $borrower, 'CPLFull') or BAIL_OUT("Cannot check-out an Item!"); |
118 |
($returnOk, $errorMessage) = C4::Circulation::AddReturn('CPLFull', 'FFL', undef, undef, {overrideBranchTransferDenied => 1}); |
119 |
is( $returnOk, 1, "Check-in succeeds because transfer limits are overridden." ); |
249 |
|
120 |
|
250 |
$itemCPLFull = C4::Items::GetItem($itemCPLFullId); |
|
|
251 |
$itemCPLLite = C4::Items::GetItem($itemCPLLiteId); |
252 |
$biblioitem = C4::Biblio::GetBiblioFromItemNumber( $itemCPLFull->{itemnumber} ); |
253 |
|
121 |
|
|
|
122 |
#Failing a check-in regardless of override, since failure happens because Item's must be returned to their homebranches. |
123 |
#Important to see that overriding BranchTransferDenied doesn't break other functionality. |
124 |
C4::Context->set_preference("AllowReturnToBranch", 'homebranch'); |
125 |
$datedue = C4::Circulation::AddIssue( $borrower, 'CPLFull') or BAIL_OUT("Cannot check-out an Item!"); |
126 |
($returnOk, $errorMessage) = C4::Circulation::AddReturn('CPLFull', 'FFL', undef, undef, {overrideBranchTransferDenied => 1}); |
127 |
is( $returnOk, 0, "Overridden check-in fails, because AllowReturnToBranch-check fails." ); |
254 |
|
128 |
|
255 |
runTestsForItype($itemCPLFull, $itemCPLLite, $biblioitem); |
|
|
256 |
|
129 |
|
257 |
### itemtype tested |
|
|
258 |
|
130 |
|
259 |
### Reset default preferences |
131 |
### Reset default preferences |
260 |
C4::Context->set_preference("BranchTransferLimitsType", $originalBranchTransferLimitsType); |
132 |
C4::Context->set_preference("BranchTransferLimitsType", $originalBranchTransferLimitsType); |