Commit Graph

13062 Commits

Author SHA1 Message Date
Frédérick Capovilla 8bfc8cc540 Bug 5703: Hide the $9 subfield (linked authid) when showing series for a MARC record in normal view.
Signed-off-by: Nicole C. Engard <nengard@bywatersolutions.com>
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
(cherry picked from commit b39466c965)

Signed-off-by: Chris Nighswonger <chris.nighswonger@gmail.com>
2011-03-12 16:23:30 -05:00
Chris Cormack d49a9c0672 Bug 3624 : Follow up patch, to catch any installs that still have the missing columns
Signed-off-by: Chris Nighswonger <chris.nighswonger@gmail.com>
2011-03-12 16:22:35 -05:00
Paul Poulain 469cda7e30 BZ3624, proposed patch for kohastructure.sql rewritten
Signed-off-by: Nicole C. Engard <nengard@bywatersolutions.com>
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
(cherry picked from commit 306871578e)

Signed-off-by: Chris Nighswonger <chris.nighswonger@gmail.com>
2011-03-12 16:16:25 -05:00
Galen Charlton 725ff52210 bug 2975: whitespace and formatting cleanup
Not part of the bugfix per se, but taking this chance
to clean up some inconsistent tabbing.

Signed-off-by: Galen Charlton <gmcharlt@gmail.com>
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
(cherry picked from commit 2e963dc416)

Signed-off-by: Chris Nighswonger <chris.nighswonger@gmail.com>
2011-03-12 16:15:49 -05:00
Galen Charlton 3882ea2ec3 bug 2975: fix calculation of due dates by offline circ
Offline circ no longer tries to calculate the due date
directly, instead relying on the AddIssue and AddRenewal
APIs to do so.  This corrects a bug where the due date
would be calculated incorrectly if the item-level_itypes
system preference is turned on.

This change also has the effect of causing the issue date
for loans uploaded via offline circulation to be set
to the time stamp recorded by the offline circulation client.

Test plan:

* Turn on item-level_itypes
* Create an example item whose loan policy per
  the item's item type would be different from
  the default policy based on the bib-level type.
* Create a test KOC file with a loan of the test
  item and the checkout date artificially set
  to yesterday.
* Upload the file:
  - Before the fix, the due date would be set
    to the default due date.  Also, the issue date
    will be set to the date of the upload.
  - After the fix, the due date would be calculated
    correctly based on the item's item type.  Also,
    the issue date will be set to the date recorded
    by the offline circulation client.

Signed-off-by: Galen Charlton <gmcharlt@gmail.com>
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
(cherry picked from commit 935635aba5)

Signed-off-by: Chris Nighswonger <chris.nighswonger@gmail.com>
2011-03-12 16:15:49 -05:00
Ian Walls 14289b7167 Bug 5831: rebuild_zebra.pl doesn't respect -r
Reimplements support for -r, as well for -reset

Signed-off-by: D Ruth Bavousett <ruth@bywatersolutions.com>
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
(cherry picked from commit 8dc56a0d2c)

Signed-off-by: Chris Nighswonger <chris.nighswonger@gmail.com>
2011-03-05 19:38:28 -05:00
Nicole C. Engard a0829359f9 Bug 5820: Change language to 'Fund' over 'Budget'
Signed-off-by: Jared Camins-Esakov <jcamins@bywatersolutions.com>
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
(cherry picked from commit d6718e14e7)

Signed-off-by: Chris Nighswonger <chris.nighswonger@gmail.com>
2011-03-05 19:38:13 -05:00
Reed Wade 9f90b14017 bug 5693 - mc-ccode parens fix
Signed-off-by: Nicole C. Engard <nengard@bywatersolutions.com>
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
(cherry picked from commit c84dad3b18)

Signed-off-by: Chris Nighswonger <chris.nighswonger@gmail.com>
2011-03-05 19:38:00 -05:00
Nahuel ANGELINETTI aad1150b52 (bug #5157) fix borrowers top issues
this fix filters of borrowers top issues that doesn't work really well... perhaps because reports scripts need too much improvment.

Signed-off-by: Paul Poulain <paul.poulain@biblibre.com>
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
(cherry picked from commit 6b285cf44d)

Signed-off-by: Chris Nighswonger <chris.nighswonger@gmail.com>
2011-03-05 19:37:47 -05:00
Owen Leonard 0225fec0c1 Fix for Bug 4853 - Rights needed to renew a document
Correcting check for circulation permission. Also updating
updateitem.pl (for setting lost and damaged statuses) with
circulate permissions.

Signed-off-by: Paul Poulain <paul.poulain@biblibre.com>
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
(cherry picked from commit 7a587112f0)

Signed-off-by: Chris Nighswonger <chris.nighswonger@gmail.com>
2011-03-05 19:37:36 -05:00
Owen Leonard 7de29cff5f Fix for Bug 4290 - search for author in repository
Reimplementation of Nahuel's patch from 2010-03-02

Signed-off-by: Paul Poulain <paul.poulain@biblibre.com>
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
(cherry picked from commit 0ba9aab76b)

Signed-off-by: Chris Nighswonger <chris.nighswonger@gmail.com>
2011-03-05 19:37:22 -05:00
Frédérick Capovilla 9bf542a4a7 Bug 3341: Fines calculation erroneous when a repeatable holiday is added
Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
(cherry picked from commit dbe3780fc0)

Signed-off-by: Chris Nighswonger <chris.nighswonger@gmail.com>
2011-03-05 19:37:11 -05:00
Chris Cormack 839318dcb6 Fixing a utf8 issue with the translator tests
(cherry picked from commit 7c97e0bfe7)

Signed-off-by: Chris Nighswonger <chris.nighswonger@gmail.com>
2011-03-05 19:36:54 -05:00
Ian Walls 3ae3f526d6 Bug 5824: Creating a circ rule for a specific library causes anomalies
The variable name for the current branch being edited was the same as the variable used in
cat-search.inc, which passed along the circ-rule library to circulation.pl, and then overriding
the set library from there.

This patch renames the template variable 'current_branch', so that it does not populate the 'branch'
param in cat-search.inc

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

Signed-off-by: Chris Nighswonger <chris.nighswonger@gmail.com>
2011-03-05 19:36:37 -05:00
Owen Leonard ce441c98b5 Fix for Bug 5818, Date picker broken on label batches
Calendar picker JS can't come before main JS includes

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

Signed-off-by: Chris Nighswonger <chris.nighswonger@gmail.com>
2011-03-05 19:36:25 -05:00
Chris Cormack 803745545b Fixing license and copyright statement for updatedatabase.pl
(cherry picked from commit de6b9fc534)

Signed-off-by: Chris Nighswonger <chris.nighswonger@gmail.com>
2011-03-05 19:35:11 -05:00
Chris Nighswonger be70c93760 Updating Version Number to 3.02.05.001 2011-03-05 19:34:06 -05:00
Marcel de Rooy cbe0e92e41 Bug 5642: Item field serial enumeration (enumchron) should be longer
Field enumchron in items table is now varchar(80).
We have records that need a much longer field, even up to 400 or 500 chars.
I suggest to change its type to TEXT (variable length with max 64K; tinytext
goes up to 255 chars and is just too short).
Mediumtext or longtext are not needed; as a side note these types are used in
the items table for e.g. booksellerid and more_subfields_xml..

Revised original patch thanks to Ian Walls: update kohatructure.sql. Copied the change in deleteditems as well.

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

Signed-off-by: Chris Nighswonger <chris.nighswonger@gmail.com>
2011-03-05 19:32:40 -05:00
MJ Ray 8c09474651 bug 5813: Remove unnecessary empty file
Signed-off-by: Galen Charlton <gmcharlt@gmail.com>
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
(cherry picked from commit f68386f749)

Signed-off-by: Chris Nighswonger <chris.nighswonger@gmail.com>
2011-03-05 19:32:05 -05:00
Robin Sheat 9e19780484 Bug 4852 - rewrite the query to include limits if using ccl=
Signed-off-by: Jared Camins-Esakov <jcamins@bywatersolutions.com>
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
(cherry picked from commit 87ec412648)

Signed-off-by: Chris Nighswonger <chris.nighswonger@gmail.com>
2011-03-04 19:13:48 -05:00
Nicole C. Engard f22d33c660 Bug 5792 - Add reference icon to Bridge icon set
Signed-off-by: D Ruth Bavousett <ruth@bywatersolutions.com>
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
(cherry picked from commit 19adf162ca)

Signed-off-by: Chris Nighswonger <chris.nighswonger@gmail.com>
2011-03-04 19:13:36 -05:00
Nicole C. Engard 1eb31af795 Bug 5799 make language on circ history consistent
Signed-off-by: D Ruth Bavousett <ruth@bywatersolutions.com>
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
(cherry picked from commit bbd08ffd09)

Signed-off-by: Chris Nighswonger <chris.nighswonger@gmail.com>
2011-03-04 19:13:00 -05:00
Chris Cormack 4c93d8a748 Fixing the translatable tests to work in french locales
(cherry picked from commit 24db3d4a44)

Signed-off-by: Chris Nighswonger <chris.nighswonger@gmail.com>
2011-03-04 19:12:47 -05:00
Owen Leonard b2736ad0a0 Fix for Bug 5814 - Style error message on manage staged records page according to standard
Signed-off-by: Nicole C. Engard <nengard@bywatersolutions.com>
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
(cherry picked from commit 6ded7b9897)

Signed-off-by: Chris Nighswonger <chris.nighswonger@gmail.com>
2011-03-04 19:06:09 -05:00
Ian Walls cd458a2093 Bug 3319 Followup: Fix compatibility with fix for bug 4945
The fix for 3319 overwrote the @branchloop variable with output from GetBranchesLoop,
which forces a selected branch.  Removing the extra call, and just measuring the size of
@branchloop as it was build, plus some dereferencing, fixes the issue.

Signed-off-by: Nicole C. Engard <nengard@bywatersolutions.com>
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
2011-03-04 19:03:32 -05:00
Marcel de Rooy 18faba5e06 Bug 1953 - Follow up fix on security patch
Fixing: Undefined subroutine prepare called on line 722.

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

Signed-off-by: Chris Nighswonger <chris.nighswonger@gmail.com>
2011-03-04 18:56:55 -05:00
Owen Leonard b66662413b Follow-up fix for Bug 5733 - Empty cart in intranet when session is closed
Modifying empty cart function to take a paramter: if true,
cart will be emptied without a prompt.

Removing unnecessary  "javascript:" pseudo-protocol.

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

Signed-off-by: Chris Nighswonger <chris.nighswonger@gmail.com>
2011-02-28 10:04:35 -05:00
Owen Leonard da9e26d020 Fix for Bug 5812 - Tag Cloud - capitalized words come before lower-case words
Signed-off-by: Nicole C. Engard <nengard@bywatersolutions.com>
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
(cherry picked from commit edafbd941d)

Signed-off-by: Chris Nighswonger <chris.nighswonger@gmail.com>
2011-02-28 09:55:25 -05:00
Owen Leonard 39c0c055bd Follow-up fix for Bug 4885 - Only 1 ISBN shows in non-XSL detail view
Fix for Bug 5551 overwrote the necessary changes to opac-detail.pl

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

Signed-off-by: Chris Nighswonger <chris.nighswonger@gmail.com>
2011-02-28 09:55:08 -05:00
MJ Ray 36d0fc3751 bug 1953: Reduce risk of possible tainted supplierid call to C4::Serials::GetLateIssues
Signed-off-by: Galen Charlton <gmcharlt@gmail.com>
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
(cherry picked from commit 74cdd57ecb)

Signed-off-by: Chris Nighswonger <chris.nighswonger@gmail.com>
2011-02-28 09:51:22 -05:00
Marcel de Rooy b4fd69e173 2742 Encoding problem
Small correction of e umlaut. [Something happened with encoding of signed patch; my original patch did not show a wrong character.]

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

Signed-off-by: Chris Nighswonger <chris.nighswonger@gmail.com>
2011-02-28 09:49:22 -05:00
Chris Nighswonger 0ddbc63ac5 Updating Version Number to 3.02.05.000 2011-02-24 15:41:17 -05:00
Chris Nighswonger 70aad424c5 Release Notes for 3.02.05.000 2011-02-24 15:36:36 -05:00
Chris Nighswonger bc60c23360 Security Bugfix: Bug 1953 Adding Placeholders to SQL To Avoid Potential Injection Attacks
This patch addresses both security issues mentioned in the summary of the report
submitted by Frère Sébastien Marie included below.

---------------------------
The problem is here: 'C4/AuthoritiesMarc.pm' in the function 'DelAuthority':
The argument $authid is included directly (not via statement) in the SQL.

For the exploit of this problem, you can use 'authorities/authorities-home.pl'
with authid on the URL and op=delete (something like
"authorities/authorities-home.pl?op=delete&authid=xxx").

This should successfully call DelAuthority, without authentification...
(DelAuthority is call BEFORE get_template_and_user, so before authentification
[This should be an issue also...]).

Please note that the problem isn't only that anyone can delete an authority of
this choose, it is more general: with "authid=1%20or%1=1" (after inclusion sql
will be like: "delete from auth_header where authid=1 or 1=1") you delete all
authorities ; with "authid=1;delete%20from%xxx" it is "delete from auth_header
where authid=1;delete from xxx" and so delete what you want...

SQL-INJECTION is very permissive: you can redirect the output in a file (with
some MySQL function), so write thea file of you choose in the server, in order
to create a backdoor, and compromise the server.

Signed-off-by: Frère Sébastien Marie <semarie-koha@latrappe.fr>
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
(cherry picked from commit b0f60221f4)

Signed-off-by: Chris Nighswonger <chris.nighswonger@gmail.com>
2011-02-24 13:36:36 -05:00
marcel@libdevelop.rijksmuseum.nl 348546aef1 2742: Wrong language name in the preferences
Follow up patch. Improvement suggested by Belgian translators (Hans Supply).

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

Signed-off-by: Chris Nighswonger <chris.nighswonger@gmail.com>
2011-02-24 13:36:22 -05:00
Owen Leonard 49f8964bb2 Partial fix for Bug 5745, Overdues with fines report not showing titles
- Adding title, subtitle, and author to output
- Reworking display of shelving location selection

Patch does not address the contents of 'overdue status' and 'notified by'

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

Signed-off-by: Chris Nighswonger <chris.nighswonger@gmail.com>
2011-02-24 13:35:50 -05:00
Paul Poulain 44038d38fd Bug 5759 : displaying 2nd email if there is one on print template for borrowers
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
(cherry picked from commit 2f9bebf802)

Signed-off-by: Chris Nighswonger <chris.nighswonger@gmail.com>
2011-02-24 13:34:27 -05:00
Owen Leonard 799509d90b Fix for Bug 5769 - notice tab disappearing on edit patron
Signed-off-by: Nicole Engard <nengard@bywatersolutions.com>
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
(cherry picked from commit ed2b583eb1)

Signed-off-by: Chris Nighswonger <chris.nighswonger@gmail.com>
2011-02-24 13:34:02 -05:00
Chris Nighswonger 5294c412c8 Updating Version Number to 3.02.04.000 2011-02-21 22:01:52 -05:00
Chris Nighswonger 7a740a11b4 Release Notes for 3.02.04.000 2011-02-21 21:59:31 -05:00
Frédéric Demians ccfeb794b0 Translation update for 3.2.4
(cherry picked from commit 44c2af8d66e2fdb6036469a296238b6da41c880c)

Signed-off-by: Chris Nighswonger <chris.nighswonger@gmail.com>
2011-02-21 14:15:48 -05:00
Chris Nighswonger 993b250ffb Revert "Partial fix for Bug 5745, Overdues with fines report not showing titles"
This reverts commit 65e478ca51.

Patch accidentally pushed which  introduces string changes.

Signed-off-by: Chris Nighswonger <chris.nighswonger@gmail.com>
2011-02-21 14:12:52 -05:00
Chris Nighswonger 7b49e39b34 Revert "Bug 5759 : displaying 2nd email if there is one on print template for borrowers"
This reverts commit 211dae9f01.

Patch accidentally pushed which introduces string changes.

Signed-off-by: Chris Nighswonger <chris.nighswonger@gmail.com>
2011-02-21 14:11:48 -05:00
Chris Nighswonger cf5675c291 Revert "Fix for Bug 5769 - notice tab disappearing on edit patron"
This reverts commit 3176055652.

Patch accidentally pushed which  introduces string changes.

Signed-off-by: Chris Nighswonger <chris.nighswonger@gmail.com>
2011-02-21 14:09:35 -05:00
Owen Leonard 9e9579692f Fix for Bug 5776 - menu on funds wraps when only 1 fund
Signed-off-by: Nicole C. Engard <nengard@bywatersolutions.com>
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
(cherry picked from commit a0367aa973)

Signed-off-by: Chris Nighswonger <chris.nighswonger@gmail.com>
2011-02-21 12:35:10 -05:00
Reed Wade 1895546dbb Bug 5741 - Extra comma causes JavaScript error in Internet Explorer
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
(cherry picked from commit 1f0e0c5de1)

Signed-off-by: Chris Nighswonger <chris.nighswonger@gmail.com>
2011-02-21 12:35:09 -05:00
Frédéric Demians 70580dc5e7 Bug 5777 Update and install syspref tab titles
This allow also Save button label translation

[3.2] It applies

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

Signed-off-by: Chris Nighswonger <chris.nighswonger@gmail.com>
2011-02-21 12:35:09 -05:00
Paul Poulain 0208c9d661 NormalizeString POD Fixing and variable renaming
POD was mistakenly telling that NFD was supposed to be the default
    encoding.  In fact, it is not, it is NFC.
    So the variable $nfc to change to the not default encoding was misleading.
    Renaming it into $nfd

(written by hdl)

Refactored by Chris Cormack

Signed-off-by: Davi <davi@gnu.org>
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
(cherry picked from commit 4117b293f6)

Signed-off-by: Chris Nighswonger <chris.nighswonger@gmail.com>
2011-02-21 12:35:08 -05:00
Owen Leonard 3176055652 Fix for Bug 5769 - notice tab disappearing on edit patron
Signed-off-by: Nicole Engard <nengard@bywatersolutions.com>
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
(cherry picked from commit ed2b583eb1)

Signed-off-by: Chris Nighswonger <chris.nighswonger@gmail.com>
2011-02-21 12:35:08 -05:00
Owen Leonard 8fc4ea7663 Fix for Bug 5140 - In Chrome, drop-down menus disappear after using pop-up calendar
Disabling that part of the calendar JavaScript which hides
<select> form fields when the calendar is displayed. This is at
the expense of IE6.

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

Signed-off-by: Chris Nighswonger <chris.nighswonger@gmail.com>
2011-02-21 12:35:07 -05:00