tester.phtml 4.44 KB
Newer Older
1
<?php
Laurent's avatar
Laurent committed
2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
  echo $this->tag('div',
                  $this->tagAnchor($this->url(['action' => 'edit',
                                               'id_catalogue' => $this->catalogue->getId()]),
                                   Class_Admin_Skin::current()
                                        ->renderActionIconOn('edit',
                                                             $this,
                                                             ['alt' => $this->_('Modifier'),
                                                              'class' => 'ico',
                                                              'title' => $this->_('Modifier le domaine "%s"',
                                                                                  $this->catalogue->getLibelle())]))
                    .
                    $this->tagAnchor($this->url(['action' => 'paniers',
                                                 'id_catalogue' => $this->catalogue->getId()]),
                                     Class_Admin_Skin::current()
                                          ->renderActionIconOn('basket',
                                                               $this,
                                                               ['alt' => $this->_('Paniers'),
                                                                'class' => 'ico',
                                                                'title' => $this->_('Paniers rattachés au domaine "%s"',
21 22 23 24 25 26 27 28
                                                                                    $this->catalogue->getLibelle())]))
                    .
                    $this->tagPreview($this->url(['module' => 'opac',
                                                  'controller' => 'recherche',
                                                  'action' => 'simple',
                                                  'id_catalogue' => $this->catalogue->getId()],
                                               null, true),
                                    $this->_('Visualiser le domaine "%s" dans un nouvel onglet', $this->catalogue->getLibelle())),
Laurent's avatar
Laurent committed
29 30
                  ['class' => 'header_actions']);

31

Laurent's avatar
Laurent committed
32 33
if ($this->error)
  echo '<p align="center" class="error">' . $this->error . '.</p>';
34

Laurent's avatar
Laurent committed
35 36
if (!$this->notices)
  echo '<p align="center" class="error">' . $this->_('Ce domaine ne renvoie aucun résultat.') . '</p>';
37
else {
Laurent's avatar
Laurent committed
38 39
  echo $this->ligneInfos($this->_('Notices trouvées'), $this->nb_notices);
  echo $this->ligneInfos($this->_('Avec vignettes en cache'), $this->avec_vignettes);
40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58

  echo $this->Admin_GenerateImageCache(
    $this->url(['module' => 'admin',
                'controller' => 'systeme',
                'action' => 'makecacheimages',
                'id_catalogue' => $this->catalogue->getId(),
                'reset_no' => 1],
               null,
               true));

  if (!$this->isPopup())
    echo $this->button((new Class_Entity())
            ->setText($this->_('Modifier le domaine '))
            ->setAttribs(['title' => $this->_('Modifier le domaine : %s',
                                              $this->catalogue->getLibelle())])
            ->setUrl($this->url(['action' => 'edit',
                                 'id_catalogue' => $this->catalogue->getId()]))
            ->setImage($this->tagImg(Class_Admin_Skin::current()
                                          ->getIconUrl('buttons', 'configuration'))));
59 60
}

61 62 63 64 65 66 67 68 69
echo $this->pager($this->nb_notices,
                  $this->nb_per_page,
                  $this->page,
                  $this->url(['module' => 'admin',
                              'controller' => 'catalogue',
                              'action' => 'tester',
                              'id_catalogue' => $this->catalogue->getId()],
                             null,
                             true));
70

71 72
if ($this->notices) {
  echo $this->listeNotices_Tableau($this->notices,
73 74 75 76 77 78 79
                                   ['liste_codes' => implode(';',
                                                             [Class_Codification::CODE_THUMBNAIL,
                                                              Class_TypeDoc::CODE_FACETTE,
                                                              Class_Codification::CODE_TITRE,
                                                              Class_CodifAuteur::CODE_FACETTE,
                                                              Class_Codification::CODE_ANNEE ]),
                                    'open_links_in_new_tab' => '1']);
80
}