View | Details | Raw Unified | Return to bug 13346
Collapse All | Expand All

(-)a/installer/data/mysql/fr-FR/1-Obligatoire/unimarc_standard_system_preferences.sql (-1 / +1 lines)
Lines 24-27 UPDATE systempreferences SET value = 'Ma bibliothèque' WHERE variable = 'Librar Link Here
24
UPDATE systempreferences SET value = 'fr-FR' WHERE variable = 'opaclanguages';
24
UPDATE systempreferences SET value = 'fr-FR' WHERE variable = 'opaclanguages';
25
UPDATE systempreferences SET value = 1 WHERE variable = 'opaclanguagesdisplay';
25
UPDATE systempreferences SET value = 1 WHERE variable = 'opaclanguagesdisplay';
26
UPDATE systempreferences SET value = 'Bienvenue dans Koha...\r\n<hr>' WHERE variable = 'OpacMainUserBlock';
26
UPDATE systempreferences SET value = 'Bienvenue dans Koha...\r\n<hr>' WHERE variable = 'OpacMainUserBlock';
27
UPDATE systempreferences SET value = 'bibtex|dc|marcxml|marc8|utf8|marcstd|ris' WHERE variable = 'OpacExportOptions';
27
UPDATE systempreferences SET value = 'bibtex,dc,marcxml,marc8,utf8,marcstd,ris' WHERE variable = 'OpacExportOptions';
(-)a/installer/data/mysql/sysprefs.sql (-1 / +1 lines)
Lines 252-258 INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` Link Here
252
('OPACdefaultSortOrder','dsc','asc|dsc|za|az','Specify the default sort order','Choice'),
252
('OPACdefaultSortOrder','dsc','asc|dsc|za|az','Specify the default sort order','Choice'),
253
('OPACdidyoumean',NULL,NULL,'Did you mean? configuration for the OPAC. Do not change, as this is controlled by /cgi-bin/koha/admin/didyoumean.pl.','Free'),
253
('OPACdidyoumean',NULL,NULL,'Did you mean? configuration for the OPAC. Do not change, as this is controlled by /cgi-bin/koha/admin/didyoumean.pl.','Free'),
254
('OPACDisplay856uAsImage','OFF','OFF|Details|Results|Both','Display the URI in the 856u field as an image, the corresponding OPACXSLT option must be on','Choice'),
254
('OPACDisplay856uAsImage','OFF','OFF|Details|Results|Both','Display the URI in the 856u field as an image, the corresponding OPACXSLT option must be on','Choice'),
255
('OpacExportOptions','bibtex|dc|marcxml|marc8|utf8|marcstd|mods|ris','','Define export options available on OPAC detail page.','free'),
255
('OpacExportOptions','bibtex,dc,marcxml,marc8,utf8,marcstd,mods,ris','','Define export options available on OPAC detail page.','multiple'),
256
('OPACFallback', 'prog', 'bootstrap|prog', 'Define the fallback theme for the OPAC interface.', 'Themes'),
256
('OPACFallback', 'prog', 'bootstrap|prog', 'Define the fallback theme for the OPAC interface.', 'Themes'),
257
('OpacFavicon','','','Enter a complete URL to an image to replace the default Koha favicon on the OPAC','free'),
257
('OpacFavicon','','','Enter a complete URL to an image to replace the default Koha favicon on the OPAC','free'),
258
('OPACFineNoRenewals','100','','Fine limit above which user cannot renew books via OPAC','Integer'),
258
('OPACFineNoRenewals','100','','Fine limit above which user cannot renew books via OPAC','Integer'),
(-)a/installer/data/mysql/updatedatabase.pl (+14 lines)
Lines 9628-9633 if ( CheckVersion($DBversion) ) { Link Here
9628
    SetVersion($DBversion);
9628
    SetVersion($DBversion);
9629
}
9629
}
9630
9630
9631
$DBversion = "3.19.00.XXX";
9632
if ( CheckVersion($DBversion) ) {
9633
    my $pref_value = C4::Context->preference('OpacExportOptions');
9634
    $pref_value =~ s/\|/,/g; # multiple is separated by ,
9635
    $dbh->do(q{
9636
        UPDATE systempreferences
9637
            SET value = ?,
9638
                type = 'multiple'
9639
        WHERE variable = 'OpacExportOptions'
9640
    }, {}, $pref_value );
9641
    print "Upgrade to $DBversion done (Bug XXXXX: OpacExportOptions is now multiple)\n";
9642
    SetVersion ($DBversion);
9643
}
9644
9631
=head1 FUNCTIONS
9645
=head1 FUNCTIONS
9632
9646
9633
=head2 TableExists($table)
9647
=head2 TableExists($table)
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/opac.pref (-4 / +9 lines)
Lines 275-284 OPAC: Link Here
275
        -
275
        -
276
            - 'List export options that should be available from OPAC detail page separated by |:'
276
            - 'List export options that should be available from OPAC detail page separated by |:'
277
            - pref: OpacExportOptions
277
            - pref: OpacExportOptions
278
              class: multi
278
              multiple:
279
            - '<br />Note: Available options are: BIBTEX (<code>bibtex</code>), Dublin Core (<code>dc</code>),'
279
                bibtex: BibTeX
280
            - 'MARCXML (<code>marcxml</code>), MARC-8 encoded MARC (<code>marc8</code>), Unicode/UTF-8 encoded MARC (<code>utf8</code>),'
280
                dc: Dublin Core
281
            - 'Unicode/UTF-8 encoded MARC without local use -9xx, x9x, xx9- fields and subfields (<code>marcstd</code>), MODS (<code>mods</code>), RIS (<code>ris</code>)'
281
                marcxml: MARCXML
282
                marc8: MARC-8 encoded MARC
283
                utf8: Unicode/UTF-8 encoded MARC
284
                marcstd: Unicode/UTF-8 encoded MARC without local use -9xx, x9x, xx9- fields and subfields
285
                mods: MODS
286
                ris: RIS
282
        -
287
        -
283
            - pref: OpacSeparateHoldings
288
            - pref: OpacSeparateHoldings
284
              choices:
289
              choices:
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/includes/opac-detail-sidebar.inc (-1 / +2 lines)
Lines 34-40 Link Here
34
    </li>
34
    </li>
35
    [% END %]
35
    [% END %]
36
36
37
    [% IF ( export_options.size ) %]
37
    [% SET export_options = Koha.Preference('OpacExportOptions').split(',') %]
38
    [% IF export_options.size %]
38
        <li>
39
        <li>
39
            <div id="export">
40
            <div id="export">
40
                <div class="dropdown">
41
                <div class="dropdown">
(-)a/opac/opac-ISBDdetail.pl (-5 lines)
Lines 180-190 $template->param( Link Here
180
    reviews             => $reviews,
180
    reviews             => $reviews,
181
);
181
);
182
182
183
#Export options
184
my $OpacExportOptions=C4::Context->preference("OpacExportOptions");
185
my @export_options = split(/\|/,$OpacExportOptions);
186
$template->{VARS}->{'export_options'} = \@export_options;
187
188
#Search for title in links
183
#Search for title in links
189
my $marccontrolnumber   = GetMarcControlnumber ($record, $marcflavour);
184
my $marccontrolnumber   = GetMarcControlnumber ($record, $marcflavour);
190
my $marcissns = GetMarcISSN ( $record, $marcflavour );
185
my $marcissns = GetMarcISSN ( $record, $marcflavour );
(-)a/opac/opac-MARCdetail.pl (-5 lines)
Lines 314-324 if(C4::Context->preference("ISBD")) { Link Here
314
	$template->param(ISBD => 1);
314
	$template->param(ISBD => 1);
315
}
315
}
316
316
317
#Export options
318
my $OpacExportOptions=C4::Context->preference("OpacExportOptions");
319
my @export_options = split(/\|/,$OpacExportOptions);
320
$template->{VARS}->{'export_options'} = \@export_options;
321
322
#Search for title in links
317
#Search for title in links
323
my $marcflavour  = C4::Context->preference("marcflavour");
318
my $marcflavour  = C4::Context->preference("marcflavour");
324
my $dat = TransformMarcToKoha( $dbh, $record );
319
my $dat = TransformMarcToKoha( $dbh, $record );
(-)a/opac/opac-detail.pl (-6 lines)
Lines 1058-1068 if (C4::Context->preference("OPACURLOpenInNewWindow")) { Link Here
1058
    $template->param(covernewwindow => 'false');
1058
    $template->param(covernewwindow => 'false');
1059
}
1059
}
1060
1060
1061
#Export options
1062
my $OpacExportOptions=C4::Context->preference("OpacExportOptions");
1063
my @export_options = split(/\|/,$OpacExportOptions);
1064
$template->{VARS}->{'export_options'} = \@export_options;
1065
1066
if ( C4::Context->preference('OpacStarRatings') !~ /disable/ ) {
1061
if ( C4::Context->preference('OpacStarRatings') !~ /disable/ ) {
1067
    my $rating = GetRating( $biblionumber, $borrowernumber );
1062
    my $rating = GetRating( $biblionumber, $borrowernumber );
1068
    $template->param(
1063
    $template->param(
1069
- 

Return to bug 13346