Skip to content
Snippets Groups Projects
Commit a2b3fd75 authored by Patrick Barroca's avatar Patrick Barroca :grin:
Browse files

dev #50215 : work in progress

parent 95ec6390
Branches
Tags
5 merge requests!2102#57574 : correction orthographe des jours de la semaine,!2080Sandbox detach zf from storm,!2061Master,!2052Dev#50215 explo st omer henin arques sso avec portail departemental fin moissonnage oai,!2049Dev#50215 explo st omer henin arques sso avec portail departemental fin moissonnage oai
Pipeline #524 passed with stage
in 12 minutes and 5 seconds
- ticket #50215 : Ressource Numériques : Moissonnage Bibliondemand
\ No newline at end of file
......@@ -131,6 +131,10 @@ class notice_integration {
$this->analyseur = new Class_Cosmogramme_Integration_Record_DublinCore();
break;
case Class_IntProfilDonnees::FORMAT_BIBLIONDEMAND:
$this->analyseur = new Class_Cosmogramme_Integration_Record_Bibliondemand();
break;
default:
require_once("classe_notice_ascii.php");
$this->analyseur = new notice_ascii();
......
<?php
/**
* Copyright (c) 2012-2017, Agence Française Informatique (AFI). All rights reserved.
*
* BOKEH is free software; you can redistribute it and/or modify
* it under the terms of the GNU AFFERO GENERAL PUBLIC LICENSE as published by
* the Free Software Foundation.
*
* There are special exceptions to the terms and conditions of the AGPL as it
* is applied to this software (see README file).
*
* BOKEH is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU AFFERO GENERAL PUBLIC LICENSE for more details.
*
* 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
*/
class Class_Cosmogramme_Integration_Record_Bibliondemand extends Class_Cosmogramme_Integration_Record_DublinCore {
}
......@@ -73,7 +73,8 @@ class IntProfilDonneesLoader extends Storm_Model_Loader {
Class_IntProfilDonnees::FORMAT_MARC21 => $this->_('MARC 21'),
Class_IntProfilDonnees::FORMAT_UNIMARC_XML => $this->_('Unimarc XML'),
Class_IntProfilDonnees::FORMAT_AVENIO => $this->_('Avenio'),
Class_IntProfilDonnees::FORMAT_DUBLIN_CORE => $this->_('Dublin Core')];
Class_IntProfilDonnees::FORMAT_DUBLIN_CORE => $this->_('Dublin Core'),
Class_IntProfilDonnees::FORMAT_BIBLIONDEMAND => $this->_('Dublin Core Bibliondemand')];
}
......@@ -114,7 +115,8 @@ class IntProfilDonneesLoader extends Storm_Model_Loader {
Class_IntProfilDonnees::FORMAT_MARC21 => '',
Class_IntProfilDonnees::FORMAT_UNIMARC_XML => '',
Class_IntProfilDonnees::FORMAT_AVENIO => '',
Class_IntProfilDonnees::FORMAT_DUBLIN_CORE => '']);
Class_IntProfilDonnees::FORMAT_DUBLIN_CORE => '',
Class_IntProfilDonnees::FORMAT_BIBLIONDEMAND => '']);
}
......@@ -241,6 +243,7 @@ class Class_IntProfilDonnees extends Storm_Model_Abstract {
FORMAT_AVENIO = 8,
FORMAT_DUBLIN_CORE = 9,
FORMAT_CG68_ARCHIVES = 10,
FORMAT_BIBLIONDEMAND = 11,
SERIAL_FORMAT_NONE = 0,
SERIAL_FORMAT_PERGAME = 1,
SERIAL_FORMAT_ALOES_INDEXPRESS = 2,
......
......@@ -45,7 +45,8 @@ class Class_ProfileSerializer {
return new Class_ProfileSerializer_UnimarcRecord();
if($this->_datas[Class_IntProfilDonnees::PROFILE_FILE_TYPE] == Class_IntProfilDonnees::FT_RECORDS
&& $this->_datas[Class_IntProfilDonnees::PROFILE_FILE_FORMAT] == Class_IntProfilDonnees::FORMAT_DUBLIN_CORE)
&& in_array($this->_datas[Class_IntProfilDonnees::PROFILE_FILE_FORMAT], [Class_IntProfilDonnees::FORMAT_DUBLIN_CORE,
Class_IntProfilDonnees::FORMAT_BIBLIONDEMAND]))
return new Class_ProfileSerializer_DublinCoreRecords();
if($this->_datas[Class_IntProfilDonnees::PROFILE_FILE_TYPE] == Class_IntProfilDonnees::FT_RECORDS
......
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