Commit Graph

13084 Commits

Author SHA1 Message Date
Jared Camins-Esakov 80be71dfd7 Follow up for Bug 3326: previous fix broke searches when
This fix ensures that searches will still work when -x is not used when
reindexing Zebra.

Signed-off-by: Nicole C. Engard <nengard@bywatersolutions.com>
Signed-off-by: Magnus Enger <magnus@bibkat.no>
Signed-off-by: Jane Wagner <jwagner@ptfs.com>
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
(cherry picked from commit e18ddca9d4)

Signed-off-by: Chris Nighswonger <chris.nighswonger@gmail.com>
2011-03-22 17:21:49 -04:00
ruth@bywatersolutions.com 56e210d8fd Bug 3595 (partial): Items seen at checkin are not filling holds well
In Liz's second comment on this bug, she points out that local-only
holds (and also no-holds) items are being used to fill the first hold
in the queue, no matter where located, transitting if necessary.  If
all the items on a biblio are set to no-holds types, this problem
would never arise, as no holds could be *placed*.  But if you have
one or more unlimitedor local-hold items, then holds are getting
filled by the first item to cross a scanner, no matter what.

This patch will check during C4::Reserves::CheckReserves to make sure
that the hold being handed back to AddReturn is actually fillable by
the item just scanned.  One caveat:  If CircControl is set to "the library
you are logged in at", this will cause items checked in at
other-than-their-home-library to fill local holds at the library where
scanned.  This is, however, an edge case!

Signed-off-by: Liz Rea <lrea@nekls.org>
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
(cherry picked from commit 784b9df4f2)

Signed-off-by: Chris Nighswonger <chris.nighswonger@gmail.com>
2011-03-22 17:21:28 -04:00
Jared Camins-Esakov 6e3466d022 Bug 3326: Work around Zebra's handling of &amp; entities
When using XSLT mode, the OPAC results display will show "&amp;" instead of "&"
when Zebra is indexing in XML mode. This patch works around this by replacing
"&amp;" with "&" and then extends the previous fix to apply to all occurrences
of "& " instead of just the first.

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

Signed-off-by: Chris Nighswonger <chris.nighswonger@gmail.com>
2011-03-22 17:21:13 -04:00
Chris Nighswonger 3ca14dd326 Bug 5865 - Labels wrap incorrectly when paper width is greater than height
This is due to the incorrect use of string comparators to compare numeric values.
This patch corrects that.

Note: This should be backported to 3.2.x

Signed-off-by: Jared Camins-Esakov <jcamins@bywatersolutions.com>
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
(cherry picked from commit 5a924cc530)

Signed-off-by: Chris Nighswonger <chris.nighswonger@gmail.com>
2011-03-22 17:20:47 -04:00
Chris Nighswonger bea1621ffa Updating Version Number to 3.02.06.000 2011-03-21 23:14:55 -04:00
Chris Nighswonger 609ad3285f Release Notes for 3.02.06.000 2011-03-21 23:12:40 -04:00
Frédéric Demians 36d127bc4a Translation strings update for 3.2.6
(cherry picked from commit ea918baa655554d058645cd02b8ea9d363177be4)

Signed-off-by: Chris Nighswonger <chris.nighswonger@gmail.com>
2011-03-21 22:29:00 -04:00
Chris Cormack 0cb0d1deb8 Bug 5693 : Follow up patch, escaping HTML in limit_cgi so "" dont break hrefs
Signed-off-by: Nicole C. Engard <nengard@bywatersolutions.com>
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
(cherry picked from commit 9b5e18c4ee)

Signed-off-by: Chris Nighswonger <chris.nighswonger@gmail.com>
2011-03-14 20:14:26 -04:00
Chris Nighswonger ad89cd6b4a Updating Version Number to 3.02.05.003 2011-03-14 14:07:10 -04:00
Nicole Engard 6f95796048 Bug 3670: change 'Item DUE' to 'Item Due' in English dbs
Signed-off-by: Julian Maurice <julian.maurice@biblibre.com>
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
(cherry picked from commit 07b9125861)

Signed-off-by: Chris Nighswonger <chris.nighswonger@gmail.com>
2011-03-14 14:05:18 -04:00
Janusz Kaczmarek a3e049d10c Bug 5819 : No toolbar in record view when quotes present in title - fix
Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de>
Was able to reproduce problem by surrounding 245$a with "".
Patch fixed the problem.
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
(cherry picked from commit d6e580439b)

Signed-off-by: Chris Nighswonger <chris.nighswonger@gmail.com>
2011-03-14 14:04:57 -04:00
Henri-Damien LAURENT 187fb8f354 bug4438/MT5496 budget Exceeds total allocation
This is a followup :
When editing a budget, the check for the total allocation would take into account the budget itself.
Showing an improper error message
The problem was solved when adding a child budget but not when editing the same budget.

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

Signed-off-by: Chris Nighswonger <chris.nighswonger@gmail.com>
2011-03-14 14:04:39 -04:00
Chris Cormack d9f0503dda Bug 5595 : Fixing a security glitch (please always use placeholders or
dbh->quote and fixing the tests
(cherry picked from commit 8215cc8bad)

Signed-off-by: Chris Nighswonger <chris.nighswonger@gmail.com>
2011-03-14 14:04:19 -04:00
Chris Cormack 6cc89efb32 Adding release dates and 2 new developers
(cherry picked from commit 4b2ccab568)

Signed-off-by: Chris Nighswonger <chris.nighswonger@gmail.com>
2011-03-14 14:03:56 -04:00
Marcel de Rooy 6aa5368eff Bug 5736: Fixing some zebra configuration errors in marc21/biblios/record.abs
Patch adapted for 3.2.X only. Signed in master.

Signed-off-by: Chris Nighswonger <chris.nighswonger@gmail.com>
2011-03-12 16:30:17 -05:00
Janusz Kaczmarek ef3c529576 Bug 5569: Corrections to addbiblio.tmpl to be able to delete repetable mandatory subfields
Signed-off-by: Julian Maurice <julian.maurice@biblibre.com>
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
(cherry picked from commit 728b3725df)

Signed-off-by: Chris Nighswonger <chris.nighswonger@gmail.com>
2011-03-12 16:27:43 -05:00
Frédéric Demians c34dc1178a Bug 4072 Lost items aren't hidden on OPAC result page
When hidelostitems system preference is enabled, lost items are hidden on OPAC
detail page but are shown on result page. This patch modify MARC21/UNIMARC XSL
in order to take into account hidelostitems syspref on OPAC result page.

Signed-off-by: Liz Rea <lrea@nekls.org>
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
(cherry picked from commit 326222e3f1)

Signed-off-by: Chris Nighswonger <chris.nighswonger@gmail.com>
2011-03-12 16:27:43 -05:00
Galen Charlton e83b3c8918 bug 5846: fix detection of Javascript to compress by mod_gzip
Update to default Apache config; should result in a slight
performance benefit.

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

Signed-off-by: Chris Nighswonger <chris.nighswonger@gmail.com>
2011-03-12 16:27:42 -05:00
Stéphane Delaune ce78811455 Bug 5595: (MT #5757)adding additional attributes support on patrons's search
Restores ability to search on extended borrower attributes that are configured to be searchable

Signed-off-by: Ian Walls <ian.walls@bywatersolutions.com>
Signed-off-by: Nicole C. Engard <nengard@bywatersolutions.com>
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
(cherry picked from commit 0ee0cc18b3)

Signed-off-by: Chris Nighswonger <chris.nighswonger@gmail.com>
2011-03-12 16:27:42 -05:00
Colin Campbell 261fc7f0f2 bug_5064 Rework data retrieval in booksellers.pl
loops were slightly illogical and db accesss was excessive
and repetitive. caused it not to scale well on large datasets
Routines in Acquisition.pm seem to have inconsistent views
of the data.
rework logic to utilize db and processing better

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

Signed-off-by: Chris Nighswonger <chris.nighswonger@gmail.com>
2011-03-12 16:27:42 -05:00
Tomás Cohen Arazi dcaf7bb126 update INSTALL* to acknowledge the use of mod_deflate
Signed-off-by: Julian Maurice <julian.maurice@biblibre.com>
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
(cherry picked from commit 002baadaf4)

Signed-off-by: Chris Nighswonger <chris.nighswonger@gmail.com>
2011-03-12 16:27:41 -05:00
Katrin Fischer 634447ed81 Bug 5527: Fix some problems in inactive borrowers report
- 'Not checked out since:' date was not added to query
- borrowers with only checkouts and no returns since this date were considered inactive

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

Signed-off-by: Chris Nighswonger <chris.nighswonger@gmail.com>
2011-03-12 16:23:30 -05:00
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