Lines 1934-1943
subtest 'columns_to_str' => sub {
Link Here
|
1934 |
$cache->clear_from_cache("MarcStructure-1-"); |
1934 |
$cache->clear_from_cache("MarcStructure-1-"); |
1935 |
$cache->clear_from_cache("MarcSubfieldStructure-"); |
1935 |
$cache->clear_from_cache("MarcSubfieldStructure-"); |
1936 |
$cache->clear_from_cache("libraries:name"); |
1936 |
$cache->clear_from_cache("libraries:name"); |
1937 |
$cache->clear_from_cache("itemtype:description:en"); |
|
|
1938 |
$cache->clear_from_cache("cn_sources:description"); |
1937 |
$cache->clear_from_cache("cn_sources:description"); |
1939 |
$cache->clear_from_cache("AV_descriptions:LOST"); |
1938 |
$cache->clear_from_cache("AV_descriptions:LOST"); |
1940 |
|
1939 |
|
|
|
1940 |
Koha::Caches->get_instance('localization')->clear_from_cache('Itemtype:en'); |
1941 |
|
1941 |
# Creating subfields 'é', 'è' that are not linked with a kohafield |
1942 |
# Creating subfields 'é', 'è' that are not linked with a kohafield |
1942 |
Koha::MarcSubfieldStructures->search( |
1943 |
Koha::MarcSubfieldStructures->search( |
1943 |
{ |
1944 |
{ |
Lines 2018-2027
subtest 'columns_to_str' => sub {
Link Here
|
2018 |
$cache->clear_from_cache("MarcStructure-1-"); |
2019 |
$cache->clear_from_cache("MarcStructure-1-"); |
2019 |
$cache->clear_from_cache("MarcSubfieldStructure-"); |
2020 |
$cache->clear_from_cache("MarcSubfieldStructure-"); |
2020 |
$cache->clear_from_cache("libraries:name"); |
2021 |
$cache->clear_from_cache("libraries:name"); |
2021 |
$cache->clear_from_cache("itemtype:description:en"); |
|
|
2022 |
$cache->clear_from_cache("cn_sources:description"); |
2022 |
$cache->clear_from_cache("cn_sources:description"); |
2023 |
$cache->clear_from_cache("AV_descriptions:LOST"); |
2023 |
$cache->clear_from_cache("AV_descriptions:LOST"); |
2024 |
|
2024 |
|
|
|
2025 |
Koha::Caches->get_instance('localization')->clear_from_cache('Itemtype:en'); |
2026 |
|
2025 |
$schema->storage->txn_rollback; |
2027 |
$schema->storage->txn_rollback; |
2026 |
}; |
2028 |
}; |
2027 |
|
2029 |
|
Lines 2038-2047
subtest 'strings_map() tests' => sub {
Link Here
|
2038 |
$cache->clear_from_cache("MarcStructure-1-"); |
2040 |
$cache->clear_from_cache("MarcStructure-1-"); |
2039 |
$cache->clear_from_cache("MarcSubfieldStructure-"); |
2041 |
$cache->clear_from_cache("MarcSubfieldStructure-"); |
2040 |
$cache->clear_from_cache("libraries:name"); |
2042 |
$cache->clear_from_cache("libraries:name"); |
2041 |
$cache->clear_from_cache("itemtype:description:en"); |
|
|
2042 |
$cache->clear_from_cache("cn_sources:description"); |
2043 |
$cache->clear_from_cache("cn_sources:description"); |
2043 |
$cache->clear_from_cache("AV_descriptions:LOST"); |
2044 |
$cache->clear_from_cache("AV_descriptions:LOST"); |
2044 |
|
2045 |
|
|
|
2046 |
Koha::Caches->get_instance('localization')->clear_from_cache('Itemtype:en'); |
2047 |
|
2045 |
# Recreating subfields just to be sure tests will be ok |
2048 |
# Recreating subfields just to be sure tests will be ok |
2046 |
# 1 => av (LOST) |
2049 |
# 1 => av (LOST) |
2047 |
# 3 => no link |
2050 |
# 3 => no link |
Lines 2224-2232
subtest 'strings_map() tests' => sub {
Link Here
|
2224 |
$cache->clear_from_cache("MarcStructure-1-"); |
2227 |
$cache->clear_from_cache("MarcStructure-1-"); |
2225 |
$cache->clear_from_cache("MarcSubfieldStructure-"); |
2228 |
$cache->clear_from_cache("MarcSubfieldStructure-"); |
2226 |
$cache->clear_from_cache("libraries:name"); |
2229 |
$cache->clear_from_cache("libraries:name"); |
2227 |
$cache->clear_from_cache("itemtype:description:en"); |
|
|
2228 |
$cache->clear_from_cache("cn_sources:description"); |
2230 |
$cache->clear_from_cache("cn_sources:description"); |
2229 |
|
2231 |
|
|
|
2232 |
Koha::Caches->get_instance('localization')->clear_from_cache('Itemtype:en'); |
2233 |
|
2230 |
$schema->storage->txn_rollback; |
2234 |
$schema->storage->txn_rollback; |
2231 |
}; |
2235 |
}; |
2232 |
|
2236 |
|
2233 |
- |
|
|