Skip to content
Snippets Groups Projects
Commit 29d7e1bb authored by Patrick Barroca's avatar Patrick Barroca :grin:
Browse files

Merge branch 'hotline#20934-phantom-items' into 'master'

Hotline#20934 phantom items

See merge request !751
parents 980ff954 28b819e7
Branches
Tags
1 merge request!780Master
<?php
/**
* Copyright (c) 2012-2014, Agence Française Informatique (AFI). All rights reserved.
*
* BOKEH is free software; you can redistribute it and/or modify
* it under the terms of the GNU AFFERO GENERAL PUBLIC LICENSE as published by
* the Free Software Foundation.
*
* There are special exceptions to the terms and conditions of the AGPL as it
* is applied to this software (see README file).
*
* BOKEH is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU AFFERO GENERAL PUBLIC LICENSE for more details.
*
* You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE
* along with BOKEH; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
require_once 'NoticeIntegrationTest.php';
class NoticeIntegrationBiblixTest extends NoticeIntegrationTestCase {
public function setUp() {
parent::setUp();
Storm_Model_Loader::defaultToVolatile();
$this->loadNotice('unimarc_biblix');
}
public function tearDown() {
Storm_Model_Loader::defaultToDb();
parent::tearDown();
}
public function getProfilDonnees() {
return Class_IntProfilDonnees::forWinBiblix()
->setIdProfil(110)
->getRawAttributes();
}
/** @test */
public function recordShouldHaveOneItem() {
$this->assertEquals(1, Class_Exemplaire::count());
}
}
\ No newline at end of file
00471nam 2200157 450 001000500000005000900005010003400014100004100048101000800089200004400097210003400141215001100175700002800186801003400214995006500248393920021218 a2-7441-5434-2bFrance Loisirs a20021218d2002 m 0fre 0103 1 afre1 aLa reine des pluiesf Catherine Scholes a[Paris]cFrance Loisirsd2002 a615 p. 0aScholesbCatherine4070 1aFRbc20021218wBiblixNet 2.0 bMediathequef1055985966314jaeR RomanskR SCH RoDisponible
\ No newline at end of file
......@@ -368,6 +368,46 @@ class Class_IntProfilDonnees extends Storm_Model_Abstract {
}
public static function forWinBiblix() {
return self::
newInstance(['libelle' => 'Unimarc Winbiblix',
'accents' => self::ENCODING_UTF8,
'rejet_periodiques' => '0',
'id_article_periodique' => self::SERIAL_FORMAT_NONE,
'type_fichier' => self::FT_RECORDS,
'format' => self::FORMAT_UNIMARC,
'attributs' =>
[['type_doc' =>
[[ 'code' => '0', 'label' => '', 'zone_995' => '' ],
[ 'code' => '1', 'label' => 'am;na', 'zone_995' => '' ],
[ 'code' => '2', 'label' => 'as', 'zone_995' => ''],
[ 'code' => '3', 'label' => 'i;j', 'zone_995' => ''],
[ 'code' => '4', 'label' => 'g','zone_995' => ''],
[ 'code' => '5', 'label' => 'l;m', 'zone_995' => ''],
[ 'code' => '6', 'label' => '', 'zone_995' => '' ],
[ 'code' => '7', 'label' => '', 'zone_995' => '' ],
[ 'code' => '8', 'label' => '', 'zone_995' => ''],
[ 'code' => '9', 'label' => '', 'zone_995' => '']
],
'champ_code_barres' => 'f',
'champ_cote' => 'k',
'champ_type_doc' => '',
'champ_genre' => '',
'champ_section' => 'j',
'champ_emplacement' => 'u',
'champ_annexe' => ''
],
['zone' => '995',
'champ' => '4',
'format' => self::NOVELTY_DATE_FORMAT_AAAA_MM_JJ,
'jours' => '',
'valeurs' => '']
]
]
);
}
public function setAttributs($array_or_string) {
return $this->_set('attributs',
is_array($array_or_string)
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment