Lines 131-137
subtest 'buildKohaItemsNamespace status tests' => sub {
Link Here
|
131 |
} |
131 |
} |
132 |
}); |
132 |
}); |
133 |
$xml = C4::XSLT::buildKohaItemsNamespace( $item->biblionumber,[]); |
133 |
$xml = C4::XSLT::buildKohaItemsNamespace( $item->biblionumber,[]); |
134 |
like($xml,qr{<substatus>Waiting</substatus>},"Waiting status takes precedence over In transit (holds)"); |
134 |
like($xml,qr{<substatus>Hold waiting</substatus>},"Waiting status takes precedence over In transit (holds)"); |
135 |
$hold->cancel; |
135 |
$hold->cancel; |
136 |
|
136 |
|
137 |
$builder->build({ source => "TmpHoldsqueue", value => { |
137 |
$builder->build({ source => "TmpHoldsqueue", value => { |
Lines 151-157
subtest 'buildKohaItemsNamespace status tests' => sub {
Link Here
|
151 |
}}); |
151 |
}}); |
152 |
$recall->set_waiting; |
152 |
$recall->set_waiting; |
153 |
$xml = C4::XSLT::buildKohaItemsNamespace( $item->biblionumber,[]); |
153 |
$xml = C4::XSLT::buildKohaItemsNamespace( $item->biblionumber,[]); |
154 |
like($xml,qr{<status>Waiting</status>},"Waiting status takes precedence over In transit (recalls)"); |
154 |
like($xml,qr{<substatus>Recall waiting</substatus>},"Waiting status takes precedence over In transit (recalls)"); |
155 |
|
155 |
|
156 |
}; |
156 |
}; |
157 |
|
157 |
|
158 |
- |
|
|