|
Lines 20-45
Link Here
|
| 20 |
# You should have received a copy of the GNU General Public License |
20 |
# You should have received a copy of the GNU General Public License |
| 21 |
# along with Koha; if not, see <http://www.gnu.org/licenses>. |
21 |
# along with Koha; if not, see <http://www.gnu.org/licenses>. |
| 22 |
|
22 |
|
| 23 |
# TODO: refactor to avoid duplication from addbiblio |
23 |
use Modern::Perl; |
| 24 |
|
24 |
|
| 25 |
use strict; |
|
|
| 26 |
#use warnings; FIXME - Bug 2505 |
| 27 |
use CGI q(-utf8); |
25 |
use CGI q(-utf8); |
| 28 |
use C4::Output; |
26 |
use C4::Output qw( output_html_with_http_headers ); |
| 29 |
use C4::Auth; |
27 |
use C4::Auth qw( get_template_and_user haspermission ); |
| 30 |
use C4::Search; |
28 |
use C4::Biblio |
| 31 |
use C4::Biblio; |
29 |
qw( GetMarcFromKohaField GetMarcStructure GetUsedMarcStructure TransformHtmlToMarc ); |
| 32 |
use C4::Context; |
30 |
use C4::Context; |
| 33 |
use MARC::Record; |
31 |
use MARC::Record; |
| 34 |
use C4::Log; |
32 |
use C4::ClassSource qw( GetClassSources ); |
| 35 |
use C4::Koha; |
|
|
| 36 |
use C4::ClassSource; |
| 37 |
use C4::ImportBatch; |
| 38 |
use C4::Charset; |
| 39 |
use Koha::Biblios; |
33 |
use Koha::Biblios; |
| 40 |
use Koha::BiblioFrameworks; |
34 |
use Koha::BiblioFrameworks; |
| 41 |
use Koha::DateUtils; |
35 |
use Koha::DateUtils qw( dt_from_string ); |
| 42 |
use C4::Matcher; |
|
|
| 43 |
|
36 |
|
| 44 |
use Koha::ItemTypes; |
37 |
use Koha::ItemTypes; |
| 45 |
use Koha::Libraries; |
38 |
use Koha::Libraries; |
|
Lines 47-53
use Koha::Libraries;
Link Here
|
| 47 |
use Date::Calc qw(Today); |
40 |
use Date::Calc qw(Today); |
| 48 |
use MARC::File::USMARC; |
41 |
use MARC::File::USMARC; |
| 49 |
use MARC::File::XML; |
42 |
use MARC::File::XML; |
| 50 |
use URI::Escape; |
43 |
use URI::Escape qw( uri_escape_utf8 ); |
| 51 |
|
44 |
|
| 52 |
if ( C4::Context->preference('marcflavour') eq 'UNIMARC' ) { |
45 |
if ( C4::Context->preference('marcflavour') eq 'UNIMARC' ) { |
| 53 |
MARC::File::XML->default_record_format('UNIMARC'); |
46 |
MARC::File::XML->default_record_format('UNIMARC'); |