Commit Graph

13294 Commits

Author SHA1 Message Date
Galen Charlton 5f0384d42f move Auth_ParseSearchHistoryCookie.t to db_dependent directory
The actual tests in this script are not dependent on the database,
but simply loading C4::Auth requires a valid(ish) koha-conf.xml
and database.

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
2013-07-28 19:48:33 +00:00
Galen Charlton 45aa375aae do some validation of the KohaOpacRecentSearches cookie
Add validation of the value of the KohaOpacRecentSearches.  In
particular, this patch avoids the generation of an internal server
error when the OPAC is presented with an old cookie that uses the
old Storable-based serialization.

This patch also moves parsing of the cookie value into a
new routine in C4::Auth, ParseSearchHistoryCookie, and adds
a test case.

To test (in conjunction with the previous patch):

Exercise the OPAC search history functionality, after
turning on the EnableOpacSearchHistory syspref:

- As an anonymous user, conduct a variety of searches,
  including ones that include non-ASCII characters
- Check the search history and verify that all searches
  are listed
- Apply this patch and the previous one.
- Do *not* clear the KohaOpacRecentSearches cookie
- Check the search history and verify that no searches
  are listed any more
- As an anonymous user, conduct a variety of searches,
  including ones that include non-ASCII characters
- Check the search history and verify that all searches
  are listed
- Log into the OPAC
- Verify that current and past searches are listed in
  search history.

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
2013-07-28 03:28:11 +00:00
Galen Charlton 96434ba3a3 use JSON rather than Storable for the OPAC search history cookie
To test:

Exercise the OPAC search history functionality, after
turning on the EnableOpacSearchHistory syspref:

- Clear the KohaOpacRecentSearches cookie
- As an anonymous user, conduct a variety of searches,
  including ones that include non-ASCII characters
- Check the search history and verified that all searches
  are listed
- Log into the OPAC
- Verify that current and past searches are listed in
  search history.

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>
Signed-off-by: Bernardo Gonzalez Kriegel <bgkriegel@gmail.com>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
2013-07-28 03:26:13 +00:00
Chris Nighswonger 12f7c5d1ca Updating Version Number to 3.02.11.000 2011-12-03 21:26:30 -05:00
Chris Nighswonger 4036a3d581 Release Notes for 3.02.11.000 2011-12-03 21:25:26 -05:00
Chris Cormack e177c9baed Bug 6629 vulnerability fix
Signed-off-by: Chris Nighswonger <chris.nighswonger@gmail.com>
2011-12-03 21:16:34 -05:00
Frédérick Capovilla 15d9cc7213 Corrects a problem with the wrong date being updated in serials-edit.pl
If multiple issues are in the list, changing the status of any issue in
the table would always change the "Expected on" date of the first issue.
Modified the javascript so the date is modified on the correct row.

Signed-off-by: Chris Nighswonger <chris.nighswonger@gmail.com>
2011-08-15 09:08:39 -04:00
Chris Cormack b1e99a5728 Bug 6518 : XSS errors
Signed-off-by: Chris Nighswonger <chris.nighswonger@gmail.com>
2011-06-19 21:34:13 -04:00
Chris Nighswonger 65510168b6 Updating Version Number to 3.02.10.000 2011-06-19 15:52:51 -04:00
Chris Nighswonger bc16c64f31 Release Notes for 3.02.10.000 2011-06-19 15:48:15 -04:00
Frédéric Demians 45164b2776 3.2.10 Translations update
(cherry picked from commit 21fa95065eed99b66f10a5b60a5ba2e1023b71c0)

Signed-off-by: Chris Nighswonger <chris.nighswonger@gmail.com>
2011-06-19 15:04:08 -04:00
Jeremy Crabtree dd34d794b4 Bug 5094 auth_by_bind authentication can fail even if given a correct password and userid
When using

<replicate>0</replicate> <!-- add new users from LDAP to Koha database -->
<update>0</update> <!-- update existing users in Koha database ->
<auth_by_bind>1</auth_by_bind> <!-- set to 1 to authenticate by
binding instead of password comparison, e.g., to use Active Directory -->

Auth_with_ldap attempts to lookup the userid in the LDAP directory to
fill $userldapentry despite it being unneeded in this case.  The information
retrieved will be thrown away, thus there is no need to retrieve it.
This can cause authentication to fail overall even if the initial bind with the
user's credentials succeeded

Signed-off-by: Joe Atzberger <ohiocore@gmail.com>
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
(cherry picked from commit 7bb178e30b)

Signed-off-by: Chris Nighswonger <chris.nighswonger@gmail.com>
2011-06-19 15:02:58 -04:00
Dobrica Pavlinusic 3ff9a4fafd Bug 4993 checkpw_ldap - do bind just once
When using auth_by_bind, search was always done as anonymous user.
This is a problem if we want to fetch LDAP values which have ACL
permissions only for users.

This change moves bind from search_method back into checkpw_ldap,
making code cleaner and easier to understand

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

Signed-off-by: Chris Nighswonger <chris.nighswonger@gmail.com>
2011-06-19 15:02:36 -04:00
Jonathan Druart 21d7968dd2 Bug 6061: clearing up system preference on update
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
(cherry picked from commit a11bf74df9)

Signed-off-by: Chris Nighswonger <chris.nighswonger@gmail.com>
2011-06-19 15:02:02 -04:00
Katrin Fischer 7c4471f7aa Bug 5653: Follow-up, correction to nb-NO sample creator data
Corrects callnumber to itemcallnumber in Norwegian sample data.

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

Signed-off-by: Chris Nighswonger <chris.nighswonger@gmail.com>
2011-06-13 21:01:09 -04:00
Galen Charlton ef5ea26668 bug 5653: use itemcallnumber in bib label layouts
The sample bib label layouts and the hard-coded default
format_string for new layouts used 'callnumber' when they
should have used 'itemcallnumber', preventing call numbers
from being printed on spine labels that use the system-supplied
layouts.  Besides correcting the sample data, this patch
now also enshrines 'callnumber' as an alias for 'itemcallnumber'.
Signed-off-by: Galen Charlton <gmcharlt@gmail.com>

Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de>
After applying patch it works for new and old layouts (itemcallnumber and callnumber).

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

Signed-off-by: Chris Nighswonger <chris.nighswonger@gmail.com>
2011-06-13 20:59:55 -04:00
Chris Nighswonger b49f446671 Bug 2246 - (Partial) Label printing doesn't work with Unicode characters
This patch provides a very partial fix for this bug in that it reduces
the number of pdf generation failures due to a "wide character" error.
It does not ensure that all unicode characters will print correctly as
this is dependent upon many other issues mentioned in this bug and
various posts to the developer list.

What this code does is test to see if the pdf stream is utf8 encoded
and if it is, explicitly declares it to be so. Unicode chars will still
print incorrectly, but the pdf will be created and should open properly
in whatever pdf reader.

You may test this by adding any character with a diacritical to the
title of a bib and then attempting to generate a label pdf with the
title of that bib. Before the patch is applied the resulting pdf
should contain an error mentioning a wide character issue. After the
patch is applied, the pdf should be valid.

No documentation changes are necessary as a result of this patch.

This patch should be backported to 3.2.x.

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

Signed-off-by: Chris Nighswonger <chris.nighswonger@gmail.com>
2011-06-13 20:47:21 -04:00
Salvador Zaragoza Rubio e62104d477 Bug 3013 - Value builder for 006 and 008 need choices for all format types
Modification of the intranet cataloguing plugin for 006/008 fields to allow
select a type of material and change the positions available to enter the data.
Data are hard stored in xml files to allow easy translation and processing through
Javascript and JQuery-AJAX.

Bug 3013 - Fix selection of combo and trailing whitespace

Bug 3013 - Fix selection of combo

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

Signed-off-by: Chris Nighswonger <chris.nighswonger@gmail.com>
2011-06-11 15:54:48 -04:00
Frédérick Capovilla 99f2fdfffb 5684: Remove all items fields from a Z39.50 record imported for acquisition.
Signed-off-by: Marcel de Rooy m.de.rooy@rijksmuseum.nl
May 13: Patch for 3.2.X.
Signed-off-by: Chris Nighswonger <chris.nighswonger@gmail.com>
2011-06-02 13:36:16 -04:00
Marcel de Rooy df75fc81b4 5860 Fixing stocknumber index
Fixing code for 3.2.6.1/3.2.7.1 update.
Adding code at end of update script if install past that point already.

Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de>
Patch for 3.2.x
Signed-off-by: Chris Nighswonger <chris.nighswonger@gmail.com>
2011-06-02 13:35:19 -04:00
Jared Camins-Esakov a3db68f9af Bug 3072: Add Heading-Main and Any to MARC21 DOM
The Heading-Main and Any indexes were not defined in the MARC21 authority DOM
rules, but was enabled by the fix for bug 5924. This patch adds the Heading-Main
and Any indexes to the MARC21 DOM authority configuration.

This is a revised patch, with the authority-zebra-indexdefs.xsl automatically
generated from authority-koha-indexdefs.xml. Note that Any is added by
koha-indexdefs-to-zebra.xsl rather than in the authority-koha-indexdefs.xml
file.

NOTE: This patch modifies the following files, which you will need to manually
update if you are using a dev install:
etc/zebradb/marc_defs/marc21/authorities/authority-koha-indexdefs.xml
etc/zebradb/marc_defs/marc21/authorities/authority-zebra-indexdefs.xsl
etc/zebradb/marc_defs/marc21/authorities/koha-indexdefs-to-zebra.xsl

You will also need to reindex your authorities for the changes in this patch to
take effect.

Signed-off-by: Jared Camins-Esakov <jcamins@bywatersolutions.com>
Signed-off-by: Nicole C. Engard <nengard@bywatersolutions.com>
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
(cherry picked from commit 79deeddc2ad6f09fddd7e200830b1a74a03374bc)

Signed-off-by: Chris Nighswonger <chris.nighswonger@gmail.com>
2011-06-02 13:32:50 -04:00
Owen Leonard 6f0629400e Follow-up fix for Bug 5760 - Add the jquery table sorter to reading record
- Removing option to show 50 items/show all from script and template
- Adding parser to exclude articles in title sort (en only, see Bug 5766)
- Setting default sort to 'date due descending' as it was previously

Signed-off-by: Nicole Engard <nengard@bywatersolutions.com>
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
(cherry picked from commit 2f2d8de286d6b234949df80da37636c4b6a97073)

Signed-off-by: Chris Nighswonger <chris.nighswonger@gmail.com>
2011-06-02 13:32:33 -04:00
Fridolyn SOMERS dfb6aca514 BUG6091 Remove undeclared syspref OPACAdvSearchInputCount
Signed-off-by: Ian Walls <ian.walls@bywatersolutions.com>
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
(cherry picked from commit a8f5bf93f9)

Signed-off-by: Chris Nighswonger <chris.nighswonger@gmail.com>
2011-05-30 10:12:17 -04:00
Tomas Cohen Arazi 9de2d72244 Add entries so Z39.50 public server works
I added a comment on the file so the user uncomments the appropriate koha-conf.xml sections.

To+

Signed-off-by: Magnus Enger <magnus@enger.priv.no>
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
(cherry picked from commit b4b445818f)

Signed-off-by: Chris Nighswonger <chris.nighswonger@gmail.com>
2011-05-30 10:11:51 -04:00
ruth@bywatersolutions.com 56c31dca41 Bug 6401 fix to the history file
This patch adds Ian Walls' name to the history file, so he can be found.

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

Signed-off-by: Chris Nighswonger <chris.nighswonger@gmail.com>
2011-05-30 10:11:06 -04:00
Chris Cormack 5b586bf6d4 Bug 6350 : Updating history docs
http://bugs.koha-community.org/show_bug.cgi?id=6350
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
(cherry picked from commit 37cf503fdf)

Signed-off-by: Chris Nighswonger <chris.nighswonger@gmail.com>
2011-05-30 10:10:46 -04:00
Alex Arnaud a143334051 Bug #6131 - change index "Author-name-personal" for "Personal-name"
Signed-off-by: Frédéric Demians <f.demians@tamil.fr>
Signed-off-by: Ian Walls <ian.walls@bywatersolutions.com>
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
(cherry picked from commit 7006eebd6e)

Signed-off-by: Chris Nighswonger <chris.nighswonger@gmail.com>
2011-05-30 10:10:26 -04:00
Colin Campbell fa5e6daec7 Bug 6315: Fix depreciated constructions in C4::Serials
Perl 5.14 will issue warnings in cases where it is assumed that
() will magically appear around qw() as the interpreter
will stop fooling itself that they are there
Added the missing () in the couple of cases they were required

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

Signed-off-by: Chris Nighswonger <chris.nighswonger@gmail.com>
2011-05-30 10:10:04 -04:00
conan (aka Fernando Canizo) 88026c1580 Bug 6218: patron gets dot added if no first name
Trivial fix, now it choose surname if firstname is empty and behaves
like before (firstname.surname) if both are provided.

Signed-off-by: Frederic Demians <frederic@tamil.fr>
Signed-off-by: Ian Walls <ian.walls@bywatersolutions.com>
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
(cherry picked from commit c87e872278)

Signed-off-by: Chris Nighswonger <chris.nighswonger@gmail.com>
2011-05-30 10:09:33 -04:00
Jared Camins-Esakov 826ee8859f Bug 6152: Document DOM authority index config
Add a note so developers know not to edit authority-zebra-indexdefs.xsl directly
but to instead edit authority-koha-indexdefs.xml and use the
koha-indexdefs-to-zebra.xsl stylesheet to generate the former from the latter.

Signed-off-by: Frederic Demians <frederic@tamil.fr>
Signed-off-by: Ian Walls <ian.walls@bywatersolutions.com>
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
(cherry picked from commit 190a4234f7)

Signed-off-by: Chris Nighswonger <chris.nighswonger@gmail.com>
2011-05-30 10:08:55 -04:00
Frédéric Demians 06157187ff Improve error message when translation installation fails
For Translator Manager (myself...). A translation installation may fail because
translator hasn't enter properly string parameters (%s). With this patch, the
message ID is displayed not only the parameter.

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

Signed-off-by: Chris Nighswonger <chris.nighswonger@gmail.com>
2011-05-30 10:07:47 -04:00
Chris Nighswonger 3e011a9fb0 Updating Version Number to 3.02.09.000 2011-05-15 15:58:24 -04:00
Chris Nighswonger 78d6256d15 Release Notes for 3.02.09.000 2011-05-15 15:56:27 -04:00
Matthias Meusburger d1f3b156ba Bug 5995 : MT2892: Fix security issue in CAS intranet login
Users could log in intranet using their cardnumber, with superlibrarian
rights.

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

Signed-off-by: Chris Nighswonger <chris.nighswonger@gmail.com>
2011-05-15 15:49:00 -04:00
Chris Nighswonger eec142074b Updating Version Number to 3.02.08.000 2011-05-15 14:36:50 -04:00
Chris Nighswonger 5b190fe787 Release Notes for 3.02.08.000 2011-05-15 14:34:25 -04:00
Frédéric Demians c4a0722de2 Translation update for 3.2.8
(cherry picked from commit 681a0fc0292ca5970575c5c2c2b1858a7597577a)

Signed-off-by: Chris Nighswonger <chris.nighswonger@gmail.com>
2011-05-14 20:11:39 -04:00
Chris Cormack 8708377894 Bug 6031 : Fix for syntax (bashism crept into a pure sh script)
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
(cherry picked from commit ae70c2f790)

Signed-off-by: Chris Nighswonger <chris.nighswonger@gmail.com>
2011-05-04 18:21:46 -04:00
Colin Campbell 50796d5b73 Bug 6282: HomeOrHoldingBranchReturn missing from pref file
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
(cherry picked from commit c83cdd0767)

Signed-off-by: Chris Nighswonger <chris.nighswonger@gmail.com>
2011-05-04 18:21:26 -04:00
Matthias Meusburger c9eda475c9 Bug 6001 : batchRebuildBiblioTables.pl doesn't crash anymore when GetMarcBiblio fails. Unprocessed biblionumbers are displayed at the end of the execution instead.
Signed-off-by: Henri-Damien LAURENT <henridamien.laurent@biblibre.com>
Signed-off-by: Paul Poulain <paul.poulain@biblibre.com>
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
(cherry picked from commit a9cb5fa1ee)

Signed-off-by: Chris Nighswonger <chris.nighswonger@gmail.com>
2011-05-04 18:20:20 -04:00
Robin Sheat ac24bd5680 Bug 5509 - use an XML parser to get values from config
Using sed and regex was causing issues when LDAP connection details were
added.

See
http://stackoverflow.com/questions/1732348/regex-match-open-tags-except-xhtml-self-contained-tags/1732454#1732454
for more information.

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

Signed-off-by: Chris Nighswonger <chris.nighswonger@gmail.com>
2011-05-04 18:19:56 -04:00
Jared Camins-Esakov 8966ab9b69 Bug 3543: split NLM call numbers in label creator
Split NLM call numbers using the same rules as those used for Library of
Congress call numbers.

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

Signed-off-by: Chris Nighswonger <chris.nighswonger@gmail.com>
2011-05-04 18:19:13 -04:00
Galen Charlton a944a8059a history.txt updates for April 2011 releases
Signed-off-by: Galen Charlton <gmcharlt@gmail.com>
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
(cherry picked from commit d04ca42111)

Signed-off-by: Chris Nighswonger <chris.nighswonger@gmail.com>
2011-05-04 18:16:23 -04:00
Chris Nighswonger dbb2ba4923 Revert "3.0.x: ce353e7 bug #3674 allow users creation with disabled password"
This reverts commit 87b792b2b6.
2011-04-21 15:09:41 -04:00
Colin Campbell 3223b18c6a Bug 6211: Set default correctly for SubscriptionHistory syspref
Was being set to an invalid value ';'
resulting in weird behaviour where it looked set but was not
in practice

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

Signed-off-by: Chris Nighswonger <chris.nighswonger@gmail.com>
2011-04-20 18:03:03 -04:00
Chris Nighswonger 56762e966b Reverting pieces of enh bug 4506 which crept in 2011-04-20 15:27:11 -04:00
Chris Cormack 7fa977dec1 Updating package lists
(cherry picked from commit 139d3a81f7)

Signed-off-by: Chris Nighswonger <chris.nighswonger@gmail.com>
2011-04-19 15:58:03 -04:00
Tomas Cohen Arazi 520c1bb85e Bug 6126 - [3.2.x] Slip print doesn't work on Webkit based browsers
Signed-off-by: Chris Nighswonger <chris.nighswonger@gmail.com>
2011-04-18 17:38:11 -04:00
Ricardo Dias Marques 46809c0d9f Lower dependency on Storable to 2.20 in PerlDependencies.pm
This patch lowers the dependency on the "Storable" Perl package
(also known as module/distribution) from version 2.21 to 2.20

This patch created today (14-Apr-2011) does, in PerlDependencies.pm,
the same as a previous patch dated 30-Mar-2010 from Lars Wirzenius
did, in Makefile.PL :

[Koha-patches] [PATCH] Lower dependency on Storable to 2.20.
http://lists.koha-community.org/pipermail/koha-patches/2010-March/011560.html

The reason for this patch is the same that Lars gave for his:

" The Debian squeeze system has only 2.20, and the 2.21 does not seem
 to be required for all tests to pass. Also, checked with
Galen Charlton and Henri-Damien LAURENT (who added the 2.21 dependency)
on IRC that 2.21 did not have anything that was required, compared
to 2.20. "

I believe this patch should be applied to the "master" branch
and should also be "cherry-picked" for the "3.2.x" branch.

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

Signed-off-by: Chris Nighswonger <chris.nighswonger@gmail.com>
2011-04-16 15:22:03 -04:00
Paul Poulain 10618a0107 Bug 6104: Modify item looses branch
If the $value is provided by the item, use it, don't use the librarian branch !

Signed-off-by: Sophie Meynieux <sophie.meynieux@biblibre.com>
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
(cherry picked from commit b0374db5ff)

Signed-off-by: Chris Nighswonger <chris.nighswonger@gmail.com>
2011-04-16 15:19:02 -04:00