Skip to content
Snippets Groups Projects
Commit 6990156d authored by efalcy's avatar efalcy
Browse files

Import OPDS : remplacement du titre "import du <date>" par "Ebooks"

parent b364b061
Branches
Tags
No related merge requests found
......@@ -81,7 +81,7 @@ class Admin_OpdsController extends ZendAfi_Controller_Action {
public function importAction() {
$this->_helper->getHelper('viewRenderer')->setNoRender();
if ((!$catalog = Class_OpdsCatalog::getLoader()->find($this->_getParam('id')))
if ((!$catalog = Class_OpdsCatalog::find($this->_getParam('id')))
|| !$this->_getParam('feed') || !$this->_getParam('entry')) {
$this->_redirect('/admin/opds/index');
return;
......
......@@ -22,7 +22,7 @@ class Class_WebService_OPDS_CatalogEntry extends Class_WebService_BibNumerique_R
protected $_properties;
protected $_isNotice;
protected $_files;
const CATEGORY_LABEL='Ebooks';
public function __construct() {
$this->_isNotice = false;
$this->_properties = array('id' => null,
......@@ -60,13 +60,13 @@ class Class_WebService_OPDS_CatalogEntry extends Class_WebService_BibNumerique_R
}
public function getRessourceLibelle() {
return sprintf('import opds du %s', date('d M Y'));
public function getRessourceCategorieLibelle() {
return self::CATEGORY_LABEL;
}
public function fillAlbum($album) {
$album ->setAuteur($this->getAuthor())
$album->setAuteur($this->getAuthor())
->beEPUB();
$album->save();
foreach ($this->_files as $file)
......
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