Adding System Preference AllowNotForLoanOverride
this system preference was created but not added to system preferences
This commit is contained in:
parent
856c705a79
commit
568fd7b90c
|
|
@ -716,7 +716,7 @@ sub CanBookBeIssued {
|
|||
if ( $item->{'notforloan'}
|
||||
&& $item->{'notforloan'} > 0 )
|
||||
{
|
||||
if(C4::Context->preference("AllowNotForLoanForcing")){
|
||||
if(C4::Context->preference("AllowNotForLoanOverride")){
|
||||
$issuingimpossible{NOT_FOR_LOAN_CAN_FORCE} = 1;
|
||||
}else{
|
||||
$issuingimpossible{NOT_FOR_LOAN} = 1;
|
||||
|
|
|
|||
|
|
@ -269,7 +269,7 @@ if ($barcode) {
|
|||
$inprocess = 1;
|
||||
}
|
||||
elsif ($issueconfirmed){ # FIXME: Do something? Or is this to *intentionally* do nothing?
|
||||
if (C4::Context->preference("AllowNotForLoanForcing")){
|
||||
if (C4::Context->preference("AllowNotForLoanOverride")){
|
||||
AddIssue( $borrower, $barcode, $datedue, $cancelreserve );
|
||||
$template->param(IMPOSSIBLE => 0);
|
||||
$inprocess = 1;
|
||||
|
|
|
|||
|
|
@ -211,4 +211,5 @@ INSERT INTO `systempreferences` (variable,value,options,explanation,type) VALUES
|
|||
-- FIXME: add FrameworksLoaded, noOPACUserLogin, ReadingHistory ?
|
||||
INSERT INTO `systempreferences` (variable,value,options,explanation,type) VALUES ('SMSSendDriver','','','Sets which SMS::Send driver is used to send SMS messages.','free');
|
||||
INSERT INTO systempreferences (variable,value,explanation,options,type) VALUES('AllowRenewalLimitOverride', '0', 'if ON, allows renewal limits to be overridden on the circulation screen',NULL,'YesNo');
|
||||
INSERT INTO systempreferences (variable,value,explanation,options,type) VALUES('MergeAuthoritiesOnUpdate', '1', 'if ON, Updateing authorities will automatically updates biblios',NULL,'YesNo');
|
||||
INSERT INTO systempreferences (variable,value,explanation,options,type) VALUES('MergeAuthoritiesOnUpdate', '1', 'if ON, Updating authorities will automatically updates biblios',NULL,'YesNo');
|
||||
INSERT INTO systempreferences (variable,value,explanation,options,type) VALUES('AllowNotForLoanOverride', '0', 'if ON, enables the librarian to choose when they want to check out a notForLoan regular item',NULL,'YesNo');
|
||||
|
|
|
|||
|
|
@ -211,4 +211,5 @@ INSERT INTO `systempreferences` (variable,value,options,explanation,type) VALUES
|
|||
INSERT INTO `systempreferences` (variable,value,options,explanation,type) VALUES('OpacSuppression', '0', '', 'Turn ON the OPAC Suppression feature, requires further setup, ask your system administrator for details', 'YesNo');
|
||||
INSERT INTO `systempreferences` (variable,value,options,explanation,type) VALUES ('SMSSendDriver','','','Détermine le pilote utilisé par SMS::Send pour envoyer des SMS.','free');
|
||||
INSERT INTO systempreferences (variable,value,explanation,options,type) VALUES('AllowRenewalLimitOverride', '1', 'Si Activé, permet que les périodes de renouvellement puisse être positionnée manuellement durant la circulation',NULL,'YesNo');
|
||||
INSERT INTO systempreferences (variable,value,explanation,options,type) VALUES('MergeAuthoritiesOnUpdate', '0', 'Si Activé, met à jour toutes les notices bibliographiques afférentes dès la modification d''une autorité',NULL,'YesNo');
|
||||
INSERT INTO systempreferences (variable,value,explanation,options,type) VALUES('MergeAuthoritiesOnUpdate', '0', 'Si Activé, met à jour toutes les notices bibliographiques afférentes dès la modification d''une autorité',NULL,'YesNo');
|
||||
INSERT INTO systempreferences (variable,value,explanation,options,type) VALUES('AllowNotForLoanOverride', '0', 'Si activé, permet au bibliothécaire de choisir de prêter tout de même un exemplaire normalement exclu du prêt',NULL,'YesNo');
|
||||
|
|
|
|||
|
|
@ -140,6 +140,16 @@ ENDOFSQL3
|
|||
SetVersion ($DBversion);
|
||||
}
|
||||
|
||||
$DBversion = "3.00.01.005";
|
||||
if (C4::Context->preference("Version") < TransformToNum($DBversion)) {
|
||||
$dbh->do(<<ENDOFNOTFORLOANOVERRIDE);
|
||||
INSERT INTO systempreferences (variable,value,explanation,options,type) VALUES('AllowNotForLoanOverride', '0', 'if ON, enables the librarian to choose when they want to check out a notForLoan regular item',NULL,'YesNo')
|
||||
ENDOFNOTFORLOANOVERRIDE
|
||||
print "Upgrade to $DBversion done (Adding AllowNotForLoanOverride System preference)\n";
|
||||
}
|
||||
SetVersion ($DBversion);
|
||||
}
|
||||
|
||||
=item DropAllForeignKeys($table)
|
||||
|
||||
Drop all foreign keys of the table $table
|
||||
|
|
|
|||
Loading…
Reference in New Issue