From: Michael Hafen Date: Wed, 22 Oct 2008 23:11:26 +0000 (-0500) Subject: Allow renewal limits to be overridden X-Git-Tag: v3.00.04~619 X-Git-Url: http://git.rot13.org/?a=commitdiff_plain;h=54a04fbea76cc014af3fe6723ceee898cf679d34;p=koha.git Allow renewal limits to be overridden Originally by Jesse Weaver This patch creates a new system preference, AllowRenewalLimitOverride, that, if YES, allows the renewal limit to be manually overridden. It updates C4::Circulation and reserve/renewscript.pl to obey this. Signed-off-by: Galen Charlton Signed-off-by: Chris Cormack --- diff --git a/installer/data/mysql/fr-FR/1-Obligatoire/unimarc_standard_systemprefs.sql b/installer/data/mysql/fr-FR/1-Obligatoire/unimarc_standard_systemprefs.sql index 5c1ee465c6..88815a01f9 100644 --- a/installer/data/mysql/fr-FR/1-Obligatoire/unimarc_standard_systemprefs.sql +++ b/installer/data/mysql/fr-FR/1-Obligatoire/unimarc_standard_systemprefs.sql @@ -213,3 +213,4 @@ INSERT INTO systempreferences (variable,value,explanation,options,type) VALUES(' 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'); INSERT INTO systempreferences (variable,value,explanation,options,type) VALUES('RenewalPeriodBase', 'date_due', 'Permet de déterminer si la période de renouvellement doit être calculée sur la date de retour ou sur le jour du renouvellement','date_due|now','Choice'); + diff --git a/installer/data/mysql/updatedatabase.pl b/installer/data/mysql/updatedatabase.pl index 3fa1ff863f..5b78ad5da9 100755 --- a/installer/data/mysql/updatedatabase.pl +++ b/installer/data/mysql/updatedatabase.pl @@ -2035,6 +2035,13 @@ if ( C4::Context->preference('Version') < TransformToNum($DBversion) ) { SetVersion($DBversion); } +$DBversion = "3.00.04.003"; +if (C4::Context->preference("Version") < TransformToNum($DBversion)) { + $dbh->do("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')"); + print "Upgrade to $DBversion done (add new syspref)\n"; + SetVersion ($DBversion); +} + =item DropAllForeignKeys($table) Drop all foreign keys of the table $table diff --git a/koha-tmpl/intranet-tmpl/prog/en/css/staff-global.css b/koha-tmpl/intranet-tmpl/prog/en/css/staff-global.css index ff7d1a1c94..251852425b 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/css/staff-global.css +++ b/koha-tmpl/intranet-tmpl/prog/en/css/staff-global.css @@ -765,13 +765,11 @@ fieldset.rows .inputnote { background-color : #FFFF99; } .content_hidden { - visibility:hidden; /* you propably don't need to change this one */ display:none; } /* the property for the displayed tab */ .content_visible { - visibility:visible; /* you propably don't need to change this one */ display:block; } #newbiblio a, #addchild a, #newentry a, #newshelf a, #newmenuc .first-child, #newsupplier .first-child, #newlabel a, #newtemplate a, #newlabelbatch a, #newpatroncardbatch a, #newprofile a, #newsubscription a, #newdictionary a, #neworder a { diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tmpl b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tmpl index e74ef12d57..8bcf61b1cb 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tmpl +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tmpl @@ -10,22 +10,22 @@ @@ -63,13 +56,13 @@ $.tablesorter.addParser({
- +
- +
@@ -98,7 +91,9 @@ $.tablesorter.addParser({
-

+ + +

@@ -130,18 +125,52 @@ $.tablesorter.addParser({
    -
  • Local Use Recorded
  • -
  • The due date "" is invalid
  • -
  • The barcode was not found
  • -
  • Item not for loan
  • -
  • Item has been withdrawn
  • -
  • Item is restricted
  • -
  • Patron's address is in doubt
  • -
  • Patron's card is lost
  • -
  • Patron is restricted
  • -
  • No more renewals possible
  • -
  • Patron's card is expired
  • -
  • This item belongs to and cannot be issued from this location.
  • + +
  • Local Use Recorded
  • + + + +
  • The due date is invalid
  • + + +
  • The barcode was not found
  • + + + +
  • Item not for loan
  • + + + +
  • Item has been withdrawn
  • + + + +
  • Item is restricted
  • + + + +
  • Patron's address is in doubt
  • + + + +
  • Patron's card is lost
  • + + + +
  • Patron is restricted
  • + + + +
  • No more renewals possible
  • + + + +
  • Patron's card is expired
  • + + + +
  • This item belongs to and cannot be issued from this location.
  • +
@@ -198,14 +227,14 @@ No patron matched
Enter item barcode:
- + -
Specify Due Date:
- " /> - + +
+
Specify Due Date:
" /> /lib/calendar/cal.gif" alt="Show Calendar" border="0" id="CalendarDueDate" style="cursor: pointer;" /> @@ -403,9 +392,13 @@ if (nodename =="barcodes[]"){ -