Commit graph

792 commits

Author SHA1 Message Date
44967351ef set Locale::Currency::Format dep test as DBrev 119
Also fixed bug that prevented updatedatabase.pl
from compiling if Locale::Currency::Format wasn't
already installed.  To test to see if module is present,
do

eval{require Locale::Currency::Format};

not

eval{use Locale::Currency::Format};

Signed-off-by: Galen Charlton <gmcharlt@gmail.com>
2010-02-17 06:39:22 -05:00
Chris Nighswonger
8724f88bdb Bugfix: Moving sample_notices.sql to mandatory subdir
Signed-off-by: Galen Charlton <gmcharlt@gmail.com>
2010-02-17 06:36:38 -05:00
Chris Nighswonger
c353d91707 Bugfix: [3/3] [TRANSLATION NEEDED] overdue_notices.pl does not process all advertised fields
Updating mandatory sample notices sql files

NOTE TO TRANSLATORS: Some of these will require new translations

Signed-off-by: Galen Charlton <gmcharlt@gmail.com>
2010-02-17 06:36:23 -05:00
Chris Nighswonger
6827107ed4 Bugfix: [2/3] overdue_notices.pl does not process all advertised fields
This patch adds a dependency requirement for Locale::Currency::Format

NOTE: It does not adjust kohaversion.pl and sets the dev version to XXX.

Signed-off-by: Galen Charlton <gmcharlt@gmail.com>
2010-02-17 06:36:08 -05:00
d746d80199 bug 4203: add display column to aqbudgets_planning if needed (DBrev 118)
Had not been included in kohastructure.sql

Signed-off-by: Galen Charlton <gmcharlt@gmail.com>
2010-02-17 05:32:38 -05:00
Colin Campbell
2dc5cb56db Bug 3654 Fix sql syntax error in earlier patch
mysql comments require a space after the --

Signed-off-by: Galen Charlton <gmcharlt@gmail.com>
2010-02-17 05:08:27 -05:00
Chris Cormack
461b61ad8a Fix for Bug 3730 - Wrong ISO 639-2 Language Code for Portuguese in database
[Patch originally by Ricardo Dias Marques]

Bug 3730 - Wrong ISO 639-2 Language Code for Portuguese in database
http://bugs.koha.org/cgi-bin/bugzilla3/show_bug.cgi?id=3730

For 3.0.x head of the Git branch, the ISO 639-2 Language Code for
Portuguese in Koha database is wrong.

Specifically, in the table "language_rfc4646_to_iso639", when the
field "rfc4646_subtag" has the value "pt", the field "iso639_2_code"
should have the value of "por" and NOT the current one of "pol"
("pol" refers to "Polish" as correctly also appears for the code "pl",
in the row above the "pt" one).

In my test setups, this showed some serious sequences for people
that choose the Portuguese language in the Web Installer, namely:
- very weird look of Staff client with missing Header and Footer,
that renders the Staff client unusable
- Portuguese translation apparently not getting updated for the OPAC
(for people that do an Upgrade from a previous version)

This patch is for the 3.0.x branch (I tested it with that branch).

For the master branch, I don't have a database setup to create and
test a similar patch but Chris Cormack nicely volunteered to do that.
Thanks Chris!

Signed-off-by: Galen Charlton <gmcharlt@gmail.com>
2010-02-10 12:03:58 -05:00
570e6fc7c0 bug 4145 - fix typo in sysprefs.sql
Fixed following error during new en installation:

ERROR 1064 (42000) at line 217: You have an error in your SQL syntax;
check the manual that corresponds to your MySQL server version for the right
syntax to use near ''XSLTDetailsDisplay','0','','Enable XSL stylesheet control
over details page dis' at line 1

Signed-off-by: Galen Charlton <gmcharlt@gmail.com>
2010-02-09 13:54:29 -05:00
0f5cba428d DB rev 116 - finish fixing default value of OrderPdfFormat
Signed-off-by: Galen Charlton <gmcharlt@gmail.com>
2010-02-08 21:14:12 -05:00
Nicole Engard
0ded44769a bug 3923 followup - change orderpdfformat value if set wrong due to upgrade
Signed-off-by: Galen Charlton <gmcharlt@gmail.com>
2010-02-08 21:13:20 -05:00
Colin Campbell
5a087678da Bug 4133 Amend kohastructure to reflect earlier patch
updatedatebase is now setting aqorders.quantityreceived to NOT NULL
kohastructure needs bringing into line

Signed-off-by: Galen Charlton <gmcharlt@gmail.com>
2010-02-08 11:47:05 -05:00
Colin Campbell
745ac87c20 Bug 4133 Ensure that orders have a valid quantity received
quantityreceived drives other parts of acq noticeably budget balances
ensure that a number (usually 0) is set in NewOrder
give field a valid default and set as not null
reinterpret exsting nulls in table as zero

Signed-off-by: Galen Charlton <gmcharlt@gmail.com>
2010-02-08 11:21:48 -05:00
5c88458217 DB rev 114 - tweak AutoSelfCheckAllowed, AutoSelfCheckID, and AutoShelfCheckPass
* made AutoSelfCheckID and AUtoSelfCheckPass type free instead of textarea
* consolidated DB updates into one

Signed-off-by: Galen Charlton <gmcharlt@gmail.com>
2010-02-08 08:47:13 -05:00
Jane Wagner
f52c54eb35 Bug 3738 Automate login to web-based self-check system
Some small, single-branch corporate and special libraries use unattended self-checkout stations, and would like to automate the staff login, so that just going to the sco/sco-main.pl URL would bring the self-check up ready for patron use.  This patch create three sysprefs, AutoSelfCheckAllowed, and AutoSelfCheckID/AutoSelfCheckPass. If the site wants to allow automated login, staff would then need to create the selfcheck user record and enter that login ID and password into the sysprefs.  The kohaclone/opac/sco/sco-main.pl script has been modified to check these sysprefs and pass values (if present and allowed) into the self-check URL.  The URL then bypasses the staff login page and comes up ready for checkout, waiting for the first patron barcode.

Signed-off-by: Galen Charlton <gmcharlt@gmail.com>
2010-02-08 08:43:07 -05:00
ff4d456072 Bug 3920 - Add 2 syspref to activate XSLT use in OPAC/Intranet
- Add two syspref:
  - OPACXSLTResultsDisplay
  - OPACXSLDetailsDispay
- Add them to .pref files and dispatch them beetween OPAC and Search
  tab.
- Upgrade DB version to 3.2 .113
- Fix something wrong in UNIMARCslim2intranetDetail.xsl
- Display OPAC result and detail pages using those syspref.

Signed-off-by: Galen Charlton <gmcharlt@gmail.com>
2010-02-08 08:08:44 -05:00
Nicole Engard
1f5d1299b0 bug 3923 OrderPdfFormat default was wrong on update
I went back and updated updatedatabase so that anyone else who updates
doesn't end up with the wrong value, this does not fix those who
upgraded and have the wrong value in there already.

Signed-off-by: Galen Charlton <gmcharlt@gmail.com>
2010-02-08 07:39:52 -05:00
43e10c37d7 added subscription.enddate to kohastructure.sql
kohastructure.sql update missed in DB rev 3.01.00.071

Signed-off-by: Galen Charlton <gmcharlt@gmail.com>
2010-02-05 08:48:10 -05:00
f93ee104de finished add SpineLabelShowPrintOnBibDetails (DBrev 112)
* improve wording
* add to new system preferences editor

Signed-off-by: Galen Charlton <gmcharlt@gmail.com>
2010-02-05 07:36:23 -05:00
Kyle M Hall
879d7f0e6b Bug 1248 - Add a "quick spine label" print to the bib item page in cataloging
Turn on the system preference SpineLabelShowPrintOnBibDetails and a link for the spinelabel printer will appear for each item on catalogue/detail.pl

Signed-off-by: Galen Charlton <gmcharlt@gmail.com>
2010-02-05 07:36:09 -05:00
0d2356ef41 added intranetbookbag syspref to install scripts
Had been omitted, so wasn't appearing in fresh
installs.

Signed-off-by: Galen Charlton <gmcharlt@gmail.com>
2010-02-03 16:46:35 -05:00
ba45ac9d8d bug 4099: fix adding new patron category
Added categories.enrolmentperioddate to kohastructure.sql, which commit
dc9991 had omitted.

Signed-off-by: Galen Charlton <gmcharlt@gmail.com>
2010-02-03 16:46:25 -05:00
Nicole Engard
0493544110 remove mysql5.0 errors in patroncard upgrade
Signed-off-by: Galen Charlton <gmcharlt@gmail.com>
2010-02-03 15:11:58 -05:00
d3ca0bd7f6 remove duplicate lines
Signed-off-by: Galen Charlton <gmcharlt@gmail.com>
2010-02-02 19:43:31 -05:00
4a3b1f5b6b set DB revision to 3.01.00.111 for 3.2-lapha release
Signed-off-by: Galen Charlton <gmcharlt@gmail.com>
2010-02-02 19:39:18 -05:00
Kyle M Hall
844f63f1f8 Rotating Collections Fixes
This patch does the following:
  * Fixes the typos in updatedatabase.pl ( updates colBranchcode to varchar(10)
  * Adds the rotating_collections template files that somehow were not committed
  * Adds a missing sub from RotatingCollections.pm that must been deleted by accident
  * Adds the neccessary hooks in returns.pl to warn that and item needs to be returned
    to the branch that currently holds the collection.

Signed-off-by: Galen Charlton <gmcharlt@gmail.com>
2010-02-02 19:22:05 -05:00
ab60e8c98f Bug 4077 - Tweak UNIMARC default framework
Signed-off-by: Galen Charlton <gmcharlt@gmail.com>
2010-02-02 19:22:00 -05:00
2c039f9b9a Fix updatedatabase.pl mess coming from last merge?
Signed-off-by: Galen Charlton <gmcharlt@gmail.com>
2010-02-02 19:19:56 -05:00
Henri-Damien LAURENT
2767b6ff1a kohstructure.sql not wrking with mysql5.0
Removing USING BTREE

Signed-off-by: Galen Charlton <gmcharlt@gmail.com>
2010-02-02 18:37:44 -05:00
Henri-Damien LAURENT
dfa8a38d42 Fixing updatedatabase
Some lines were not correct (subscription updates)
The two latest version lines were incorrect
2010-01-28 15:11:57 +01:00
Nahuel ANGELINETTI
dc9991d9b4 (MT823) add the possibility to have enrolment end date
this patch add the possibility to have an end date of enrolment, instead of a period. Like for a user category, all this category can have the same expiry date.
The librarian can configure one of both, but not both.
2010-01-28 15:11:55 +01:00
Matthias Meusburger
b40d4052b9 MT2116 : Addons to the CSV Export
Add encoding selection
Add authorised values handling
2010-01-28 15:11:55 +01:00
Matthias Meusburger
a404384b11 MT2116: Addons to the CSV export
Add user-defined headers
Add CSV, field and subfield separator selection
2010-01-28 15:11:54 +01:00
Henri-Damien LAURENT
51241b66b2 bug Fixing: updatedatabase
Here comes a patch for update database.
Can you please test and tell me if it works ?

Thanks a lot
2010-01-28 15:11:48 +01:00
Henri-Damien LAURENT
1d98bd2a96 Bug 3983 : Needed authorised values list for french frameworks. 2010-01-28 15:11:48 +01:00
Colin Campbell
7f68a2440f delay dropping of aqbookfund
aqbookfund cannot be dropped before aqorderbreakdown
due to fk cobstraints
remove drop of column bookfundid from aqbudget
column no longer exists at this point
2010-01-25 14:24:03 +00:00
Colin Campbell
411aae1a87 Can only add column reservesallowed to issuingrules once 2010-01-25 09:30:15 +00:00
Colin Campbell
12c5508d99 Remove an invalid db update
Update tries to drop two fk constraints which
don't appear to exist
2010-01-25 09:30:15 +00:00
Colin Campbell
87a3a627f1 column was added in two separate updates
3.01.00.068 duplicates the operations of 3.01.00.065
Because one column has already been created, populated and dropped
the rest of the update fails
2010-01-25 09:30:15 +00:00
Colin Campbell
9e42d04cb7 remove duplicate column add
Change 3.01.00.089 duplicated 3.01.00.070
2010-01-25 09:30:14 +00:00
Colin Campbell
7e07fa5d12 102 needs to be an update not an insert 2010-01-25 09:30:14 +00:00
Colin Campbell
5cc7c1db9a remove duplicate addition of casAutherntication preference 2010-01-25 09:30:14 +00:00
Henri-Damien LAURENT
d339abf0bf Merge branch 'patroncards-wip' of git://git.foundations.edu/koha into community
Conflicts solved:
	Makefile.PL
	installer/data/mysql/en/mandatory/sysprefs.sql
	installer/data/mysql/fr-FR/1-Obligatoire/unimarc_standard_systemprefs.sql
	installer/data/mysql/updatedatabase.pl
	kohaversion.pl
2010-01-20 23:16:34 +01:00
Kyle M Hall
2d1d4cd6e7 OpacAddMastheadLibraryPulldown
In the current OPAC, there is no easy way to search a particular library.
By default, a user searches all libraries, or with SearcMyLibraryFirst turn on,
the user's home library. In dev_week, a library pulldown menu existed in the search masthead.

This commit adds the option to bring that pulldown menu back
by turning on the system preference OpacAddMastheadLibraryPulldown
2010-01-20 22:38:23 +01:00
b7b6bf3bb5 Rotating Collection > DB upgrade to 102 2010-01-20 22:36:40 +01:00
f650aad34b Rotating Collections
This feature is designed to manage collections of items that move
from library to library periodically. Koha can already track who *has*
and item, and who *owns* and item, but not who *should have* an item.
That is the issue this feature addresses.

It allows a persion to create a collection, and add any number of items
to that collection. The collection can then be transferred from library
to library. If an item shows up at a library that does not currently
'hold' that collection, Koha will ask you to transfer it to the library
that does currently 'hold it. In that way, one can even transfer
collections where some of the items are currently checked out. As soon
as they make it back to a library, they will get transferred to the
current library holding that collection.

The feature consists of 4 main pages.
'Home' Page: The landing page, lists collections and provides access to
the rest of the tools.
  Access is via the Tools page.
Edit Collections: Add/Delete new rotating collections
Add/Remove Items: Add/Remove items from a given collection
Transfer Collection: Set the current 'holder' of a given collection.

Librarian access is controlled by 'CAN_user_tools_rotating_collections'
2010-01-20 22:35:15 +01:00
Henri-Damien LAURENT
6b88ea88bb Fixing dbrev 104
There was two variable declaration missing
2010-01-18 01:05:38 +01:00
Chris Nighswonger
6bbb5a0889 Bugfix: 4046 Misc SQL Syntax Errors
This patch fixes several SQL syntax errors with the ALTER TABLE pragma
2010-01-15 10:24:55 +01:00
b407a95fb8 Add OverdueNoticeBcc syspref required by overdue_notices.pl 2010-01-15 10:19:26 +01:00
Chris Nighswonger
47fa09e85c Enhancement: Make web installer log errors to error log
The web installer should log errors to the error log instead of only
dumping them to the browser. This will allow a record of the errors
which may be useful for later debugging.
2010-01-15 10:00:36 +01:00
Chris Nighswonger
7682f493c6 Enhancement: Make web installer log errors to error log
The web installer should log errors to the error log instead of only
dumping them to the browser. This will allow a record of the errors
which may be useful for later debugging.
2010-01-13 13:30:31 -05:00
Chris Nighswonger
9e53e9c524 Bugfix: Missing line terminator at the end of an INSERT 2010-01-12 09:31:35 -05:00
Chris Nighswonger
a75558340a [29/30] Bumping version number to 3.01.00.101 2010-01-11 18:21:19 -05:00
Chris Nighswonger
e616ba1be0 [28/30] Adding sample data for Label and Patron Card Creators
Also removing obsoleted sample labels data.
2010-01-11 18:21:18 -05:00
Chris Nighswonger
ee6c7ad4b8 [27/30] Adding a script to migrate from current Label Creator to the new table structure for Creator tools in general 2010-01-11 18:21:18 -05:00
Chris Nighswonger
c102b61ef5 [26/30] Updating kohastructure.sql to reflect changes introduced in Patron Card Creator work 2010-01-11 18:21:17 -05:00
Chris Nighswonger
48dc1cb4b0 [25/30] Fixing up the installer to check for new optional dependencies 2010-01-11 18:21:17 -05:00
Chris Nighswonger
c44d08bff2 [22/30] Adding a syspref to limit the number of images which can be stored in the db at any one time by the Patron Card image managera
This will keep the db a sane size. Setting this to NULL will result in no
    limit being enforced.
2010-01-11 18:21:16 -05:00
Nicole Engard
90c1c620f5 Bug 3654: Resubmit: Fixes issues with authorized values
#1 Moves Authorized Values under Basic on the Admin page & menu
 #2 Add defaults for PROC & CART in LOC
 #3 Add MANUAL_INV default
 #4 Add BOR_Notes default
 #5 Fix descriptions and language on authorized values page related
    to these changes
2010-01-05 13:54:09 +01:00
Nicole Engard
cef321e7bd replacement for bug 3817 added patron permissions for tag tool 2009-12-22 19:14:51 +01:00
Nicole Engard
139db56446 Bug 3830: Fix spelling error in patron permissions 2009-12-22 19:14:50 +01:00
Piotr Wejman
2abc61afd3 Adding pl-PL directory to installer/data/mysql. 2009-12-22 00:43:25 +01:00
Chris Nighswonger
b21f235b9e Bugfix for various bugs in mandatory and sample data for webinstaller
NOTE: This patch removes the sample budgets data which was obsoleted by the new
aquisitions module. The changes introduced with this new module will require
a completely new set of sample data to be written.
2009-12-20 14:31:36 +01:00
Chris Nighswonger
1c47bb676f Bugfix: Missing line terminator at the end of an INSERT 2009-12-20 14:31:36 +01:00
Piotr Wejman
3e85a59152 Removing redundant coma in updatedatabase 2009-12-20 14:31:36 +01:00
Paul Poulain
032371aaca updatedatabase change : set CAS auth OFF by default
ON by default will confuse most libraries, and it won't work as the CAS server won't be defined
2009-12-20 14:31:30 +01:00
Piotr Wejman
7cde8989fa Adding missing definition of lib_opac column in authorised_values table [BUG 3887] 2009-12-20 14:27:49 +01:00
Piotr Wejman
c5ddaf5d5f Added missing drop table lines (labels_batches & labels_layouts) 2009-12-20 14:27:49 +01:00
0c7e7053e2 Renumber DB updates from merge
Signed-off-by: Galen Charlton <gmcharlt@gmail.com>
2009-12-01 21:07:48 -05:00
Paul Poulain
37feb640af fixing version update 2009-11-26 17:13:08 +01:00
Henri-Damien LAURENT
f0132aeb71 dbRev 130 : CAS System preference
Upgrade updatedatabase.pl and kohaversion
2009-11-25 12:20:16 +01:00
Henri-Damien LAURENT
6a7d1f448d Merge branch 'MT1105' into public_master 2009-11-25 12:16:05 +01:00
Matthias Meusburger
9f41fe64be MT 2050, Follow-up, Fast Cataloging
Adds granular permissions for cataloging
Also adds a link from the circulation home to fast cataloging when fast cataloging is active
2009-11-24 10:05:10 +01:00
Henri-Damien LAURENT
36a01ea347 Second CAS version : CAS and non-CAS login can coexist
Conflicts solved :

	C4/Auth.pm
	opac/opac-main.pl
2009-11-23 16:26:35 +01:00
Paul Poulain
97b2a56f27 more SQL fixes. Installer now works fine with french & unimarc 2009-11-20 18:28:14 +01:00
Paul Poulain
70b9cdeb2d fixing strings (for new acq module) & syspref translations to french 2009-11-20 18:23:44 +01:00
Paul Poulain
3fd820a454 some installer fixes
* 2 descriptions not translated to french
* 2 SQL errors (missing , and duplicated syspref)
2009-11-20 17:11:38 +01:00
Henri-Damien LAURENT
6103ad0397 UpdateDatabase more fixes 2009-11-19 23:09:47 +01:00
Matthias Meusburger
b529f00aa3 MT 2050 : Fast cataloging 2009-11-19 23:09:46 +01:00
Henri-Damien LAURENT
37e7d9664e BZ2222 : db definition for frameworkcode in auth_subfield_structure incorrect
db definition for frameworkcode was only varchar(8)
corected to 10
2009-11-17 22:08:52 +01:00
Henri-Damien LAURENT
350f64f0d3 Followup database update ca0b6596eaf 2009-11-17 16:27:14 +01:00
Henri-Damien LAURENT
eecf02b86f removing database revision 124
Revisions 124 and 123 were the same
2009-11-17 16:27:11 +01:00
Jean-André Santoni
c85bd96cf6 Fixed wrong SQL syntax in updatedatabase. 2009-11-17 16:27:11 +01:00
Henri-Damien LAURENT
813d234191 removing database revision 124
Revisions 124 and 123 were the same
2009-11-11 11:17:48 +01:00
Paul Poulain
2e38912fce applying atomic update for issuingrules, (2929) 2009-11-11 11:17:48 +01:00
Henri-Damien LAURENT
e1091f9439 UpdateDatabase more fixes 2009-11-10 22:23:51 +01:00
Paul Poulain
6c086454ff revamping a little opac-detail for subscription (adding more history information) 2009-11-10 22:23:50 +01:00
Paul Poulain
d4de185deb fixing some errors in updatedatabase 2009-11-10 22:23:49 +01:00
Henri-Damien LAURENT
278adf955b Editing copynumber to stocknumber
Updating updatedatabase.pl
Updating value_builder
2009-11-10 22:23:48 +01:00
Jean-André Santoni
9448c18c2a Fixed wrong SQL syntax in updatedatabase. 2009-11-10 22:23:47 +01:00
Henri-Damien LAURENT
cd4bf8cc75 Adding SpecifyDueDate 2009-11-06 12:33:16 +01:00
Henri-Damien LAURENT
239e890b9d removing database revision 124
Revisions 124 and 123 were the same
2009-11-06 12:33:15 +01:00
Jean-André Santoni
eff46d395e Adds billing address support in the basketgroup.
Also fixes a bug in ModBasketgroup, and renames the PDF uploaded to the client.
2009-11-04 13:17:09 +01:00
Jean-André Santoni
7e872e0a1f [3.2.x](bug #3623) PDF printing enhancements
Renamed pdfformat to OrderPdfFormat and created OrderPdfTemplate to stock the PDF in the database.
Added a new type of syspref nammed "Upload".
Rewritte, translation and cleaning of the PDF template.
2009-11-03 16:35:29 +01:00
Henri-Damien LAURENT
1f7f00b626 Adding stocknumber field to items table 2009-11-03 16:06:20 +01:00
Jean-André Santoni
1bff217bbe [3.2.x](bug #3624) Per-basketgroup delivery place
Librarian are now able to select a different delivery place for each basketgroup. They can choose one from the branch list or manualy using a textarea.
Database schema and PDF generation have been modified to reflect these changes.
2009-11-03 16:04:59 +01:00
Jean-André Santoni
69af3053e3 [3.2.x](bug #3624) Per-basketgroup delivery place
Librarian are now able to select a different delivery place for each basketgroup. They can choose one from the branch list or manualy using a textarea.
Database schema and PDF generation have been modified to reflect these changes.
2009-11-03 16:04:00 +01:00
Jean-André Santoni
d61161a3d5 [3.2.x](bug #3624) Per-basketgroup delivery place
Librarian are now able to select a different delivery place for each basketgroup. They can choose one from the branch list or manualy using a textarea.
Database schema and PDF generation have been modified to reflect these changes.
2009-11-02 17:02:02 +01:00
Henri-Damien LAURENT
801b9767db 3.01.038 was missed and replaced by other code 2009-11-02 16:51:20 +01:00
Paul Poulain
5f0b3cd6c0 fixing updatedatabase msg 2009-10-30 17:38:55 +01:00
Henri-Damien LAURENT
cdcab6ba28 MT 2146 :Adding index on issn
updateversion incremented
2009-10-29 16:41:50 +01:00