Commit Graph

12935 Commits

Author SHA1 Message Date
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
Magnus Enger 9f40dccb22 Bug 5055 Use standard file paths in crontab.example
This is a revised patch, removing the lines pertaining to logrotate.

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

Signed-off-by: Chris Nighswonger <chris.nighswonger@gmail.com>
2011-01-11 18:42:23 -05:00
Nicole Engard e18b603aaf bug 4131 have subscription so edit routing if one exists
Changes the template variable checked in serials-menu.inc for determining where to
show 'Create Routing List' or 'Edit Routing List' to hasRouting.

Also adds the $hasRouting variable to serials/routing.pl and serials/routing-preview.pl,
for completeness.

Signed-off-by: Ian Walls <ian.walls@bywatersolutions.com>
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
(cherry picked from commit b7fdfc1384)

Signed-off-by: Chris Nighswonger <chris.nighswonger@gmail.com>
2011-01-11 18:33:26 -05:00
Nicole Engard 0e6fe96cc8 bug 5486 remove note about HomeOrHoldingBranch being removed soon
Signed-off-by: Ian Walls <ian.walls@bywatersolutions.com>
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
(cherry picked from commit 50694f3959)

Signed-off-by: Chris Nighswonger <chris.nighswonger@gmail.com>
2011-01-11 18:16:34 -05:00
Ian Walls 6d2e0ded41 Bug 5603: advance_notice.pl uninitialized element in hash
Changings one of the LEFT JOINS in C4::Members::Messaging::GetMessagingPreferences
to a JOIN to prevent NULL message_transport_types from being returned

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

Signed-off-by: Chris Nighswonger <chris.nighswonger@gmail.com>
2011-01-11 18:16:32 -05:00
Nicole Engard bafc7217a8 bug 5492 update import patrons page title
Signed-off-by: Nicole Engard <nengard@bywatersolutions.com>
Signed-off-by: Ian Walls <ian.walls@bywatersolutions.com>
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
(cherry picked from commit 4173f2221f)

Signed-off-by: Chris Nighswonger <chris.nighswonger@gmail.com>
2011-01-11 09:41:23 -05:00
Nicole Engard 52a7c1bd12 bug 5604 additional icons in the Seshat icon set
Signed-off-by: Ian Walls <ian.walls@bywatersolutions.com>
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
(cherry picked from commit d1ef831360)

Signed-off-by: Chris Nighswonger <chris.nighswonger@gmail.com>
2011-01-11 09:41:05 -05:00
Owen Leonard 1dbe1684c6 Fix for Bug 4945 - Patron search is limited by default to the currently logged-in library
I couldn't figure out how (or whether) GetBranchesLoop could be
convinced to return a list of branches without selecting one, so
I swapped GetBranchesLoop with GetBranches. This will preselect
a branch only if a branch has been submitted as part of a query.

This does NOT preselect the correct branch when IndependantBranches
is turned on.

I also added a template variable which is true if a query has
been submitted with a branch or a category so that the extra
form fields can be displayed, reminding the user that they
added limiters to their query.

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

Signed-off-by: Chris Nighswonger <chris.nighswonger@gmail.com>
2011-01-11 09:40:47 -05:00
Nahuel ANGELINETTI 64831933b2 (bug #3737) fix title search in order history
Signed-off-by: Henri-Damien LAURENT <henridamien.laurent@biblibre.com>
Signed-off-by: Colin Campbell <colin.campbell@ptfs-europe.com>
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
(cherry picked from commit 15334926ad)

Signed-off-by: Chris Nighswonger <chris.nighswonger@gmail.com>
2011-01-10 15:06:06 -05:00
Colin Campbell e31e7d7804 Bug 5589: Remove duplicated Exports in Suggestions.pm
Rather bizarrely Suggestions.pm was setting up @EXPORT, @ISA
and $VERSION twice. Have removed one invocation

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

Signed-off-by: Chris Nighswonger <chris.nighswonger@gmail.com>
2011-01-10 14:44:22 -05:00
Owen Leonard 77c9df5ce7 Fix for Bug 4984, Invalid XHTML in staff client search results
Signed-off-by: Nicole Engard <nengard@bywatersolutions.com>
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
(cherry picked from commit 1b344bdbd1)

Signed-off-by: Chris Nighswonger <chris.nighswonger@gmail.com>
2011-01-10 14:44:05 -05:00
Owen Leonard 4d78b75172 Additional fix for Bug 3550, Use GetRecordValue to get the subtitle
- Adding subtitle to Hold Ratio report output
- Sorting by default on ratio, descending
- Adding author
- Removing description

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

Signed-off-by: Chris Nighswonger <chris.nighswonger@gmail.com>
2011-01-10 14:43:42 -05:00
Owen Leonard 78c4376b3e Follow up on fix for Bug 5570, item types not showing on other editions
Fix for the staff client.

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

Signed-off-by: Chris Nighswonger <chris.nighswonger@gmail.com>
2011-01-10 14:42:41 -05:00
Owen Leonard d9cb386135 Fix for Bug 5570 - item types not showing on other editions
The item type which shows on other editions is the biblio-level
itemtype. XISBN.pm had some item-handling code, but I'm
removing it because it is unused. The editions tab should
now display item type only if item-level itemtypes are not
enabled.

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

Signed-off-by: Chris Nighswonger <chris.nighswonger@gmail.com>
2011-01-10 14:42:15 -05:00
Frédéric Demians 7a458e5242 Bug 5480 Some usual UNIMARC cataloguing plugins doesn't work anymore
[3.2] To be applied

Signed-off-by: Henri-Damien LAURENT <henridamien.laurent@biblibre.com>
Signed-off-by: Chris Nighswonger <chris.nighswonger@gmail.com>
2011-01-08 13:48:58 -05:00
Colin Campbell aab10c2dc1 Bug 5583 Rename fieldnumber to blocknumber
Variable fieldnumber does not refer to a field
It is the ISBD block number
Rename to blocknumber
Say what we mean adds to maintainability

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

Signed-off-by: Chris Nighswonger <chris.nighswonger@gmail.com>
2011-01-06 15:49:57 -05:00
Colin Campbell a68ac75c55 Bug 5582 Pass tag nums as a string to Doc Popup
Add quotes around tag number when calling doc popup
Otherwise numbers with leading zeroes are interpreted
as octal e.g. 020 returns doc for 016

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

Signed-off-by: Chris Nighswonger <chris.nighswonger@gmail.com>
2011-01-06 15:49:37 -05:00
Galen Charlton 11a489c800 bug 5585: fix display of current date on receipts and slips
Signed-off-by: Galen Charlton <gmcharlt@gmail.com>
Signed-off-by: Nicole Engard <nengard@bywatersolutions.com>
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
(cherry picked from commit 80641597e5)

Signed-off-by: Chris Nighswonger <chris.nighswonger@gmail.com>
2011-01-06 15:49:22 -05:00
Chris Nighswonger 48fa2dbea4 Removing OPACNoResultsFound Enhancement Syspref
This pref was accidentally added during non-English syspref updates.
It is properly a part of enh bug 1997 which will not be included in
the 3.2.x branch.
2011-01-06 14:24:30 -05:00