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

(-)a/installer/data/mysql/sysprefs.sql (-1 / +1 lines)
Lines 305-311 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
('OPACSuggestionMandatoryFields','',NULL,'Define the mandatory fields for a patron purchase suggestions made via OPAC.','multiple'),
309
('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'),
310
('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'),
311
('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 (-1 / +1 lines)
Lines 9761-9767 if ( CheckVersion($DBversion) ) { Link Here
9761
9761
9762
$DBversion = "3.19.00.XXX";
9762
$DBversion = "3.19.00.XXX";
9763
if (CheckVersion($DBversion)) {
9763
if (CheckVersion($DBversion)) {
9764
    $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');");
9764
    $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.', 'multiple');");
9765
    print "Upgrade to $DBversion done (Bug 10848 - Allow configuration of mandatory/required fields on the suggestion form in OPAC)\n";
9765
    print "Upgrade to $DBversion done (Bug 10848 - Allow configuration of mandatory/required fields on the suggestion form in OPAC)\n";
9766
    SetVersion($DBversion);
9766
    SetVersion($DBversion);
9767
}
9767
}
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/opac.pref (-5 / +12 lines)
Lines 535-546 OPAC: Link Here
535
                  yes: Allow
535
                  yes: Allow
536
            - patrons to select library when making a purchase suggestion
536
            - patrons to select library when making a purchase suggestion
537
        -
537
        -
538
            - "Fields (separated with |) that should be mandatory for patron purchase suggestions:"
538
            - "Fields that should be mandatory for patron purchase suggestions:"
539
            - pref: OPACSuggestionMandatoryFields
539
            - pref: OPACSuggestionMandatoryFields
540
              class: multi
540
              multiple:
541
            - "<br />Field names you can set here as mandatory for OPAC suggestions include: <code>author</code>, <code>copyrightdate</code>,"
541
                author: Author
542
            - "<code>isbn</code>, <code>publishercode</code>, <code>collectiontitle</code>, <code>place</code>, <code>note</code>, <code>itemtype</code> and <code>patronreason</code>."
542
                copyrightdate: Copyright date
543
            - "Note: <code>title</code> field would be always implicitly required, no need to enter it here."
543
                isbn: ISBN
544
                publishercode: Publisher code
545
                collectiontitle: Collection title
546
                place: Place
547
                note: Note
548
                itemtype: Item type
549
                patronreason: Patron reason
550
            - "(Note: <code>title</code> field would be always implicitly required, no need to enter it here)."
544
        -
551
        -
545
            - pref: OpacHiddenItems
552
            - pref: OpacHiddenItems
546
              type: textarea
553
              type: textarea
(-)a/opac/opac-suggestions.pl (-2 / +1 lines)
Lines 176-182 my $mandatoryfields = ''; Link Here
176
    };
176
    };
177
    my %fh = map {
177
    my %fh = map {
178
        ($_ && $supported_rf->{$_})? ('"'.$_.'"', 1): ();
178
        ($_ && $supported_rf->{$_})? ('"'.$_.'"', 1): ();
179
    } (split(/\s*\|\s*/, $fldsreqsp));
179
    } (split(/\s*\,\s*/, $fldsreqsp));
180
    $fh{'"title"'} = 1;
180
    $fh{'"title"'} = 1;
181
    $mandatoryfields = join(',', (sort keys %fh));
181
    $mandatoryfields = join(',', (sort keys %fh));
182
}
182
}
183
- 

Return to bug 10848