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

(-)a/installer/data/mysql/sysprefs.sql (+1 lines)
Lines 305-310 INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` Link Here
305
('OPACShowUnusedAuthorities','1','','Show authorities that are not being used in the OPAC.','YesNo'),
305
('OPACShowUnusedAuthorities','1','','Show authorities that are not being used in the OPAC.','YesNo'),
306
('OpacStarRatings','all','disable|all|details',NULL,'Choice'),
306
('OpacStarRatings','all','disable|all|details',NULL,'Choice'),
307
('OpacSuggestionManagedBy',1,'','Show the name of the staff member who managed a suggestion in OPAC','YesNo'),
307
('OpacSuggestionManagedBy',1,'','Show the name of the staff member who managed a suggestion in OPAC','YesNo'),
308
('OPACSuggestionMandatoryFields','',NULL,'Define the mandatory fields for a patron purchase suggestions made via OPAC.','free'),
308
('OpacSuppression','0','','Turn ON the OPAC Suppression feature, requires further setup, ask your system administrator for details','YesNo'),
309
('OpacSuppression','0','','Turn ON the OPAC Suppression feature, requires further setup, ask your system administrator for details','YesNo'),
309
('OpacSuppressionByIPRange','','','Restrict the suppression to IP adresses outside of the IP range','free'),
310
('OpacSuppressionByIPRange','','','Restrict the suppression to IP adresses outside of the IP range','free'),
310
('OpacSuppressionMessage','','Display this message on the redirect page for suppressed biblios','70|10','Textarea'),
311
('OpacSuppressionMessage','','Display this message on the redirect page for suppressed biblios','70|10','Textarea'),
(-)a/installer/data/mysql/updatedatabase.pl (+7 lines)
Lines 9585-9590 if ( CheckVersion($DBversion) ) { Link Here
9585
    SetVersion ($DBversion);
9585
    SetVersion ($DBversion);
9586
}
9586
}
9587
9587
9588
$DBversion = "3.19.00.XXX";
9589
if (CheckVersion($DBversion)) {
9590
    $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');");
9591
    print "Upgrade to $DBversion done (Bug 10848 - Allow configuration of mandatory/required fields on the suggestion form in OPAC)\n";
9592
    SetVersion($DBversion);
9593
}
9594
9588
=head1 FUNCTIONS
9595
=head1 FUNCTIONS
9589
9596
9590
=head2 TableExists($table)
9597
=head2 TableExists($table)
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/opac.pref (-1 / +7 lines)
Lines 530-535 OPAC: Link Here
530
                  yes: Allow
530
                  yes: Allow
531
            - patrons to select library when making a purchase suggestion
531
            - patrons to select library when making a purchase suggestion
532
        -
532
        -
533
            - "Fields (separated with |) that should be mandatory for patron purchase suggestions:"
534
            - pref: OPACSuggestionMandatoryFields
535
              class: multi
536
            - "<br />Field names you can set here as mandatory for OPAC suggestions include: <code>author</code>, <code>copyrightdate</code>,"
537
            - "<code>isbn</code>, <code>publishercode</code>, <code>place</code>, <code>itemtype</code> and <code>patronreason</code>."
538
            - "Note: <code>title</code> field would be allways implicitly required, no need to enter it here."
539
        -
533
            - pref: OpacHiddenItems
540
            - pref: OpacHiddenItems
534
              type: textarea
541
              type: textarea
535
              class: code
542
              class: code
536
- 

Return to bug 10848