WIP: dev #113322 explo Bacon
7 unresolved threads
7 unresolved threads
Merge request reports
Activity
Filter activity
67 67 68 68 69 69 public function findFirstWithPosterBy($params) { 70 while($albums = Class_Album::findAllBy(array_merge($params, 71 ['limitPage'=> [($page = 1), 100]]))) { 72 73 if ($album = (new Storm_Model_Collection($albums)) 74 ->detect(function($model) 75 { 76 return $model->hasPoster(); 77 })) 70 foreach(Class_Album::findAllBy(array_merge($params, - Resolved by efalcy
- Resolved by efalcy
50 return $this; 51 } 52 53 54 public function getISBN() { 55 return $this->_isbn; 56 } 57 58 59 public function addNote($index, $value) { 60 $this->_notes [$index] = $value; 61 return $this; 62 } 63 64 65 public function add856($sub, $value) { 91 } 92 93 94 public function endNum_Last_Vol_Online($data) { 95 $this->_current_album->addDescription($data); 96 } 97 98 99 public function endNum_Last_Issue_Online($data) { 100 $this->_current_album->addDescription($data); 101 } 102 103 104 public function endTitle_Url($data) { 105 $url = $this->_config->getAdminVar('SSO_URL') . $data; 106 $this->_current_album->add856('u', $url); 113 $this->_current_album->addAuthor($data); 114 } 115 116 117 public function endEmbargo_Info($data) { 118 $this->_current_album->addDescription($data); 119 } 120 121 122 public function endCoverage_Depth($data) { 123 $this->_current_album->addDescription($data); 124 } 125 126 127 public function endNotes($data) { 128 $this->_current_album->addNote('300$a', $data); Même réflexion que pour le 856 / voir les autres addNote. En fait je mettrai presque addNote en protégé dans album.
Edited by Laurent
71 public function addDescription($data) { 72 $this->_description [] = $data; 73 return $this; 74 } 75 76 77 public function fillAlbum($album) { 78 $album 79 ->setTypeDocId($this->getTypeDoc()) 80 ->setISBN($this->_isbn) 81 ->setDescription(implode(' ', $this->_description)); 82 83 foreach ( $this->_notes as $index => $value) 84 $album->addNote($index, $value); 85 86 $album->getMarc()->addZone('856', $this->_856); 47 } 48 49 50 public function endKbart() { 51 $this->_albums[] = $this->_current_album; 52 } 53 54 55 public function endPublication_Title($data) { 56 $this->_current_album->setTitle($data); 57 } 58 59 60 public function endPrint_identifier($data) { 61 $this->_current_album->setISBN($data); 62 $this->_current_album->setId($data); 16 * 17 * You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE 18 * along with BOKEH; if not, write to the Free Software 19 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 20 */ 21 22 23 abstract class BaconActivatedTestCase extends AbstractControllerTestCase { 24 protected 25 $_storm_default_to_volatile = true, 26 $_user; 27 28 public function setUp() { 29 parent::setUp(); 30 Class_AdminVar::set('Bacon_SSO_URL', 'http://docelec.insa-lyon.fr/login?url='); 31 Class_AdminVar::set('Bacon_HARVEST_URL', 'https://bacon.abes.fr/package2kbart/');