Skip to content
Snippets Groups Projects
Commit 843281ac authored by efalcy's avatar efalcy
Browse files

hotline #25433 : numilog remove unusable methods

parent 3b579316
Branches
Tags
4 merge requests!915Master,!914Hotline master,!913Stable,!912Hotline #25433 moissonnage numilog
......@@ -16,7 +16,7 @@
*
* 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
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
class Class_WebService_BibNumerique_Numilog_LivreNumerique extends Class_WebService_BibNumerique_RessourceNumerique {
......@@ -33,7 +33,7 @@ class Class_WebService_BibNumerique_Numilog_LivreNumerique extends Class_WebServ
$album->beNumilog()
->setDescription($this->getDescription())
->setEditeur($this->getEditeur());
foreach($this->getAuthors() as $author)
foreach($this->getAuthors() as $author)
$album->addAuthor($author);
$this->addPoster('http://couverture.numilog.com/' . $this->_id.'_GRANDE.jpg');
return $album;
......@@ -42,7 +42,7 @@ class Class_WebService_BibNumerique_Numilog_LivreNumerique extends Class_WebServ
public function getRessourceCategorieLibelle() {
return Class_WebService_BibNumerique_Numilog::CATEGORY_LABEL;
}
}
}
?>
\ No newline at end of file
......@@ -30,16 +30,16 @@ class Class_WebService_BibNumerique_Numilog_LivresNumeriquesReader extends Class
public function parse() {
$this->_total_count = $this->_page_number = 0;
$this->_page_size = 1;
$this->_xml_parser = new Class_WebService_OAI();
$listsize = ($this->_resumptionToken) ? $this->_resumptionToken->getListSize() : '100';
$this->livres = $this->_xml_parser
$this->livres = $this
->setOAIHandler(Class_AdminVar::get('NUMILOG_OAI_URL'))
->setNumericResourceClass('Class_WebService_BibNumerique_Numilog_LivreNumerique')
->getRecordsFromSetNumericResources('bib:'.Class_AdminVar::get('NUMILOG_OAI_IDBIB'));
while ($this->_xml_parser->hasNextRecords())
$this->livres = array_merge($this->livres, $this->_xml_parser->getNextNumericResources());
while ($this->hasNextRecords())
$this->livres = array_merge($this->livres, $this->getNextNumericResources());
$this->_total_count = sizeof($this->livres);
$this->_page_number=1;
......@@ -47,10 +47,6 @@ class Class_WebService_BibNumerique_Numilog_LivresNumeriquesReader extends Class
return $this;
}
public function endPk($data) {
$this->_current_film->setId($data);
}
public function getTotalCount() {
return $this->_total_count;
......@@ -71,15 +67,5 @@ class Class_WebService_BibNumerique_Numilog_LivresNumeriquesReader extends Class
return $this->livres;
}
protected function start_resumptionToken($parser, $attributes) {
$this->_resumptionToken = new Class_WebService_ResumptionToken();
$this->_resumptionToken->setListSize($attributes['COMPLETELISTSIZE']);
$this->_resumptionToken->setCursor($attributes['CURSOR']);
}
protected function end_resumptiontoken($parser) {
$this->_resumptionToken->setToken($this->current_data);
}
}
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