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

(-)a/installer/data/mysql/atomicupdate/bug_16041.perl (+23 lines)
Line 0 Link Here
1
my $dbh = C4::Context->dbh;
2
my ( $count_imageurl ) = $dbh->selectrow_array(q|
3
    SELECT COUNT(*)
4
    FROM authorised_values
5
    WHERE imageurl IS NOT NULL
6
        AND imageurl <> ""
7
|);
8
unless ( $count_imageurl ) {
9
    if ( C4::Context->preference('AuthorisedValueImages')
10
        or C4::Context->preference('StaffAuthorisedValueImages') ) {
11
        $dbh->do(q|
12
            UPDATE systempreferences
13
            SET value=0
14
            WHERE variable="AuthorisedValueImages"
15
               or variable="StaffAuthorisedValueImages"
16
        |);
17
        warn "The system preferences AuthorisedValueImages and StaffAuthorisedValueImages have been turned off\n";
18
        warn "authorised_values.imageurl is not populated, that's mean you are not using this feature\n"
19
    }
20
} else {
21
    warn "At least one authorised value has an icon defined (imageurl)\n";
22
    warn "The system preference AuthorisedValueImages or StaffAuthorisedValueImages could be turned off if you are not aware of this feature\n";
23
}
(-)a/installer/data/mysql/sysprefs.sql (-1 / +1 lines)
Lines 446-452 INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` Link Here
446
('SpineLabelAutoPrint','0','','If this setting is turned on, a print dialog will automatically pop up for the quick spine label printer.','YesNo'),
446
('SpineLabelAutoPrint','0','','If this setting is turned on, a print dialog will automatically pop up for the quick spine label printer.','YesNo'),
447
('SpineLabelFormat','<itemcallnumber><copynumber>','30|10','This preference defines the format for the quick spine label printer. Just list the fields you would like to see in the order you would like to see them, surrounded by <>, for example <itemcallnumber>.','Textarea'),
447
('SpineLabelFormat','<itemcallnumber><copynumber>','30|10','This preference defines the format for the quick spine label printer. Just list the fields you would like to see in the order you would like to see them, surrounded by <>, for example <itemcallnumber>.','Textarea'),
448
('SpineLabelShowPrintOnBibDetails','0','','If turned on, a \"Print Label\" link will appear for each item on the bib details page in the staff interface.','YesNo'),
448
('SpineLabelShowPrintOnBibDetails','0','','If turned on, a \"Print Label\" link will appear for each item on the bib details page in the staff interface.','YesNo'),
449
('StaffAuthorisedValueImages','1',NULL,'','YesNo'),
449
('StaffAuthorisedValueImages','0',NULL,'','YesNo'),
450
('staffClientBaseURL','',NULL,'Specify the base URL of the staff client','free'),
450
('staffClientBaseURL','',NULL,'Specify the base URL of the staff client','free'),
451
('StaffDetailItemSelection', '1', NULL, 'Enable item selection in record detail page', 'YesNo'),
451
('StaffDetailItemSelection', '1', NULL, 'Enable item selection in record detail page', 'YesNo'),
452
('StaffSearchResultsDisplayBranch','holdingbranch','holdingbranch|homebranch','Controls the display of the home or holding branch for staff search results','Choice'),
452
('StaffSearchResultsDisplayBranch','holdingbranch','holdingbranch|homebranch','Controls the display of the home or holding branch for staff search results','Choice'),
(-)a/opac/opac-detail.pl (-2 / +3 lines)
Lines 560-566 foreach my $subscription (@subscriptions) { Link Here
560
$dat->{'count'} = scalar(@items);
560
$dat->{'count'} = scalar(@items);
561
561
562
562
563
my $biblio_authorised_value_images = C4::Items::get_authorised_value_images( C4::Biblio::get_biblio_authorised_values( $biblionumber, $record ) );
563
my $biblio_authorised_value_images = C4::Context->preference('AuthorisedValueImages')
564
    ? C4::Items::get_authorised_value_images( C4::Biblio::get_biblio_authorised_values( $biblionumber, $record ) )
565
    : [];
564
566
565
my (%item_reserves, %priority);
567
my (%item_reserves, %priority);
566
my ($show_holds_count, $show_priority);
568
my ($show_holds_count, $show_priority);
567
- 

Return to bug 16041