Dev#35088 oai import in cosmogramme
Merge request reports
Activity
Filter activity
162 // article de périodique 163 if($this->notice["type_doc"]==100) 164 { 171 if($this->notice['type_doc'] == 100) { 165 172 $this->ecrireArticlePeriodique(); 166 173 return; 167 174 } 168 175 169 // Chercher la notice dans la base 170 $id_notice=$this->chercheNotice(); 176 $id_notice = $this->chercheNotice(); 171 177 172 // Traiter le type d'operation : suppressions 173 if($this->type_operation == 1) 174 { 178 if($this->type_operation == 1) { 178 if($this->type_operation == 1) { 175 179 $this->statut = static::RECORD_DELETE; 176 if($this->format == 0 )$this->supprimerNotice($id_notice,$this->notice["id_origine"]); 177 else $this->supprimerExemplaire($id_notice,$this->notice["exemplaires"][0]); 180 181 if($this->format == 0 ) 182 $this->supprimerNotice($id_notice,$this->notice["id_origine"]); 183 else 184 $this->supprimerExemplaire($id_notice,$this->notice["exemplaires"][0]); 178 185 return; 179 186 } 180 // Notice a supprimer 181 if($this->notice["statut"]==1) 182 { 187 188 if($this->notice["statut"] == 1) { 185 191 return; 186 192 } 187 193 188 // suppression ou creation des articles si périodique 189 if($this->notice["type_doc"]==2) 190 { 191 194 if($this->notice["type_doc"]==2) { 192 195 // Periodiques Koha et orphee (1 exemplaire pour chaque numéro) 193 if(($this->id_article_periodique==3 or $this->id_article_periodique==4) and $this->flag_koha==false) 194 { 195 $this->flag_koha=true; 196 $ret=$this->traitePeriodiquesKoha(); 197 $this->flag_koha=false; 196 if(($this->id_article_periodique == 3 197 or $this->id_article_periodique == 4) 211 214 212 215 // opsys indexpresse : on cree les articles manquants 213 if($this->id_article_periodique == 2 and $this->notice["articles_periodiques"]) 214 { 215 $enreg=array("clef_chapeau"=>$this->notice["articles_periodiques"]["clef_chapeau"], 216 "clef_numero"=>$this->notice["articles_periodiques"]["clef_numero"], 217 "date_maj"=>date("Y-m-d"), 218 ); 219 foreach($this->notice["articles_periodiques"]["articles"] as $id_unimarc) 220 { 221 $clef_unimarc=intval($id_unimarc); 222 if(!$clef_unimarc) { $this->notice["warnings"][]=array("Identifiant article de périodique incorrect",$id_unimarc); continue; } 223 $existe=$sql->fetchOne("select count(*) from notices_articles where clef_unimarc='$clef_unimarc'"); 224 if($existe) 225 { 216 if($this->id_article_periodique == 2 196 if(($this->id_article_periodique == 3 197 or $this->id_article_periodique == 4) 198 and $this->flag_koha == false) { 199 $this->flag_koha = true; 200 $ret = $this->traitePeriodiquesKoha(); 201 $this->flag_koha = false; 198 202 return $ret; 199 203 } 200 204 201 205 // pergame : on efface tous les articles 202 if($this->id_article_periodique == 1) 203 { 204 $clef_chapeau=$this->notice["clef_chapeau"]; 205 $clef_numero=addslashes($this->notice["tome_alpha"]); 206 $date=dateDuJour(0); 206 if($this->id_article_periodique == 1) { 576 590 if (!$this->notice['titre_princ']) 577 591 $this->statut = static::RECORD_UPDATE; 578 592 593 if (Class_IntProfilDonnees::FORMAT_DUBLIN_CORE == $this->format) 594 return $this->_realUpdate($existing_notice); 1295 1297 1296 1298 1297 1299 public function getCentreInteret() { 1298 $zone_interet = (!$this->profil['attributs'][6]['zone']) ? 1299 '932' : $this->profil['attributs'][6]['zone']; 1300 $zone_interet = (!$this->profil['attributs'][6]['zone']) 1301 ? '932' 1302 : $this->profil['attributs'][6]['zone']; 76 return $result; 77 } 78 79 80 public function filtreCodeBarres($code_barres) { 81 return $code_barres; 82 } 83 84 85 public function getIdOrigine() { 86 return ($data = $this->get_subfield('001')) 87 ? $data[0] : ''; 88 } 89 90 91 public function getTypeDoc($infos = false) { 93 93 } 94 94 95 95 96 public function visitResume($resume) { 97 $this->unimarc->add_field('330', ' ', 'a' . $resume); 98 return $this; 99 } 100 101 102 public function visitDescriptions($descriptions) { 103 foreach($descriptions as $description) 104 $this->visitDescription($description); 105 8 * 9 * There are special exceptions to the terms and conditions of the AGPL as it 10 * is applied to this software (see README file). 11 * 12 * BOKEH is distributed in the hope that it will be useful, 13 * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 * GNU AFFERO GENERAL PUBLIC LICENSE for more details. 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 class Class_ProfileSerializer { 171 171 172 172 173 173 174 class BibControllerWithModoPortailAddGallicaTest extends BibControllerTestCase { 175 protected $_bib; 176 177 protected function _loginHook($account) { 178 $account->ROLE_LEVEL = ZendAfi_Acl_AdminControllerRoles::MODO_PORTAIL;
Please register or sign in to reply