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

(-)a/installer/data/mysql/sysprefs.sql (+1 lines)
Lines 286-291 INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` Link Here
286
('opacsmallimage','','','Enter a complete URL to an image to replace the default Koha logo','free'),
286
('opacsmallimage','','','Enter a complete URL to an image to replace the default Koha logo','free'),
287
('OpacStarRatings','all','disable|all|details',NULL,'Choice'),
287
('OpacStarRatings','all','disable|all|details',NULL,'Choice'),
288
('OpacSuggestionManagedBy',1,'','Show the name of the staff member who managed a suggestion in OPAC','YesNo'),
288
('OpacSuggestionManagedBy',1,'','Show the name of the staff member who managed a suggestion in OPAC','YesNo'),
289
('OPACSuggestionMandatoryFields','',NULL,'Define the mandatory fields for a patron purchase suggestions made via OPAC.','free'),
289
('OpacSuppression','0','','Turn ON the OPAC Suppression feature, requires further setup, ask your system administrator for details','YesNo'),
290
('OpacSuppression','0','','Turn ON the OPAC Suppression feature, requires further setup, ask your system administrator for details','YesNo'),
290
('OpacSuppressionByIPRange','','','Restrict the suppression to IP adresses outside of the IP range','free'),
291
('OpacSuppressionByIPRange','','','Restrict the suppression to IP adresses outside of the IP range','free'),
291
('OpacSuppressionMessage','','Display this message on the redirect page for suppressed biblios','70|10','Textarea'),
292
('OpacSuppressionMessage','','Display this message on the redirect page for suppressed biblios','70|10','Textarea'),
(-)a/installer/data/mysql/updatedatabase.pl (+7 lines)
Lines 8551-8556 if (CheckVersion($DBversion)) { Link Here
8551
    SetVersion($DBversion);
8551
    SetVersion($DBversion);
8552
}
8552
}
8553
8553
8554
$DBversion = "3.17.00.XXX";
8555
if (CheckVersion($DBversion)) {
8556
    $dbh->do("INSERT INTO systempreferences (variable,value,options,explanation,type) VALUES('OPACSuggestionMandatoryFields', '', 'NULL', 'Define the mandatory fields for a patron purchase suggestions made via OPAC.', 'Free');");
8557
    print "Upgrade to $DBversion done (Bug 10848 - Allow configuration of mandatory/required fields on the suggestion form in OPAC)\n";
8558
    SetVersion($DBversion);
8559
}
8560
8554
=head1 FUNCTIONS
8561
=head1 FUNCTIONS
8555
8562
8556
=head2 TableExists($table)
8563
=head2 TableExists($table)
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/opac.pref (-1 / +7 lines)
Lines 529-534 OPAC: Link Here
529
                  yes: Allow
529
                  yes: Allow
530
            - patrons to select library when making a purchase suggestion
530
            - patrons to select library when making a purchase suggestion
531
        -
531
        -
532
            - "Fields (separated with |) that should be mandatory for patron purchase suggestions:"
533
            - pref: OPACSuggestionMandatoryFields
534
              class: multi
535
            - "<br />Field names you can set here as mandatory for OPAC suggestions include: <code>author</code>, <code>copyrightdate</code>,"
536
            - "<code>isbn</code>, <code>publishercode</code>, <code>place</code>, <code>itemtype</code> and <code>patronreason</code>."
537
            - "Note: <code>title</code> field would be allways implicitly required, no need to enter it here."
538
        -
532
            - pref: OpacHiddenItems
539
            - pref: OpacHiddenItems
533
              type: textarea
540
              type: textarea
534
              class: code
541
              class: code
535
- 

Return to bug 10848