Commit Graph

12953 Commits

Author SHA1 Message Date
Ian Walls cc3ba2c1ab Bug 5376: Batch Mod and Delete require superlibrarian permissions
This only occurs with IndependantBranches turned on; in an attempt to check that the items being
modified belonged to the user's branch, the code made a simultaneous comparison and assignment,
which is not permitted in all compilations of Perl.

Splitting the assignment of $itembranchcode and the check for its non-null value fixes the problem

Signed-off-by: Nicole Engard <nengard@bywatersolutions.com>
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
(cherry picked from commit 12c116236f)

Signed-off-by: Chris Nighswonger <chris.nighswonger@gmail.com>
2011-01-29 19:57:12 -05:00
Frédéric Demians 07ba717450 Translation updates
- Two new languages:

  . sd-PK - Sindhi
  . is-IS - Icelandic

- Fix a naming error for nb-NO and nn-NO
(cherry picked from commit 671419dcce781aa01f300012f0f425c040749f73)

Signed-off-by: Chris Nighswonger <chris.nighswonger@gmail.com>
2011-01-27 07:36:50 -05:00
Galen Charlton de6a027bbf bug 5654: remove disused directory
Signed-off-by: Galen Charlton <gmcharlt@gmail.com>
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
(cherry picked from commit 34ba87625a)

Signed-off-by: Chris Nighswonger <chris.nighswonger@gmail.com>
2011-01-26 17:36:01 -05:00
Chris Cormack 2c9721b8de Adding Jerome Charaoui to the history docs, 130 people have code in Koha now
(cherry picked from commit 7f4771588e)

Signed-off-by: Chris Nighswonger <chris.nighswonger@gmail.com>
2011-01-26 17:35:39 -05:00
Chris Cormack 9638c4423a History updated
(cherry picked from commit 7d87094fc8)

Signed-off-by: Chris Nighswonger <chris.nighswonger@gmail.com>
2011-01-26 17:35:23 -05:00
Jerome Charaoui 07c44ab9a8 Bug 5506 Fix installation of prefs translations in standard installs
[3.2] Should be applied

Signed-off-by: Frédéric Demians <f.demians@tamil.fr>
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
(cherry picked from commit 1fc16ea543)

Signed-off-by: Chris Nighswonger <chris.nighswonger@gmail.com>
2011-01-26 17:35:09 -05:00
Chris Nighswonger 571957ae1a Updating Version Number to 3.02.03.000 2011-01-22 17:25:28 -05:00
Chris Nighswonger 07e66bb263 Release Notes for 3.02.03.000 2011-01-22 17:23:16 -05:00
Chris Cormack 649fd4952d Bug 5327 fixing missing number of tests
(cherry picked from commit d64008644a)

Signed-off-by: Chris Nighswonger <chris.nighswonger@gmail.com>
2011-01-20 17:59:45 -05:00
Zach Sim ab3263e018 Added more unit tests to check when JSONStream should fail.
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
(cherry picked from commit 5f0f2e297a)

Signed-off-by: Chris Nighswonger <chris.nighswonger@gmail.com>
2011-01-20 17:59:45 -05:00
Zach Sim 928165875c Bug 5327: Added unit tests to Output_JSONStream.t
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
(cherry picked from commit 434d9a3c66)

Signed-off-by: Chris Nighswonger <chris.nighswonger@gmail.com>
2011-01-20 17:59:45 -05:00
Chris Cormack bc1620b3d6 Bug 5327: small typo in the Members.t test
(cherry picked from commit 1c89ce34b9)

Signed-off-by: Chris Nighswonger <chris.nighswonger@gmail.com>
2011-01-20 17:59:44 -05:00
johnboy 6bf8c7ae67 Bug 5327 Made test file for Accounts.pm
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
(cherry picked from commit 669280c7ab)

Signed-off-by: Chris Nighswonger <chris.nighswonger@gmail.com>
2011-01-20 17:59:44 -05:00
Chris Cormack e4540c647e Bug 5327: Shifting and little tidy up of the members tests
(cherry picked from commit 314772637c)

Signed-off-by: Chris Nighswonger <chris.nighswonger@gmail.com>
2011-01-20 17:59:44 -05:00
johnboy a22b4f3046 Bug 5327 Some tests added
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
(cherry picked from commit d567945517)

Signed-off-by: Chris Nighswonger <chris.nighswonger@gmail.com>
2011-01-20 17:59:44 -05:00
Chris Cormack f7a22b7a1b Bug 5327 - Now we are doing db calls, we need to shift this to t/db_dependent
(cherry picked from commit e03026adff)

Signed-off-by: Chris Nighswonger <chris.nighswonger@gmail.com>
2011-01-20 17:59:44 -05:00
Zach Sim 60b5c614a7 Added unit tests to test all of get_amazon_tld in Amazon.pm.
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
(cherry picked from commit b56121db02)

Signed-off-by: Chris Nighswonger <chris.nighswonger@gmail.com>
2011-01-20 17:59:43 -05:00
Chris Cormack c6d6955761 Bug 5327: Little change to Record.t
(cherry picked from commit 23f92a8f8d)

Signed-off-by: Chris Nighswonger <chris.nighswonger@gmail.com>
2011-01-20 17:59:43 -05:00
johnboy 947e087b8b Bug 5327 1 more test added.
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
(cherry picked from commit 5aa8040875)

Signed-off-by: Chris Nighswonger <chris.nighswonger@gmail.com>
2011-01-20 17:59:43 -05:00
Zach Sim 79094b6aec Added unit tests for Biblio and moved it to db_dependent as it requires the database.
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
(cherry picked from commit 65e2cda8d2)

Signed-off-by: Chris Nighswonger <chris.nighswonger@gmail.com>
2011-01-20 17:59:43 -05:00
Chris Cormack 3e4abd89dd Bug 5327 Cleaning up XISBN.t a bit
(cherry picked from commit 4093615e9f)

Signed-off-by: Chris Nighswonger <chris.nighswonger@gmail.com>
2011-01-20 17:59:42 -05:00
Chris Cormack fde778d557 Bug 5327 - Fixing a path issue with XISBN.t
(cherry picked from commit 71a7d2ad38)

Signed-off-by: Chris Nighswonger <chris.nighswonger@gmail.com>
2011-01-20 17:59:42 -05:00
Chris Cormack 242012c25f Bug 5327 litte fix for Background tests
(cherry picked from commit c8ba99e155)

Signed-off-by: Chris Nighswonger <chris.nighswonger@gmail.com>
2011-01-20 17:59:42 -05:00
Chris Cormack e5d71e9d59 Bug 5327 shifting database dependent modules and scripts to t/db_dependent
(cherry picked from commit eff21765f9)

Signed-off-by: Chris Nighswonger <chris.nighswonger@gmail.com>
2011-01-20 17:49:29 -05:00
johnboy 657057775f bug 5327 updated test file
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
(cherry picked from commit cc039cdb0f)

Signed-off-by: Chris Nighswonger <chris.nighswonger@gmail.com>
2011-01-20 17:49:29 -05:00
Zach Sim a2ef73e147 Added unit tests using a test database for XISBN.
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
(cherry picked from commit 52762c6c79)

Signed-off-by: Chris Nighswonger <chris.nighswonger@gmail.com>
2011-01-20 17:49:29 -05:00
Zach Sim d41579f7af Created unit testing using the testdatabase for XISBN.
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
(cherry picked from commit f2d575c92c)

Signed-off-by: Chris Nighswonger <chris.nighswonger@gmail.com>
2011-01-20 17:49:28 -05:00
Zach Sim ddb38021b7 Added extra unit tests to Debug.t
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
(cherry picked from commit 3b22fc6cc0)

Signed-off-by: Chris Nighswonger <chris.nighswonger@gmail.com>
2011-01-17 18:34:39 -05:00
johnboy 8a4f5e7593 bug 5327 started testing
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
(cherry picked from commit 80f8c41e4c)

Signed-off-by: Chris Nighswonger <chris.nighswonger@gmail.com>
2011-01-17 18:34:19 -05:00
johnboy 8a6e069416 Bug 5327 Starting tests for BackgroundJob
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
(cherry picked from commit 594a31bfe1)

Signed-off-by: Chris Nighswonger <chris.nighswonger@gmail.com>
2011-01-17 18:30:16 -05:00
spartaness e6a16de55b Bug 5327 Starting Unit Tests for Auth.pm
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
(cherry picked from commit 3df717479c)

Signed-off-by: Chris Nighswonger <chris.nighswonger@gmail.com>
2011-01-17 18:22:17 -05:00
claudia 2e1393486f Bug 5327 removing uneeded tests
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
(cherry picked from commit 81f9c4976c)

Signed-off-by: Chris Nighswonger <chris.nighswonger@gmail.com>
2011-01-17 18:21:42 -05:00
Chris Cormack ed1fc0cd06 Bug 5399: Follow up style patch, moving exits out of subroutine
(cherry picked from commit 12741cfafa)

Signed-off-by: Chris Nighswonger <chris.nighswonger@gmail.com>
2011-01-17 18:21:07 -05:00
Galen Charlton 78da7f4c7c Bug 5399: remove useless eval 'use C4::Foo'
Also add a couple FIXMEs

Marcel: Signed and updated for current master

Signed-off-by: Galen Charlton <gmcharlt@gmail.com>
Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
(cherry picked from commit 4532ca70bc)

Signed-off-by: Chris Nighswonger <chris.nighswonger@gmail.com>
2011-01-17 18:20:52 -05:00
Chris Cormack 1a69f7e0a6 Adding a new developer to the history
(cherry picked from commit eae38fa680)

Signed-off-by: Chris Nighswonger <chris.nighswonger@gmail.com>
2011-01-17 17:53:33 -05:00
Colin Campbell 64713d3c37 Bug 5403 Remove DisplayISBN and GetPublisherNameFromIsbn
These two subroutines were no longer being used by any other code
removed them from their respective modules
If we need any ISBN in future we should use Business::ISBN directly

Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
(cherry picked from commit a61db4986d)

Signed-off-by: Chris Nighswonger <chris.nighswonger@gmail.com>
2011-01-17 17:52:59 -05:00
Zach Sim 980d387847 Bug 5327 - Adding UNIT Tests.
Squashed commit of the following:

commit 146d14665c52edaa85e38b70aabc9d52be5d64b6
Author: Zach Sim <joseph.zachariah.sim@gmail.com>
Date:   Mon Jan 17 16:07:24 2011 +1300

    Edited DisplayISBN to cleanup the ISBN using _isbn_cleanup if it is not 13 or 10 digits long.

commit ba97b26d9a25470b0717cdd60a3d4f7a5c459ca9
Author: Zach Sim <joseph.zachariah.sim@gmail.com>
Date:   Mon Jan 17 16:06:14 2011 +1300

    Added extra unit tests to test C4::Koha::DisplayISBN.

Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
(cherry picked from commit 53a301b8f2)

Signed-off-by: Chris Nighswonger <chris.nighswonger@gmail.com>
2011-01-17 17:52:36 -05:00
Owen Leonard 8c981a7b7f Fix for Bug 4885 - Only 1 ISBN shows in non-XSL detail view
Fixed by doing a pretty dumb copy of GetMarcNotes. Functional,
but it could be there is a more efficient way to do it given
we want one repeating tag rather than a range of tags?

Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de>
- fixed small typo in opac-detail
- corrected isbd punctuation in opac-detail
- tested with 0, 1, 2, 3 isbns in 020, MARC21
Signed-off-by: Chris Nighswonger <chris.nighswonger@gmail.com>
2011-01-14 09:43:19 -05:00
Owen Leonard 9d7681389d Fix for Bug 3459, topissues doesn't take care of ccode
- Change conditional to display filter in sidebar without EXPR
- Enhance switch between ccode default and itemtype default searches
- Enable preselect of submitted collection code in filter form,
  stealing code from opac-search.pl

Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de>
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
(cherry picked from commit f45969422c)

Signed-off-by: Chris Nighswonger <chris.nighswonger@gmail.com>
2011-01-14 08:58:29 -05:00
Henri-Damien LAURENT 21374e0df6 Bug 4438: incorrect "Budget total exceeds period allocation" error when editing fund
The process in check_parent_total for period allocation was not good.
It took all the children of a period.

Signed-off-by: Owen Leonard <oleonard@myacpl.org>
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
(cherry picked from commit 9bf9e2d9b4)

Signed-off-by: Chris Nighswonger <chris.nighswonger@gmail.com>
2011-01-13 16:51:41 -05:00
Owen Leonard a85bd9e7e3 Fix for Bug 5006 - Invalid XHTML in record matching rules template
- Rework JavaScript clone routines to use jQuery, to take
  label "for" into account, to handle incrementing label,
  and to properly place cloned blocks at the bottom of the group
- Rework JavaScript delete routines to use jQuery, to take
  block label numbers into account, and to show the "add"
  link if you have deleted the last block.
- Correcting markup which nests <div> inside <fieldset>
- Ensuring labels' "for" attribute matches input IDs
- Adding "required" style to required fields

Signed-off-by: Chris Nighswonger <chris.nighswonger@gmail.com>
2011-01-13 11:58:02 -05:00
Nahuel ANGELINETTI 64f424f034 (bug #3743) fix acquisition stats ordering
This patch fix ordering in acquisition stats to order by month number.

Signed-off-by: Owen Leonard <oleonard@myacpl.org>
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
(cherry picked from commit e8de8b97c6)

Signed-off-by: Chris Nighswonger <chris.nighswonger@gmail.com>
2011-01-12 15:43:19 -05:00
Chris Cormack cd00b22bdf Bug 5611: Simple typo fix in the comments
(cherry picked from commit be37db49fb)

Signed-off-by: Chris Nighswonger <chris.nighswonger@gmail.com>
2011-01-12 15:43:05 -05:00
Chris Cormack 5f15eda415 Typo fix for history file
(cherry picked from commit 3153abe61b)

Signed-off-by: Chris Nighswonger <chris.nighswonger@gmail.com>
2011-01-12 13:46:02 -05:00
Chris Cormack e94bb4e7e4 Adding release info, and missing meetings to the history
(cherry picked from commit 31993509b2)

Signed-off-by: Chris Nighswonger <chris.nighswonger@gmail.com>
2011-01-12 13:45:46 -05:00
Chris Cormack 7cce63ff7b Adding new developers to the history
Signed-off-by: Chris Nighswonger <chris.nighswonger@gmail.com>
2011-01-12 13:43:57 -05:00
Colin Campbell 3a7c8426c0 Bug 5611 Tidy up C4::Scrubber
Remove the unneeded package variables
Remove unnecessary variables
Removed some cargo-cult programming
Tidied the indentation from mix of tabs & spaces
Add a Test that we actually return the required class
of object

Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
(cherry picked from commit 073fb1aee6)

Signed-off-by: Chris Nighswonger <chris.nighswonger@gmail.com>
2011-01-12 13:42:21 -05:00
Bryce Sanchez a5ea4eb39f Bug 5611 INIT block causes failure with mod perl
Per module INIT Blocks are not run in mod_perl so their
variables are not visible. A lexical var is adequate
for this purpose

Signed-off-by: Colin Campbell <colin.campbell@ptfs-europe.com>
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
(cherry picked from commit e0d76bd88d)

Signed-off-by: Chris Nighswonger <chris.nighswonger@gmail.com>
2011-01-12 13:42:21 -05:00
Colin Campbell 8beda6cfca Bug 5601 :: Add tests for bugfix
Signed-off-by: Frédéric Demians <f.demians@tamil.fr>
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
(cherry picked from commit 0d5029ec5b)

Signed-off-by: Chris Nighswonger <chris.nighswonger@gmail.com>
2011-01-12 13:42:20 -05:00
Colin Campbell 85943480d3 Bug 5601 Fix processing of DueDate return
item duedate is not a datetime entity but a string retrieved
direct from the db that only needs restructuring
checkout was doing so but item_info was pretending it was in secs
(actually Item.pm manipulated then overwrote it!!)
assume the date in the db is correct (otherwise madness ensues)
dont try to second guess it
As duedates do not yet include a time element assume end of day
as a safety first

[F. Demians] I confirm Joe Atzberger diagnostic. That's a bug reported by a
library. I've tested Colin Campell solution. It fixes the bug.

Signed-off-by: Frédéric Demians <f.demians@tamil.fr>
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
(cherry picked from commit d4842d4560)

Signed-off-by: Chris Nighswonger <chris.nighswonger@gmail.com>
2011-01-12 13:42:20 -05:00