Skip to content
Snippets Groups Projects
Commit 5cdc72cd authored by Ghislain Loas's avatar Ghislain Loas
Browse files

dev #35088 refacto profilte prefs

parent c07b3da8
Branches
Tags
6 merge requests!1659Master,!1622Dev#35088 oai import in cosmogramme,!1619Dev#35088 oai import in cosmogramme,!1611Dev#35088 oai import in cosmogramme,!1607Dev#40786 zendification de l ecran de parametrages des profils de donnees,!1606Dev#40786 zendification de l ecran de parametrages des profils de donnees
......@@ -12,8 +12,11 @@ echo $this->tag('div',
echo $this->tagModelTable($this->data_profiles,
[$this->_('Libellé'),
$this->_('Type de fichier')],
['libelle', 'filetype-label'],
$this->_('Type de fichier'),
$this->_('Format')],
['libelle',
'filetype-label',
'format-label'],
[['action' => 'edit', 'content' => $this->boutonIco('type=edit')],
['action' => 'delete', 'content' => $this->boutonIco('type=del')] ],
'' );
......
......@@ -97,6 +97,12 @@ class Cosmo_DataProfileControllerIndexTest extends Cosmo_DataProfileControllerTe
}
/** @test */
public function thirdTrShouldContainsUnimarcFormat() {
$this->assertXPathContentContains('//table//tr[3]/td[3]', 'Unimarc');
}
/** @test */
public function secondTrShouldContainsLinkEditKohaProfile() {
$this->assertXPath('//table//tr[2]/td/a[contains(@href, "/cosmo/data-profile/edit/id/56")]');
......
......@@ -761,6 +761,11 @@ class Class_IntProfilDonnees extends Storm_Model_Abstract {
public function getFiletypeLabel() {
return $this->getLoader()->getFileTypes()[$this->getTypeFichier()];
}
public function getFormatLabel() {
return $this->getLoader()->getFormats()[$this->getFormat()];
}
......
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