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

(-)a/installer/data/mysql/sysprefs.sql (+1 lines)
Lines 271-276 INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` Link Here
271
('OPACShowUnusedAuthorities','1','','Show authorities that are not being used in the OPAC.','YesNo'),
271
('OPACShowUnusedAuthorities','1','','Show authorities that are not being used in the OPAC.','YesNo'),
272
('opacsmallimage','','','Enter a complete URL to an image to replace the default Koha logo','free'),
272
('opacsmallimage','','','Enter a complete URL to an image to replace the default Koha logo','free'),
273
('OpacStarRatings','all','disable|all|details',NULL,'Choice'),
273
('OpacStarRatings','all','disable|all|details',NULL,'Choice'),
274
('OpacSuggestionManagedBy',1,'','Show the name of the staff member who managed a suggestion in OPAC','YesNo'),
274
('OpacSuppression','0','','Turn ON the OPAC Suppression feature, requires further setup, ask your system administrator for details','YesNo'),
275
('OpacSuppression','0','','Turn ON the OPAC Suppression feature, requires further setup, ask your system administrator for details','YesNo'),
275
('OpacSuppressionByIPRange','','','Restrict the suppression to IP adresses outside of the IP range','free'),
276
('OpacSuppressionByIPRange','','','Restrict the suppression to IP adresses outside of the IP range','free'),
276
('opacthemes','bootstrap','','Define the current theme for the OPAC interface.','Themes'),
277
('opacthemes','bootstrap','','Define the current theme for the OPAC interface.','Themes'),
(-)a/installer/data/mysql/updatedatabase.pl (+9 lines)
Lines 7825-7830 if ( CheckVersion($DBversion) ) { Link Here
7825
}
7825
}
7826
7826
7827
7827
7828
$DBversion = "3.15.00.XXX";
7829
if(CheckVersion($DBversion)) {
7830
    $dbh->do("INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, `type` ) VALUES 
7831
        ('OpacSuggestionManagedBy',1,'','Show the name of the staff member who managed a suggestion in OPAC','YesNo');");
7832
    print "Upgrade to $DBversion done (Bug 10907: Add OpacSuggestionManagedBy system preference)\n";
7833
    SetVersion($DBversion);
7834
}
7835
7836
7828
=head1 FUNCTIONS
7837
=head1 FUNCTIONS
7829
7838
7830
=head2 TableExists($table)
7839
=head2 TableExists($table)
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/opac.pref (+6 lines)
Lines 280-285 OPAC: Link Here
280
                homebranch: 'home library'
280
                homebranch: 'home library'
281
                holdingbranch: 'holding library'
281
                holdingbranch: 'holding library'
282
            - "is the logged in user's library. The second tab will contain all other items."
282
            - "is the logged in user's library. The second tab will contain all other items."
283
        -
284
            - pref: OpacSuggestionManagedBy
285
              choices:
286
                  yes: Show
287
                  no: Don't show
288
            - "the name of the staff member who managed a suggestion in OPAC."
283
    Features:
289
    Features:
284
        -
290
        -
285
            - pref: opacuserlogin
291
            - pref: opacuserlogin
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-suggestions.tt (-1 / +3 lines)
Lines 148-154 Link Here
148
                                                <th>Summary</th>
148
                                                <th>Summary</th>
149
                                                <th>Note</th>
149
                                                <th>Note</th>
150
                                                [% IF Koha.Preference( 'OPACViewOthersSuggestions' ) == 1 %]<th>Suggested for</th>[% END %]
150
                                                [% IF Koha.Preference( 'OPACViewOthersSuggestions' ) == 1 %]<th>Suggested for</th>[% END %]
151
                                                <th>Managed by</th>
151
                                                [% IF Koha.Preference( 'OpacSuggestionManagedBy' ) == 1 %]<th>Managed by</th>[% END %]
152
                                                <th>Status</th>
152
                                                <th>Status</th>
153
                                            </tr>
153
                                            </tr>
154
                                        </thead>
154
                                        </thead>
Lines 186-191 Link Here
186
                                                            [% END %]
186
                                                            [% END %]
187
                                                        </td>
187
                                                        </td>
188
                                                    [% END %]
188
                                                    [% END %]
189
                                                    [% IF Koha.Preference( 'OpacSuggestionManagedBy' ) == 1 %]
189
                                                    <td>
190
                                                    <td>
190
                                                        [% IF ( suggestions_loo.surnamemanagedby ) %]
191
                                                        [% IF ( suggestions_loo.surnamemanagedby ) %]
191
                                                            <span class="tdlabel">Managed by:</span>
192
                                                            <span class="tdlabel">Managed by:</span>
Lines 194-199 Link Here
194
                                                            [% END %]
195
                                                            [% END %]
195
                                                        [% END %]
196
                                                        [% END %]
196
                                                    </td>
197
                                                    </td>
198
                                                    [% END %]
197
                                                    <td>
199
                                                    <td>
198
                                                        <span class="tdlabel">Status:</span>
200
                                                        <span class="tdlabel">Status:</span>
199
                                                        [% IF ( suggestions_loo.ASKED ) %]Requested
201
                                                        [% IF ( suggestions_loo.ASKED ) %]Requested
(-)a/koha-tmpl/opac-tmpl/prog/en/modules/opac-suggestions.tt (-2 / +3 lines)
Lines 177-183 Link Here
177
            <th>Summary</th>
177
            <th>Summary</th>
178
            <th>Note</th>
178
            <th>Note</th>
179
            [% IF ( OPACViewOthersSuggestions ) %]<th>Suggested for</th>[% END %]
179
            [% IF ( OPACViewOthersSuggestions ) %]<th>Suggested for</th>[% END %]
180
            <th>Managed by</th>
180
            [% IF Koha.Preference( 'OpacSuggestionManagedBy' ) == 1 %]<th>Managed by</th>[% END %]
181
            <th>Status</th>
181
            <th>Status</th>
182
        </tr></thead>
182
        </tr></thead>
183
        <tbody>[% FOREACH suggestions_loo IN suggestions_loop %]
183
        <tbody>[% FOREACH suggestions_loo IN suggestions_loop %]
Lines 203-211 Link Here
203
                [% IF ( OPACViewOthersSuggestions ) %]<td>
203
                [% IF ( OPACViewOthersSuggestions ) %]<td>
204
                    [% IF ( suggestions_loo.branchcodesuggestedby ) %][% suggestions_loo.branchcodesuggestedby %][% ELSE %]&nbsp;[% END %]
204
                    [% IF ( suggestions_loo.branchcodesuggestedby ) %][% suggestions_loo.branchcodesuggestedby %][% ELSE %]&nbsp;[% END %]
205
                </td>[% END %]
205
                </td>[% END %]
206
                [% IF Koha.Preference( 'OpacSuggestionManagedBy' ) == 1 %]
206
                <td>
207
                <td>
207
					[% IF ( suggestions_loo.surnamemanagedby ) %][% suggestions_loo.surnamemanagedby %][% IF ( suggestions_loo.firstnamemanagedby ) %],[% END %] [% suggestions_loo.firstnamemanagedby %][% ELSE %]&nbsp;[% END %]
208
					[% IF ( suggestions_loo.surnamemanagedby ) %][% suggestions_loo.surnamemanagedby %][% IF ( suggestions_loo.firstnamemanagedby ) %],[% END %] [% suggestions_loo.firstnamemanagedby %][% ELSE %]&nbsp;[% END %]
208
                </td>
209
                </td>
210
                [% END %]
209
                <td>
211
                <td>
210
                    [% IF    ( suggestions_loo.ASKED ) %]Requested
212
                    [% IF    ( suggestions_loo.ASKED ) %]Requested
211
                    [% ELSIF ( suggestions_loo.CHECKED ) %]Checked by the library
213
                    [% ELSIF ( suggestions_loo.CHECKED ) %]Checked by the library
212
- 

Return to bug 10907