Paul POULAIN
61c72f8f3e
Adding KOHAVERSION management.
...
The kohaversion is in the code directory (in /kohaversion.pl)
C4::Context now has a new method C4::Context->KOHAVERSION
that returns the koha code version.
The systempreference Version contains the database version.
If the 2 are differents, when the user log in, he is redirected to web installer (new behaviour : before this commit, the check was done on everypage, it's too CPU costly I think)
In the web installer, we check now if we do a new setup or an upgrade and show only the appropriate link.
The updatedatabase contains a lot of new things :
* SetVersion($kohaversion), that set the kohaversion after each update
* TransformToNum($kohaversion) that returns a number (3.0000001 from 3.00.00.001 for example) for a given koha version
* DropAllForeignKeys($table) that does what is written : drop all foreign keys. A shame it's not possible directly in mySQL...
* for each database update, just :
add the following lines :
=item
Describe what it does for other developpers
=cut
$DBversion = "your.koha.version.dbnumber";
if (C4::Context->preference("Version") < TransformToNum($DBversion)) {
#
# DO YOUR UPDATE STUFF
#
print "Upgrade to $DBversion done (specify what it does if you want)\n";
SetVersion ($DBversion);
}
IMPORTANT NOTES :
in koha 2.2, a new install was done through installing a 2.2.0 database, then updating it to the installed version.
in Koha 3.0, /installer/kohaversion.sql MUST contain an uptodate version, as the installer set the DB version to kohaversion after uploading kohaversion.sql. It does NOT run updatedatabase.
The update from Koha 2.2 to Koha 3.0 must NOT be done through the webinstaller : updatedatabase is very very long to run and you'll reach Apache timeout for sure. See http://wiki.koha.org/doku.php?id=22_to_30 that contains my notes for upgrading (with some/few UNIMARC specific stuff)
Note For RM, please eyeball this change
Signed-off-by: Chris Cormack <crc@liblime.com>
2007-08-16 06:58:32 -05:00
Paul POULAIN
1e6c13df39
show callnumber in result list and update SQL by using LEFT JOIN
...
Signed-off-by: Chris Cormack <crc@liblime.com>
2007-08-16 06:56:17 -05:00
Paul POULAIN
720bc7b37a
adding supplier deletion feature.
...
A supplier can be deleted ONLY if it has NO basket
Signed-off-by: Chris Cormack <crc@liblime.com>
2007-08-16 06:56:00 -05:00
Paul POULAIN
92f2909d57
reintroducing an important line in TransformeMarcToKoha
...
Signed-off-by: Chris Cormack <crc@liblime.com>
2007-08-14 21:32:52 -05:00
Paul POULAIN
55ac115e61
fixes to fine management
...
Signed-off-by: Chris Cormack <crc@liblime.com>
2007-08-14 21:32:45 -05:00
Paul POULAIN
7612dacc6f
show username instead of cardnumber
...
Signed-off-by: Chris Cormack <crc@liblime.com>
Note from Chris, this should probably be a system preference, some libraries want the cardnumber there.
2007-08-14 21:30:38 -05:00
Paul POULAIN
9a32fe85c2
This commit fixes a bug in biblio encoding. things were mixed up when reporting item(s) into the biblio, to UPDATE biblioitems.marcxml, after a biblio modif (in MARC editor).
...
So, deal carefully with this commit pls, and check it for your setups, because the patch works for me, but I'm not sure to understand well why :\
Signed-off-by: Chris Cormack <crc@liblime.com>
2007-08-14 21:28:28 -05:00
Chris Cormack
aafcb600c1
Merge branch 'master' of /home/jmf/repos/koha-rm-root.git/
2007-08-10 12:15:13 -05:00
Joshua Ferraro
2b2f7a1794
revisions to login page to make it pretty
...
Signed-off-by: Chris Cormack <crc@liblime.com>
2007-08-10 12:15:05 -05:00
Chris Cormack
8494eff8bc
Removing warn in Auth.pm
...
Changing InstallAuth.pm to use CGI::Session
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
2007-08-10 10:51:59 -05:00
Joshua Ferraro
663f3bb7d8
Revert "set the branch at login"
...
This reverts commit bf1fd83d08
.
Conflicts:
koha-tmpl/intranet-tmpl/prog/en/auth.tmpl
Signed-off-by: Chris Cormack <crc@liblime.com>
2007-08-09 10:46:47 -05:00
Joshua Ferraro
6cdf0832e2
new virtual shelves changes, keyed by biblionumber
...
Signed-off-by: Chris Cormack <crc@liblime.com>
2007-08-09 09:17:49 -05:00
Joshua Ferraro
d5acfe9d73
update to virtual shelves -- approved
2007-08-08 13:12:47 -05:00
Joshua Ferraro
812ba6cd9c
working on virtual shelves cleanup, partially finished
...
Signed-off-by: Chris Cormack <crc@liblime.com>
2007-08-08 11:39:24 -05:00
Joshua Ferraro
e9ae8c0686
patches from paul
2007-08-08 07:41:19 -05:00
Chris Cormack
2e4a11773c
Merge branch 'master' of /home/jmf/repos/koha-rm-root.git/
2007-08-08 07:36:43 -05:00
Joshua Ferraro
8ee881174f
Merge branch 'master' of /usr/local/git/koha_base.git/
2007-08-08 07:27:26 -05:00
Paul POULAIN
4b857e1cce
Z3950.pm is no more used anywhere. removing it
...
Signed-off-by: Chris Cormack <crc@liblime.com>
2007-08-08 07:25:10 -05:00
Joshua Ferraro
bf1fd83d08
set the branch at login
2007-08-07 15:45:03 -05:00
Chris Cormack
dbdb7f4feb
Merge branch 'master' of /home/jmf/repos/koha-rm-root.git/
2007-08-07 15:43:42 -05:00
Joshua Ferraro
ab77322c08
adds the ability to set the branch at login,
...
Signed-off-by: Chris Cormack <crc@liblime.com>
2007-08-07 15:41:19 -05:00
Joshua Ferraro
737fd3465a
adding CGI::Session dependency for recent session re-write
2007-08-07 13:55:41 -05:00
Joshua Ferraro
a88a0d04ac
taking out a warn
...
Signed-off-by: Chris Cormack <crc@liblime.com>
2007-08-07 13:54:27 -05:00
Chris Cormack
512eda82cf
Auth.pm rewritten to use CGI::Session
...
Signed-off-by: kados <jmf@liblime.com>
2007-08-07 13:22:11 -05:00
Chris Cormack
852b7d5274
Perltidying
...
Signed-off-by: Chris Cormack <crc@arwen.metavore.com>
2007-08-03 16:39:30 -05:00
toins
7f3265ccae
Some new functions.
...
TransformHTMLtoMarc rewrited.
2007-07-31 16:01:11 +00:00
toins
a3135df486
really minor change : POD fixing, indentation & some compilation warn removing.
2007-07-26 15:18:46 +00:00
toins
1b77b07b3b
adding 'kw' to search on keyword on non zebra mod
2007-07-26 15:17:46 +00:00
toins
36d57b8f9a
using 'our' instead of 'use vars' + POD fixing.
2007-07-26 15:15:08 +00:00
toins
2ae0459df0
removing warn compilation.
2007-07-26 15:14:05 +00:00
btoumi
9395334e69
add control of 'return date' if it 's a special or repeatable holidays , and return a right return date
...
(renewal)
2007-07-25 14:09:39 +00:00
hdl
92adf782de
Bug Fixing GetMarcSubjects.
...
Links parameters were mixed.
2007-07-20 15:43:16 +00:00
hdl
2e7f9535f9
a query was not mysql5 compliant.
2007-07-20 14:31:36 +00:00
hdl
046f54eab5
Adding biblio.biblionumber to GetItemsfor Inventory
2007-07-20 14:02:57 +00:00
hdl
d3b0a44dd0
Bug FIXING:
...
One query was not mysql5 compliant.
2007-07-20 10:41:34 +00:00
hdl
fbec734d57
Adding selection by location for inventory
2007-07-19 07:40:08 +00:00
toins
a9b9f8002b
using LoginBranchnameShort instead of LoginBranchname.
2007-07-17 09:28:52 +00:00
hdl
2292d21387
Adding Summary for UNIMARC authorities
2007-07-16 15:45:28 +00:00
hdl
aea9de3bc7
FindDuplicate works for an title itemtype author key.
2007-07-16 15:44:31 +00:00
rangi
bf7eaca974
Fix for bug 1313, silent failure when entering manual invoice with invalid
...
itemnumber
2007-07-15 22:19:01 +00:00
hdl
11c686b662
In Serials-home.pl
...
librarians can now search titles with lists of words.
2007-07-12 17:38:05 +00:00
toins
6ec59c52b9
using 'our' instead of 'use vars' which is deprecated.
...
removing some compilation warns.
2007-07-12 15:22:09 +00:00
hdl
18cefded0e
Bug Fixing : Deleting an unused variable
2007-07-12 12:51:34 +00:00
hdl
a54c939f05
Bug Fixing : Reserves in OPAC or in intranet lead to an internal server error
2007-07-12 12:47:19 +00:00
hdl
896d1cd5c8
Bug Fixing : GetNextSeq did not pass through innerloop parameters.
2007-07-12 10:01:20 +00:00
hdl
7275bc3d45
Adding KohaAdminEmailAdress
...
Adding LoginBranchCode
Adding a redirect to maintenance.pl for OPAC when installer required.
2007-07-11 10:24:24 +00:00
toins
3787c329d0
bug fix : Sometime importing biblio return no breedingid.
...
+ remove warn compilation
+ remove pod error.
2007-07-10 14:34:32 +00:00
toins
335103bbd3
syspref are writed for the template in auth.pm
2007-07-10 14:21:41 +00:00
hdl
6883d37fe7
Bug Fixing : reserves in OPAC and intranet.
2007-07-09 08:29:51 +00:00
rangi
73e6be1340
Fix for bug 1295 adding a borrower with the same cardnumber
2007-07-08 23:07:31 +00:00
kados
4af7e13c70
Cleaning up perldocs for make utility that MJ wrote. I was getting a bunch
...
of warnings:
Manifying blib/man3/reports::cat_issues_top.3pm
reports/cat_issues_top.pl:40: Unknown command paragraph "=over2"
Manifying blib/man3/reports::acquisitions_stats.3pm
reports/acquisitions_stats.pl:40: Unknown command paragraph "=over2"
Manifying blib/man3/C4::Koha.3pm
C4/Koha.pm:1227: Unmatched =back
Manifying blib/man3/reports::catalogue_stats.3pm
reports/catalogue_stats.pl:38: Unknown command paragraph "=over2"
Manifying blib/man3/opac::opac-topissues.3pm
opac/opac-topissues.pl:39: Unknown command paragraph "=over2"
Manifying blib/man3/reports::issues_avg_stats.3pm
reports/issues_avg_stats.pl:39: Unknown command paragraph "=over2"
Manifying blib/man3/reports::borrowers_stats.3pm
reports/borrowers_stats.pl:40: Unknown command paragraph "=over2"
Manifying blib/man3/reports::bor_issues_top.3pm
reports/bor_issues_top.pl:40: Unknown command paragraph "=over2"
Manifying blib/man3/reports::catalogue_out.3pm
reports/catalogue_out.pl:39: Unknown command paragraph "=over2"
Manifying blib/man3/reports::borrowers_out.3pm
reports/borrowers_out.pl:39: Unknown command paragraph "=over2"
Manifying blib/man3/C4::Languages.3pm
C4/Languages.pm:445: Unmatched =back
Manifying blib/man3/reports::issues_stats.3pm
reports/issues_stats.pl:39: Unknown command paragraph "=over2"
Manifying blib/man3/C4::Acquisition.3pm
C4/Acquisition.pm:772: Unmatched =back
2007-07-08 15:36:59 +00:00
kados
f6126d9962
replacing SUPER with NO_LIBRARY_SET for login information
2007-07-03 18:29:37 +00:00
tipaul
8767b123c4
improving installer : now the database Version is compared to the Koha version (defined by <kohaversion>XXX</kohaversion> in koha.xml file. If the Version systempref does not exist or is lower than kohaversion, you're redirected to installer. If there is no Version, you're redirected to the 1st step of the installer (full install). If Version < kohaversion, you're redirected to step 3 (updatedatabase). check that you have <kohaversion> in you koha.xml, otherwise, you'l loop forever to the installer...
2007-07-03 13:50:20 +00:00
tipaul
96386e6568
fixing some display bugs (itemtype not properly returned and a html table bug that makes items appear strangely
2007-07-03 13:47:44 +00:00
tipaul
83545f8449
return itemtype description properly
2007-07-03 09:40:58 +00:00
tipaul
a9403a8bba
if you just replace su by a space in subjects, you'll replace jesus by je s, which is strange for users. this fix solves the problem and introduces authoritysep systempref as separator of subfields, for a better identification of where the authority starts and end
2007-07-03 09:33:05 +00:00
kados
daa450ebbd
adding a warn to log why we're redirecting to installer
2007-07-03 04:39:03 +00:00
tipaul
f5583efd7b
minor code rewritte
2007-07-02 09:14:09 +00:00
tipaul
43e23a2ca9
unimarc bugfix : the encoding is in field 100 in UNIMARC. when TransformHTMLtoXML on an item, you must not automatically add a 100 field in items, otherwise there will be 2 100 fields in the biblio, which is wrong
2007-07-02 09:13:22 +00:00
tipaul
b83f4286b2
don t display the 1 in location column if there is only 1 item : it's useless & confusing for users
2007-07-02 08:50:56 +00:00
rangi
e1353fb639
Fix for bug 1314 manual credits broken
2007-07-02 00:44:25 +00:00
rangi
c75b84fac7
Fix for bug 1365
2007-07-02 00:38:17 +00:00
rangi
ba52d15f7b
Making transferbook update the last seen date of the item transfered
2007-07-01 23:56:43 +00:00
hdl
0a9ee0c59b
Changing GetSerials2 to take more than one status in parameter.
...
status=1,3
will display all the serials late and waited.
2007-06-30 05:26:25 +00:00
hdl
7881f45fde
Removing some Warnings.
2007-06-27 22:09:15 +00:00
hdl
4bae56fcc1
Bug Fixing.
...
Problem in number calculation.
BEWARE... For old serial number calculation, the numbering_pattern should be set to None of the above, that is 7 and not 1 or 2...
2007-06-27 22:08:00 +00:00
hdl
5292b2c0fc
Bug Fixing.
...
An inconsistency in function signature caused a shift between date received and publication date.
2007-06-27 15:10:44 +00:00
hdl
aa42aa7f95
Bug Fixing.
...
IndependantBranches would lead to void information in GetSubscription because select was for "''" and not ""
2007-06-27 14:54:55 +00:00
toins
5e5619119e
removing '-' in isbn to allow amazon content.
2007-06-26 15:43:55 +00:00
tipaul
8581fe4bbd
updating web installer : going to step1 if needed and fixing sql
2007-06-26 14:30:22 +00:00
tipaul
3e87f37216
why was title ordering on 1=36 ? in ccl.properties, it s 1=4. (1=36 being for title-cover)
...
thus, the title sorting was not working. This commit fixes the problem.
LIBLIME : verify I am right in the analysis and in the fix, it is a part mostly written by joshua
2007-06-26 09:20:21 +00:00
tipaul
4843b7e49c
just reindent
2007-06-25 15:05:18 +00:00
tipaul
014350b476
bugfixes on unimarc 100 handling (the field used for encoding)
2007-06-25 15:01:45 +00:00
toins
b41c3087b6
missing comma :-/
2007-06-20 09:45:09 +00:00
toins
d4fbf8c49a
writing charset explicitly.
2007-06-19 15:14:08 +00:00
toins
dd7718af2e
enable to search on subject with nozebra
2007-06-15 16:32:44 +00:00
tipaul
23427c51b9
some fixes (and only fixes)
2007-06-15 13:44:44 +00:00
toins
95f4785d58
do not get $3 $4 and $5 on GetMarcSubjects GetMarcAuthors on unimarc flavour.
2007-06-15 09:40:06 +00:00
toins
38f7d2148a
removing warn compilation.
2007-06-13 13:03:34 +00:00
tipaul
5dd3f0229a
bugfixes (various), handling utf-8 without guessencoding (as suggested by joshua, fixing some zebra config files -for french but should be interesting for other languages-
2007-06-06 13:08:35 +00:00
toins
104925e9ac
re introducing TotalPaid function as circ/stat.pl use it.
2007-06-05 10:01:17 +00:00
tipaul
6f276facc8
removing guessencoding, hard-coding utf-8
2007-06-05 08:53:19 +00:00
tipaul
a0ca85b917
BugFixing CanBookBeRenewed was too strict. If a book could be renewed 1 time, it wouldnot do.
2007-05-30 09:12:36 +00:00
tipaul
c8c6012195
merging opac details only for items with the same branch+location+itemcallnumber && putting publisher before publicationyear && lowering item column size in result page && fixing a missing branch reference in ccl.properties
2007-05-28 16:28:43 +00:00
hdl
b81db9061d
Deleting $year paramater in GetBookfundBreakdown
2007-05-28 15:26:43 +00:00
tipaul
c5999dbbbd
BUG FIXING :
...
Serials.pm was not Mysql5 compliant.
(FROM table1, table2 changed to
FROM table1 LEFT JOIN table2 ON....
)
2007-05-25 15:14:43 +00:00
hdl
3286b06607
Changing signature for NewIssue
...
(To be more unify to other subs signature)
2007-05-24 16:11:39 +00:00
hdl
9381ad2b33
Bug Fixing.
...
irregular serials are now managed in HasSubscriptionExpired
and abouttoexpire.
Be WARN that Date::Calc is very picky about Date format.
So that null dates are throwing 500 Error.
But Now this should be seldom.
2007-05-23 19:57:47 +00:00
tipaul
25c1d9c35a
Bug Fixing :
...
managing abouttoexpire function for irregular serial
Need more work.
HDL from Paul's machine
2007-05-23 17:35:59 +00:00
tipaul
67d1dcf1f7
various bugfixes (minor) and french translation updated
2007-05-23 16:19:40 +00:00
tipaul
5ff7fcffa4
Bugfixes & improvements (various and minor) :
...
- updating templates to have tmpl_process3.pl running without any errors
- adding a drupal-like css for prog templates (with 3 small images)
- fixing some bugs in circulation & other scripts
- updating french translation
- fixing some typos in templates
2007-05-22 09:13:54 +00:00
hdl
286930bdc7
Changing GetMarcStructure signature.
...
Deleting first parameter $dbh
2007-05-22 08:50:47 +00:00
btoumi
1e21ba6968
add security when u delete biblio :
...
u must delete linked items before delete biblio
2007-05-21 08:44:17 +00:00
btoumi
c73cb186f8
bug fix :
...
add sql condition to recover only the right record from issues table
2007-05-21 07:45:45 +00:00
btoumi
a80a0a7edc
bug fix: add call of two function from Date::calc
...
and correction of wrong variable name
2007-05-18 12:30:27 +00:00
hdl
97bb46d454
Adding First tab information
2007-05-18 09:23:49 +00:00
btoumi
100385ab29
bug fix:
...
problem in displayed label link with subject in detail.tmpl
ex: label random => rdom
2007-05-11 16:04:03 +00:00
btoumi
c49fb53a45
add security for the item barcode
2007-05-11 14:49:54 +00:00
btoumi
a6db242492
add control of 'return date' if it 's a special or repeatable holidays , and return a right return date
2007-05-10 15:56:53 +00:00
tipaul
ca201e36af
Koha NoZebra :
...
- support for authorities
- some bugfixes in ordering and "CCL" parsing
- support for authorities <=> biblios walking
Seems I can do what I want now, so I consider its done, except for bugfixes that will be needed i m sure !
2007-05-10 14:45:15 +00:00