('OPACShowUnusedAuthorities','1','','Show authorities that are not being used in the OPAC.','YesNo'),
('opacsmallimage','','','Enter a complete URL to an image to replace the default Koha logo','free'),
('OpacStarRatings','all','disable|all|details',NULL,'Choice'),
+('OpacSuggestionManagedBy',1,'','Show the name of the staff member who managed a suggestion in OPAC','YesNo'),
('OpacSuppression','0','','Turn ON the OPAC Suppression feature, requires further setup, ask your system administrator for details','YesNo'),
('OpacSuppressionByIPRange','','','Restrict the suppression to IP adresses outside of the IP range','free'),
('opacthemes','bootstrap','','Define the current theme for the OPAC interface.','Themes'),
SetVersion($DBversion);
}
+$DBversion = "3.15.00.XXX";
+if (CheckVersion($DBversion)) {
+ $dbh->do("INSERT INTO systempreferences ( variable, value, options, explanation, type ) VALUES
+ ('OpacSuggestionManagedBy',1,'','Show the name of the staff member who managed a suggestion in OPAC','YesNo');");
+ print "Upgrade to $DBversion done (Bug 10907: Add OpacSuggestionManagedBy system preference)\n";
+ SetVersion($DBversion);
+}
=head1 FUNCTIONS
homebranch: 'home library'
holdingbranch: 'holding library'
- "is the logged in user's library. The second tab will contain all other items."
+ -
+ - pref: OpacSuggestionManagedBy
+ choices:
+ yes: Show
+ no: Don't show
+ - "the name of the staff member who managed a suggestion in OPAC."
Features:
-
- pref: opacuserlogin
<th>Summary</th>
<th>Note</th>
[% IF Koha.Preference( 'OPACViewOthersSuggestions' ) == 1 %]<th>Suggested for</th>[% END %]
- <th>Managed by</th>
+ [% IF Koha.Preference( 'OpacSuggestionManagedBy' ) == 1 %]<th>Managed by</th>[% END %]
<th>Status</th>
</tr>
</thead>
[% END %]
</td>
[% END %]
+ [% IF Koha.Preference( 'OpacSuggestionManagedBy' ) == 1 %]
<td>
[% IF ( suggestions_loo.surnamemanagedby ) %]
<span class="tdlabel">Managed by:</span>
[% END %]
[% END %]
</td>
+ [% END %]
<td>
<span class="tdlabel">Status:</span>
[% IF ( suggestions_loo.ASKED ) %]Requested
<th>Summary</th>
<th>Note</th>
[% IF ( OPACViewOthersSuggestions ) %]<th>Suggested for</th>[% END %]
- <th>Managed by</th>
+ [% IF Koha.Preference( 'OpacSuggestionManagedBy' ) == 1 %]<th>Managed by</th>[% END %]
<th>Status</th>
</tr></thead>
<tbody>[% FOREACH suggestions_loo IN suggestions_loop %]
[% IF ( OPACViewOthersSuggestions ) %]<td>
[% IF ( suggestions_loo.branchcodesuggestedby ) %][% suggestions_loo.branchcodesuggestedby %][% ELSE %] [% END %]
</td>[% END %]
+ [% IF Koha.Preference( 'OpacSuggestionManagedBy' ) == 1 %]
<td>
[% IF ( suggestions_loo.surnamemanagedby ) %][% suggestions_loo.surnamemanagedby %][% IF ( suggestions_loo.firstnamemanagedby ) %],[% END %] [% suggestions_loo.firstnamemanagedby %][% ELSE %] [% END %]
</td>
+ [% END %]
<td>
[% IF ( suggestions_loo.ASKED ) %]Requested
[% ELSIF ( suggestions_loo.CHECKED ) %]Checked by the library