koha-ffzg.git
12 years agoMerge remote-tracking branch 'remotes/origin/solr/ft/MT7464' into dev/indexqueue... unilimindexqueue_prod_110916
Claire Hernandez [Fri, 16 Sep 2011 13:39:52 +0000 (15:39 +0200)]
Merge remote-tracking branch 'remotes/origin/solr/ft/MT7464' into dev/indexqueue/unilim

12 years agoMerge remote-tracking branch 'origin/dev/unilim' into dev/indexqueue/unilim
Claire Hernandez [Fri, 16 Sep 2011 13:22:06 +0000 (15:22 +0200)]
Merge remote-tracking branch 'origin/dev/unilim' into dev/indexqueue/unilim

12 years agoMerge remote-tracking branch 'origin/dev/stetienne' into dev/unilim unilim_prod_110916
Claire Hernandez [Fri, 16 Sep 2011 13:16:16 +0000 (15:16 +0200)]
Merge remote-tracking branch 'origin/dev/stetienne' into dev/unilim

Conflicts solved:
koha-tmpl/opac-tmpl/prog/en/js/commons.js
koha-tmpl/opac-tmpl/prog/en/lib/jquery/plugins/jquery.json.js
koha-tmpl/opac-tmpl/prog/en/lib/jquery/plugins/jquery.session.js

12 years agoMerge remote-tracking branch 'origin/dev/solr' into dev/stetienne
Claire Hernandez [Fri, 16 Sep 2011 13:08:44 +0000 (15:08 +0200)]
Merge remote-tracking branch 'origin/dev/solr' into dev/stetienne

12 years ago[SOLR] MT7464 Adds SolrIndexOff capability to AddToIndexQueue sub
Claire Hernandez [Fri, 16 Sep 2011 13:07:52 +0000 (15:07 +0200)]
[SOLR] MT7464 Adds SolrIndexOff capability to AddToIndexQueue sub

12 years ago[Unilim] Display - traductions fr-FR
koha et zebra [Fri, 16 Sep 2011 07:41:32 +0000 (09:41 +0200)]
[Unilim] Display - traductions fr-FR

(cherry picked from commit 9c255d4be65dba954c8a33ef580606584acfef8c)

12 years ago[Unilim] Display - ajout texte personnalisé Unilim
koha et zebra [Fri, 16 Sep 2011 07:43:25 +0000 (09:43 +0200)]
[Unilim] Display - ajout texte personnalisé Unilim

(cherry picked from commit fc60271513e37c255e1ca377d818c3569df29230)

12 years agoMerge remote-tracking branch 'origin/unilim/ft/MT6841' into dev/unilim
Julian Maurice [Fri, 16 Sep 2011 08:54:39 +0000 (10:54 +0200)]
Merge remote-tracking branch 'origin/unilim/ft/MT6841' into dev/unilim

Solved conflicts:
C4/Discharges.pm
installer/data/mysql/en/mandatory/sysprefs.sql
installer/data/mysql/fr-FR/1-Obligatoire/unimarc_standard_systemprefs.sql
installer/data/mysql/updatedatabase.pl
koha-tmpl/intranet-tmpl/prog/en/modules/members/discharge.tmpl
kohaversion.pl
members/discharge.pl
misc/cronjobs/gather_print_notices.pl

12 years agoMT6841: Librarians can generate discharges, and borrowers can request a discharge
Matthias Meusburger [Tue, 2 Aug 2011 09:10:26 +0000 (11:10 +0200)]
MT6841: Librarians can generate discharges, and borrowers can request a discharge

12 years agoMT7811: Multiple CAS fixes
Matthias Meusburger [Thu, 15 Sep 2011 14:40:18 +0000 (16:40 +0200)]
MT7811: Multiple CAS fixes

  - Do not call CAS logout when user logs out from intranet
    (this feature should be re-enabled when CAS authentication
     for intranet will be implemented, though)
  - Fix CAS logout call for callback uri
    (the CAS server from which the user logs out may redirect
     the user to the callback uri after logout)

12 years ago[SOLR] Followup: Replace syspref OpacSuppression with SearchOPACHides
Jonathan Druart [Thu, 15 Sep 2011 09:52:53 +0000 (11:52 +0200)]
[SOLR] Followup: Replace syspref OpacSuppression with SearchOPACHides

log the modified query

12 years agoMerge remote branch 'origin/dev/solr' into dev/stetienne
Jonathan Druart [Wed, 14 Sep 2011 12:31:21 +0000 (14:31 +0200)]
Merge remote branch 'origin/dev/solr' into dev/stetienne

Conflicts solved:
koha-tmpl/opac-tmpl/prog/en/modules/opac-results.tmpl

12 years agoMerge remote branch 'origin/stetienne/ft/MT6523' into dev/stetienne
Jonathan Druart [Wed, 14 Sep 2011 12:17:38 +0000 (14:17 +0200)]
Merge remote branch 'origin/stetienne/ft/MT6523' into dev/stetienne

Conflicts solved:
koha-tmpl/intranet-tmpl/prog/en/modules/acqui/neworderempty.tmpl

12 years agoMerge remote branch 'origin/stetienne/ft/MT7625' into dev/stetienne
Jonathan Druart [Wed, 14 Sep 2011 12:05:51 +0000 (14:05 +0200)]
Merge remote branch 'origin/stetienne/ft/MT7625' into dev/stetienne

12 years agoMerge remote branch 'origin/stetienne/ft/MT5508' into dev/stetienne
Jonathan Druart [Wed, 14 Sep 2011 12:05:12 +0000 (14:05 +0200)]
Merge remote branch 'origin/stetienne/ft/MT5508' into dev/stetienne

12 years agoMerge remote branch 'origin/stetienne/ft/MT6808' into dev/stetienne
Jonathan Druart [Wed, 14 Sep 2011 12:03:41 +0000 (14:03 +0200)]
Merge remote branch 'origin/stetienne/ft/MT6808' into dev/stetienne

12 years agoMerge remote branch 'origin/solr/ft/MT7801' into dev/solr
Jonathan Druart [Wed, 14 Sep 2011 11:01:43 +0000 (13:01 +0200)]
Merge remote branch 'origin/solr/ft/MT7801' into dev/solr

12 years agoMerge remote branch 'origin/solr/ft/MT7104' into dev/solr
Jonathan Druart [Wed, 14 Sep 2011 11:00:01 +0000 (13:00 +0200)]
Merge remote branch 'origin/solr/ft/MT7104' into dev/solr

Conflicts solved:
opac/opac-search.pl

12 years agoMerge remote branch 'origin/solr/ft/MT6397' into dev/solr
Jonathan Druart [Wed, 14 Sep 2011 10:44:37 +0000 (12:44 +0200)]
Merge remote branch 'origin/solr/ft/MT6397' into dev/solr

Conflicts solved:
koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/advsearch.tmpl
koha-tmpl/opac-tmpl/prog/en/modules/opac-advsearch.tmpl

12 years agoMT7801: double quotes break coins and thus search results in some scenarios
Jonathan Druart [Wed, 14 Sep 2011 09:34:37 +0000 (11:34 +0200)]
MT7801: double quotes break coins and thus search results in some scenarios

From community branch:
commit d13d96614b7008e37bcb45106b65862548818218
Author: Tomás Cohen Arazi <tomascohen@gmail.com>
Date:   Wed Nov 17 09:43:10 2010 -0500

    Bug 5412 double quotes break coins and thus search results in some
    scenarios
Signed-off-by: Owen Leonard <oleonard@myacpl.org>
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
12 years agoMerge remote-tracking branch 'remotes/origin/solr/ft/MT7464' into dev/unilim unilimindexqueue_maj_110914
Claire Hernandez [Wed, 14 Sep 2011 09:27:12 +0000 (11:27 +0200)]
Merge remote-tracking branch 'remotes/origin/solr/ft/MT7464' into dev/unilim

12 years agoMerge remote-tracking branch 'origin/dev/stetienne' into dev/unilim unilim_maj_110914
Claire Hernandez [Wed, 14 Sep 2011 07:16:51 +0000 (09:16 +0200)]
Merge remote-tracking branch 'origin/dev/stetienne' into dev/unilim

Conflicts solved:
installer/data/mysql/fr-FR/1-Obligatoire/unimarc_standard_systemprefs.sql

12 years agoMerge remote-tracking branch 'origin/dev/solr' into dev/stetienne
Claire Hernandez [Wed, 14 Sep 2011 07:15:22 +0000 (09:15 +0200)]
Merge remote-tracking branch 'origin/dev/solr' into dev/stetienne

Conflicts solved:
installer/data/mysql/en/mandatory/sysprefs.sql
installer/data/mysql/fr-FR/1-Obligatoire/unimarc_standard_systemprefs.sql

12 years ago[SOLR] MT7464 Adds an IndexRecord Queue for Solr
Jonathan Druart [Tue, 13 Sep 2011 12:31:50 +0000 (14:31 +0200)]
[SOLR] MT7464 Adds an IndexRecord Queue for Solr

IndexRecordQueue.pl is a daemon managing a records queue.
    See ./IndexRecordQueue.pl -h for more informations

You must:
    - add a line <installdir>/home/koha</installdir> (for ex.)
      in your koha-conf.xml
    - create a installdir/etc/daemon/indexrecord/config.yaml file with:

    filename: /tmp/recordqueue.txt
    log_filename: /tmp/recordqueue.log
    pid_filename: /tmp/recordqueue.pid
    max_records: 20
    max_delta: 60
    max_interval: 1

    filename, log_filename and pid_filename must be writable for koha
    and www-data users.

    - add these lines in your sudoers config:
    Defaults env_keep+="PERL5LIB KOHA_CONF"
    www-data          ALL=(ALL) NOPASSWD: <installdir>/misc/solr/IndexRecordQeue.pl -a *
    www-data          ALL=(ALL) NOPASSWD: <installdir>/misc/solr/IndexRecordQueue.pl status

12 years agoYAML Config file
Jonathan Druart [Tue, 13 Sep 2011 12:15:02 +0000 (14:15 +0200)]
YAML Config file

This adds a new line to koha-conf.xml
This should be quite safe. But you NEED to add a line to the
koha-conf.xml file

12 years agoMT5508/MT7815: Follow-up: Missing quote in template
Julian Maurice [Tue, 13 Sep 2011 09:46:26 +0000 (11:46 +0200)]
MT5508/MT7815: Follow-up: Missing quote in template

and wrong id in check_form()

12 years agoMT5508: MT7814 FIX ZOOM get records
Jonathan Druart [Mon, 12 Sep 2011 15:03:31 +0000 (17:03 +0200)]
MT5508: MT7814 FIX ZOOM get records

if number of records is leather than pagesize, we have to get the total
number of records.

12 years agoMT5508: MT7815, z3950: don't launch query if no criteria
Jonathan Druart [Mon, 12 Sep 2011 14:03:34 +0000 (16:03 +0200)]
MT5508: MT7815, z3950: don't launch query if no criteria

12 years ago[SOLR]MT6265: FIX replace RSS link in opac results
Jonathan Druart [Thu, 8 Sep 2011 13:56:30 +0000 (15:56 +0200)]
[SOLR]MT6265: FIX replace RSS link in opac results

12 years agoMerge remote-tracking branch 'origin/stetienne/ft/MT7602' into dev/stetienne
Julian Maurice [Mon, 12 Sep 2011 07:36:30 +0000 (09:36 +0200)]
Merge remote-tracking branch 'origin/stetienne/ft/MT7602' into dev/stetienne

12 years agoMerge remote-tracking branch 'origin/stetienne/ft/MT7667' into dev/stetienne
Julian Maurice [Mon, 12 Sep 2011 07:34:08 +0000 (09:34 +0200)]
Merge remote-tracking branch 'origin/stetienne/ft/MT7667' into dev/stetienne

12 years agoMerge remote-tracking branch 'origin/stetienne/ft/MT7603' into dev/stetienne
Julian Maurice [Mon, 12 Sep 2011 07:25:57 +0000 (09:25 +0200)]
Merge remote-tracking branch 'origin/stetienne/ft/MT7603' into dev/stetienne

12 years agoMerge remote-tracking branch 'origin/stetienne/ft/MT7620' into dev/stetienne
Julian Maurice [Mon, 12 Sep 2011 07:21:04 +0000 (09:21 +0200)]
Merge remote-tracking branch 'origin/stetienne/ft/MT7620' into dev/stetienne

12 years agoMerge branch 'stetienne/ft/MT7564' into dev/stetienne
Julian Maurice [Mon, 12 Sep 2011 07:08:33 +0000 (09:08 +0200)]
Merge branch 'stetienne/ft/MT7564' into dev/stetienne

12 years agoFIX: do not try to display inexistant biblio in catalogue/search.pl
Julian Maurice [Fri, 9 Sep 2011 10:15:28 +0000 (12:15 +0200)]
FIX: do not try to display inexistant biblio in catalogue/search.pl

C4::Search::getItemsInfos calls GetBiblioData with a biblionumber. If
this biblionumber no more exists in database, it returns 'undef', and
HTML::Template::Pro will fail to display the results table if there is
an undef value in the loop.
It causes some inconsistencies (display less records than the pagination
parameter) but they can be fixed by reindexing all biblios

12 years agoMT7053 Followup : Translation error on request
Henri-Damien LAURENT [Thu, 8 Sep 2011 15:54:47 +0000 (17:54 +0200)]
MT7053 Followup : Translation error on request

12 years agofollowup :MT6927 removing unconditional warn
Henri-Damien LAURENT [Thu, 8 Sep 2011 15:55:33 +0000 (17:55 +0200)]
followup :MT6927 removing unconditional warn

12 years agofollowup :MT6927 removing unconditional warn
Henri-Damien LAURENT [Thu, 8 Sep 2011 15:55:33 +0000 (17:55 +0200)]
followup :MT6927 removing unconditional warn

12 years agoMT7053 Followup : Translation error on request
Henri-Damien LAURENT [Thu, 8 Sep 2011 15:54:47 +0000 (17:54 +0200)]
MT7053 Followup : Translation error on request

12 years ago[SOLR] Fix deletion of RecordIndex
Julian Maurice [Thu, 8 Sep 2011 12:03:16 +0000 (14:03 +0200)]
[SOLR] Fix deletion of RecordIndex

With this code (in DeleteRecordIndex):

    my $sc = GetSolrConnection;
    $sc->remove("id:${recordtype}_${id}");

WebService::Solr::delete fail if version of WebService::Solr is >= 0.14
causing this software error

    invalid XML data: character data isn't a string

The cause of this is that Data::SearchEngine::remove takes two
parameters and calls directly WebService::Solr::delete like this:

    $self->_solr->delete({ query => $param1, id => $param2 });

If $param2 is undefined, WebService::Solr tries to create an XML element
with this undefined value, causing XML::Easy::Element->new to fail.

With version 0.11 of WebService::Solr, it does not fail because it uses
another XML library (XML::Generator).

This patch simply provides an empty table ref to $sc->remove as 2nd
parameter, so it does not change the current behaviour and is
compatible with both versions of WebService::Solr

12 years agoMT7625: FIX display subscription.notes in serials results
Jonathan Druart [Thu, 8 Sep 2011 12:08:37 +0000 (14:08 +0200)]
MT7625: FIX display subscription.notes in serials results

12 years agoFix merge issue - bad version number in kohaversion
Claire Hernandez [Thu, 8 Sep 2011 11:21:48 +0000 (13:21 +0200)]
Fix merge issue - bad version number in kohaversion

12 years agoMerge remote-tracking branch 'origin/dev/stetienne' into dev/unilim
Claire Hernandez [Thu, 8 Sep 2011 11:20:50 +0000 (13:20 +0200)]
Merge remote-tracking branch 'origin/dev/stetienne' into dev/unilim

12 years agoFix merge problem in updatedatabase version order.
Claire Hernandez [Thu, 8 Sep 2011 11:16:58 +0000 (13:16 +0200)]
Fix merge problem in updatedatabase version order.

12 years ago[SOLR] Adding new option SolrIndexOff in Syspref SearchEngine
Jonathan Druart [Wed, 7 Sep 2011 13:04:13 +0000 (15:04 +0200)]
[SOLR] Adding new option SolrIndexOff in Syspref SearchEngine

This new option, when set disables the Indexing on the fly of
records

12 years agoMT7667: Store in uppercase member surnames
Jonathan Druart [Wed, 7 Sep 2011 14:06:40 +0000 (16:06 +0200)]
MT7667: Store in uppercase member surnames

12 years agoMT7620: Guess end date from firstacquidate when subtype is 'issues'
Julian Maurice [Wed, 7 Sep 2011 13:55:47 +0000 (15:55 +0200)]
MT7620: Guess end date from firstacquidate when subtype is 'issues'

12 years agoMerge remote-tracking branch 'origin/dev/stetienne' into dev/unilim unilim_maj_110907
Claire Hernandez [Wed, 7 Sep 2011 13:53:28 +0000 (15:53 +0200)]
Merge remote-tracking branch 'origin/dev/stetienne' into dev/unilim

Conflicts solved:
installer/data/mysql/en/mandatory/sysprefs.sql
installer/data/mysql/fr-FR/1-Obligatoire/unimarc_standard_systemprefs.sql
installer/data/mysql/updatedatabase.pl
kohaversion.pl

12 years ago[SOLR] Remove coded fields comment in OPAC advsearch
Jonathan Druart [Wed, 7 Sep 2011 12:22:58 +0000 (14:22 +0200)]
[SOLR] Remove coded fields comment in OPAC advsearch

12 years agoRemove misplaced datatables images stetienne_maj_110907
Julian Maurice [Wed, 7 Sep 2011 11:54:11 +0000 (13:54 +0200)]
Remove misplaced datatables images

12 years agoMerge remote-tracking branch 'origin/dev/solr' into dev/stetienne
Julian Maurice [Wed, 7 Sep 2011 11:39:17 +0000 (13:39 +0200)]
Merge remote-tracking branch 'origin/dev/solr' into dev/stetienne

Solved conflicts:
koha-tmpl/intranet-tmpl/prog/en/css/datatables.css
koha-tmpl/intranet-tmpl/prog/en/js/datatables.js
koha-tmpl/intranet-tmpl/prog/en/modules/serials/claims.tmpl
serials/claims.pl

12 years agoMT7563: Manage claims table with DataTables/Ajax
Julian Maurice [Fri, 19 Aug 2011 07:45:04 +0000 (09:45 +0200)]
MT7563: Manage claims table with DataTables/Ajax

12 years agoDataTables: Add C4/Utils/DataTables/Solr.pm
Julian Maurice [Tue, 6 Sep 2011 14:31:35 +0000 (16:31 +0200)]
DataTables: Add C4/Utils/DataTables/Solr.pm

Two utilities functions to build $sort and $filters for SimpleSearch
(cherry picked from commit 0671e717673dfa0a94200b46d3a3e536129e0e25)

12 years agoDataTables: some changes in API
Julian Maurice [Fri, 2 Sep 2011 14:36:30 +0000 (16:36 +0200)]
DataTables: some changes in API

fnAddFilteringDelay is now call fnAddFilters and takes a class name and
an optionnal delay in parameters
(cherry picked from commit f5e028e1f446541415f59ed5cb0dc2b832a09702)

12 years agoDataTables: Add language defaults in datatables.js
Julian Maurice [Fri, 2 Sep 2011 12:43:41 +0000 (14:43 +0200)]
DataTables: Add language defaults in datatables.js

(for translation)
(cherry picked from commit bff18f0f76f72b78a11969cb26bb3e06e1fc1523)

12 years agoAdd jQuery dataTables plugin
Julian Maurice [Fri, 8 Jul 2011 12:29:19 +0000 (14:29 +0200)]
Add jQuery dataTables plugin

This patch add the javascript library, a CSS (and image files from
datatables.net) and another javascript file which provides some extra
features.
It also add a Perl module C4::Utils::Datatables which provides helpful
functions for server-side processing
(cherry picked from commit 24cd57af9d35db8bfc5710fe6936bf820c4f1460)

12 years agoMT7611: Splitting default and global issuing rules
Henri-Damien LAURENT [Wed, 8 Jun 2011 13:39:50 +0000 (15:39 +0200)]
MT7611: Splitting default and global issuing rules

Squashed commits (from branch limoges/bug/MT7053):
----

issuingRule Enhancement : splitting Default AND Global rules

Now, Default rules are coded Default
And network or global rules are coded *
This allow to set no rules when desired or some default rule which will be herited by all the libraries
Next Step would be to take some "library group" into account

----

Control de las máximas reservas en la biblioteca y en la Red

----

Reserves with Global rules

This allows reserves rules as the circulation rules
It tests defined branch then global branch
and defined itemtype and global itemtype
and if the reserves count is more than reservesallowed
then it Blocks.

It should be noted that GetIssuingRule returns No rules i.e. no
rights.
The Issuing rules are defined as follow
      [ $categorycode,       $itemtype,       $branchcode ],
      [ $categorycode,       "Default",       $branchcode ],
      [ "Default",           $itemtype,       $branchcode ],
      [ "Default",           "Default",       $branchcode ],
      [ $categorycode,       $itemtype,       "Default" ],
      [ $categorycode,       "Default",       "Default" ],
      [ "Default",           $itemtype,       "Default" ],
      [ "Default",           "Default",       "Default" ],
And values are inherited from bottom to top if no other is defined
and takes precedence.

Reserves rules are tested as follow:
    branchcode,categorycode,itype
    branchcode,categorycode,*
    *,categorycode,itype
    *,categorycode,*
Where * is the Global rule
If any of those rule fails then it cancel the reserve

----

MT7053 : IssuingRules Enhancement Global

Adding Updatedatabase to add Default rules based on * Rules
There are two ways either atomic update or updatedatabase.

It adds :
INSERT INTO issuingrules (branchcode,categorycode,itemtype,restrictedtype,rentaldiscount,
reservecharge, fine, finedays, chargeperiod, accountsent, chargename, maxissueqty, issuelength,
allowonshelfholds, holdrestricted, holdspickupdelay, renewalsallowed, renewalperiod
) SELECT IF(branchcode='*','Default',branchcode),IF(categorycode='*','Default',categorycode),IF(itemtype='*','Default',itemtype), restrictedtype,rentaldiscount,
reservecharge, fine, finedays, chargeperiod, accountsent, chargename, maxissueqty, issuelength,
allowonshelfholds, holdrestricted, holdspickupdelay, renewalsallowed, renewalperiod FROM issuingrules where branchcode='*' or itemtype='*' or categorycode='*';

----

MT7053: Reintroducing Code for Allowonshelfhold management

This piece of code was commented out by xercode.
I don't know what purpose they followed or which problem they found.
But I guess that it was required somehow.

----

Some small performance improvements

----

Adding Memoize::Memcached to C4::IssuingRules

----

12 years agoMerge remote branch 'origin/solr/ft/MT7103' into dev/solr
Jonathan Druart [Wed, 7 Sep 2011 09:16:18 +0000 (11:16 +0200)]
Merge remote branch 'origin/solr/ft/MT7103' into dev/solr

12 years agoMerge remote-tracking branch 'origin/dev/solr' into dev/stetienne
Julian Maurice [Wed, 7 Sep 2011 09:11:58 +0000 (11:11 +0200)]
Merge remote-tracking branch 'origin/dev/solr' into dev/stetienne

Solved conflicts:
C4/AuthoritiesMarc.pm
installer/data/mysql/en/mandatory/sysprefs.sql
installer/data/mysql/fr-FR/1-Obligatoire/unimarc_standard_systemprefs.sql
installer/data/mysql/updatedatabase.pl
kohaversion.pl
opac/opac-search.pl

12 years agoMT6615: Use authtypecode to build summary
Julian Maurice [Wed, 13 Jul 2011 13:43:52 +0000 (15:43 +0200)]
MT6615: Use authtypecode to build summary

and add 'Authority type' column in search results
(cherry picked from commit 6699c2be92bb1fd34e80983437580095d5d641d1)
(cherry picked from commit 5faa13e74066e731708fc52c7f9faca5f73ee2ed)

12 years agoMT6615: Fix authority summary building
Julian Maurice [Fri, 22 Jul 2011 14:12:05 +0000 (16:12 +0200)]
MT6615: Fix authority summary building

Before this fix, we were looping through all fields and subfields to
find a match in the summary. Moreover, the field values were not placed
in the order the librarian wrote.
Now, we parse the summary from beginning to end, replacing tags with
the corresponding value, in one pass.
It is cleaner and much more efficient.
(cherry picked from commit aaa7087f3d1ada34e208b9c4bc3d92a081447142)

Squashed commit:

MT6615: Prevent BuildSummary to go into an infinite loop

When an authority contains a field or a subfield which contains a string like
[sometextXXXYsometext] where XXX is a three digit number and Y is a character
in [\*a-z0-9], BuildSummary tries to replace it with the right field value.
But if it don't succeed, it continues matching this pattern and always find
the same string, so it loops indefinitely.
This patch fixes that by saving first all the fields to replace, and then
replace them (only the first match), beginning from the last field in the
string.
(cherry picked from commit 4853ac715919518826c19dd906a1e6aaeca53e25)

12 years agoMerge remote-tracking branch 'origin/stetienne/ft/MT6927' into devstetienne
Matthias Meusburger [Wed, 7 Sep 2011 08:36:22 +0000 (10:36 +0200)]
Merge remote-tracking branch 'origin/stetienne/ft/MT6927' into devstetienne

Conflicts:
installer/data/mysql/en/mandatory/sysprefs.sql
installer/data/mysql/fr-FR/1-Obligatoire/unimarc_standard_systemprefs.sql
installer/data/mysql/updatedatabase.pl
kohaversion.pl

12 years agoMT6927: Adds the ability to reserve the next available item at a given branch.
Matthias Meusburger [Mon, 20 Jun 2011 15:07:37 +0000 (17:07 +0200)]
MT6927: Adds the ability to reserve the next available item at a given branch.

Squash :
MT6927: Adds the ability to reserve the next available item at a given branch.
Also adds the ability the reserve the next avaiable item in any branch, but without transfer.

MT6927: Adds the ability to reserve the next available item at a given branch

MT6927, Follow-up: forgot kohaversion.pl

MT6927: Fix column name in updatedatabase

MT6927: Remove forgotten console.log

MT6927: Fix hold for a given library, Fix UI

MT6927: Fix hold for any library

MT6927: Removes unuseful warns

MT6927: Fix UI (branch dropdown list was disabled on change)

MT6927: Fix use of GetItem in C4::Reserves

MT6927: Holding a specific copy also disable pick-up location

MT6927: Fix transfer on empty branch

MT6927: Prevent user from forcing return when transfer is not allowed
due to branch transfer limits

MT6927: Fix template when OpacItemHolds is OFF

MT6927: Do not show "Next available copy" when OPACHoldNextInLibrary in ON

MT6927: Fix Pickuplocation

MT6927: Handle branch transfer limits when OPACHoldNextInLibrary is ON

12 years agoMerge remote-tracking branch 'origin/stetienne/ft/MT6807' into dev/stetienne
Julian Maurice [Wed, 7 Sep 2011 08:05:12 +0000 (10:05 +0200)]
Merge remote-tracking branch 'origin/stetienne/ft/MT6807' into dev/stetienne

12 years agoMT6807: Adds Serial reports
Jonathan Druart [Mon, 23 May 2011 10:34:48 +0000 (12:34 +0200)]
MT6807: Adds Serial reports

_get_display_value return a value to display in select list

12 years agoMerge remote-tracking branch 'origin/stetienne/ft/MT7562' into dev/stetienne
Julian Maurice [Tue, 6 Sep 2011 14:52:58 +0000 (16:52 +0200)]
Merge remote-tracking branch 'origin/stetienne/ft/MT7562' into dev/stetienne

12 years agoMT7561: serials receipt: show item infos if status==arrived
Julian Maurice [Tue, 23 Aug 2011 12:05:47 +0000 (14:05 +0200)]
MT7561: serials receipt: show item infos if status==arrived
(cherry picked from commit 788d19360ddb3d38dfe94b99fe681b2abd7c994e)

12 years ago[SOLR] Handle multi sort in SimpleSearch
Julian Maurice [Tue, 6 Sep 2011 11:55:15 +0000 (13:55 +0200)]
[SOLR] Handle multi sort in SimpleSearch

12 years agoMerge remote-tracking branch 'origin/solr/ft/MT6692authorities' into dev/solr
Claire Hernandez [Mon, 5 Sep 2011 15:33:54 +0000 (17:33 +0200)]
Merge remote-tracking branch 'origin/solr/ft/MT6692authorities' into dev/solr

12 years ago[SOLR] MT6692 Plugin Author Authorities
Claire Hernandez [Tue, 24 May 2011 09:05:42 +0000 (11:05 +0200)]
[SOLR] MT6692 Plugin Author Authorities

- We have to search on rejected form like "firstname secondname"
- Today, We can't have an index related to both plugins
- This new plugin combine Author and Authorities

What it does:
- Take $9 contains in mapping (for author it is 700$b) in biblio (authid)
- Take 400$a 400$b 700$a 700$b 410$a 410$b 710$a 710$b of authority
- @see t/search/plugin_authorauthorities.t
- adds Author plugin behaviour
- ConcatMappings to true (1)

12 years agoMerge remote-tracking branch 'origin/solr/ft/MT7401' into dev/solr
Claire Hernandez [Mon, 5 Sep 2011 14:53:50 +0000 (16:53 +0200)]
Merge remote-tracking branch 'origin/solr/ft/MT7401' into dev/solr

12 years ago[SOLR] Replace syspref OpacSuppression with SearchOPACHides
Jonathan Druart [Mon, 5 Sep 2011 12:37:18 +0000 (14:37 +0200)]
[SOLR] Replace syspref OpacSuppression with SearchOPACHides

12 years ago[SOLR] Suppress warnings in search
Jonathan Druart [Fri, 2 Sep 2011 07:18:33 +0000 (09:18 +0200)]
[SOLR] Suppress warnings in search

12 years agoMerge remote-tracking branch 'origin/solr/bug/Perf_C4_Context' into dev/solr
Claire Hernandez [Thu, 1 Sep 2011 15:52:45 +0000 (17:52 +0200)]
Merge remote-tracking branch 'origin/solr/bug/Perf_C4_Context' into dev/solr

12 years agoMT7603: Basketno is not passed when coming from parcel.pl
Julian Maurice [Thu, 1 Sep 2011 14:10:56 +0000 (16:10 +0200)]
MT7603: Basketno is not passed when coming from parcel.pl

12 years agoMT7602: neworderempty.pl: fix branch selected by default
Julian Maurice [Thu, 1 Sep 2011 13:32:35 +0000 (15:32 +0200)]
MT7602: neworderempty.pl: fix branch selected by default

12 years ago[SOLR]MT7103: FIX if syspref hidelostitems=ON AND no item
Jonathan Druart [Thu, 1 Sep 2011 11:52:15 +0000 (13:52 +0200)]
[SOLR]MT7103: FIX if syspref hidelostitems=ON AND no item

If no item exists for a biblio, we want to display it !

12 years agoMT7564: Make first acqui date editable when duplicate
Julian Maurice [Wed, 31 Aug 2011 15:32:16 +0000 (17:32 +0200)]
MT7564: Make first acqui date editable when duplicate

12 years agoMT7562: Fix GetNextDate call in GetExpirationDate
Julian Maurice [Wed, 31 Aug 2011 15:28:45 +0000 (17:28 +0200)]
MT7562: Fix GetNextDate call in GetExpirationDate

12 years agoMT7562: Force to select a numbering pattern
Julian Maurice [Wed, 31 Aug 2011 12:59:03 +0000 (14:59 +0200)]
MT7562: Force to select a numbering pattern

12 years agoMT6523: Use PrepareItemrecordDisplay via Ajax to clone item block
Julian Maurice [Wed, 31 Aug 2011 12:28:06 +0000 (14:28 +0200)]
MT6523: Use PrepareItemrecordDisplay via Ajax to clone item block

12 years agoMerge remote-tracking branch 'origin/dev/stetienne' into dev/unilim unilim_maj_110831
Claire Hernandez [Wed, 31 Aug 2011 08:52:25 +0000 (10:52 +0200)]
Merge remote-tracking branch 'origin/dev/stetienne' into dev/unilim

12 years agoMerge remote-tracking branch 'origin/dev/solr' into dev/stetienne stetienne_maj_110831
Claire Hernandez [Wed, 31 Aug 2011 08:51:10 +0000 (10:51 +0200)]
Merge remote-tracking branch 'origin/dev/solr' into dev/stetienne

12 years ago(MT #7538) fix advanced search members
Stéphane Delaune [Thu, 18 Aug 2011 08:44:01 +0000 (10:44 +0200)]
(MT #7538) fix advanced search members

12 years ago(MT #7123) add homebranch and holdingbranch of the item filters in overdue.pl
Stéphane Delaune [Thu, 18 Aug 2011 12:53:39 +0000 (14:53 +0200)]
(MT #7123) add homebranch and holdingbranch of the item filters in overdue.pl

12 years ago(MT #7084) subject = report_name in misc/cronjobs/runreport.pl
Stéphane Delaune [Wed, 17 Aug 2011 13:20:53 +0000 (15:20 +0200)]
(MT #7084) subject = report_name in misc/cronjobs/runreport.pl

12 years ago(MT #7010) followup : fix urls in patroncards/members-search.pl
Stéphane Delaune [Wed, 17 Aug 2011 12:17:55 +0000 (14:17 +0200)]
(MT #7010) followup : fix urls in patroncards/members-search.pl

12 years ago(MT #7010) add search on categorycode in SearchMember
Stéphane Delaune [Tue, 19 Jul 2011 09:05:56 +0000 (11:05 +0200)]
(MT #7010) add search on categorycode in SearchMember

12 years ago[SOLR] MT7446: FIX advsearch if there is no value in previous input
Jonathan Druart [Wed, 10 Aug 2011 15:22:00 +0000 (17:22 +0200)]
[SOLR] MT7446: FIX advsearch if there is no value in previous input
(cherry picked from commit d2de8909c64b1a555715e05bf3dd6dbc14236da7)

12 years agoMerge remote branch 'origin/dev/solr' into dev/unilim
Jonathan Druart [Tue, 30 Aug 2011 12:47:46 +0000 (14:47 +0200)]
Merge remote branch 'origin/dev/solr' into dev/unilim

12 years agoMerge remote branch 'origin/solr/ft/MT7047' into dev/solr
Jonathan Druart [Tue, 30 Aug 2011 12:36:19 +0000 (14:36 +0200)]
Merge remote branch 'origin/solr/ft/MT7047' into dev/solr

12 years ago[SOLR] Remove coded fields comment in advsearch
Jonathan Druart [Tue, 30 Aug 2011 12:34:53 +0000 (14:34 +0200)]
[SOLR] Remove coded fields comment in advsearch

12 years agoMT7562: Allow to skip issuenumber when an irregularity is found
Julian Maurice [Fri, 26 Aug 2011 13:20:31 +0000 (15:20 +0200)]
MT7562: Allow to skip issuenumber when an irregularity is found

New field subscription.skip_serialseq, modifiable in
subscription-add.pl. If on (=1), this causes GetNextSeq to skip as many
serialseq as irregularities found.
E.g. you have a serial issue with number 'Issue 4' published on
2011-08-26. The next issue is irregular and its planned date is
2011-08-27.
If skip_serialseq is off, you will have for the next issue:
 - serialseq : 'Issue 5'
 - publisheddate : '2011-08-28'
If skip_serialseq is on:
 - serialseq : 'Issue 6'
 - publisheddate : '2011-08-28'

12 years agoMerge branch 'stetienne/ft/MT6533' into dev/stetienne
Julian Maurice [Fri, 26 Aug 2011 07:24:31 +0000 (09:24 +0200)]
Merge branch 'stetienne/ft/MT6533' into dev/stetienne

12 years agoMT6533: GetInvoice: Fix SQL query
Julian Maurice [Fri, 26 Aug 2011 07:24:01 +0000 (09:24 +0200)]
MT6533: GetInvoice: Fix SQL query

12 years agoMT7562: Clean GetNextDate and fix irregularities
Julian Maurice [Wed, 24 Aug 2011 12:51:53 +0000 (14:51 +0200)]
MT7562: Clean GetNextDate and fix irregularities

Subscriptions irregularities are saved in the form X;X;X;... where X is
the number of the issue which will not be received by the library.
GetNextDate is now fully functionnal with these irregularities

This patch includes some minor fixes in irregularities management
especially in showpredictionpattern.pl which use the new sub
GetFictiveIssueNumber to get the right issue number.
Subscription irregularities can now be modified, even after receiving
some issues, it should work...

When periodicity is N by week (or month or year) and N is greater than
1, all issues in the same week (or month or year) are given the same
date than the previous issue or the first day of the period if the is no
previous issue. The librarian has to modify it by himself, because we
can't guess what is the right date.

12 years agoMerge remote branch 'origin/dev/stetienne' into dev/unilim unilim_maj_110824
Jonathan Druart [Wed, 24 Aug 2011 12:49:44 +0000 (14:49 +0200)]
Merge remote branch 'origin/dev/stetienne' into dev/unilim

12 years agoMerge remote branch 'origin/dev/solr' into dev/stetienne stetienne_maj_110824
Jonathan Druart [Wed, 24 Aug 2011 12:48:45 +0000 (14:48 +0200)]
Merge remote branch 'origin/dev/solr' into dev/stetienne

12 years agoMerge remote branch 'origin/dev/solr' into MT7189
Jonathan Druart [Fri, 19 Aug 2011 13:21:30 +0000 (15:21 +0200)]
Merge remote branch 'origin/dev/solr' into MT7189

12 years ago[SOLR] Followup: FIX quotes in filters (SimpleSearch)
Jonathan Druart [Fri, 19 Aug 2011 13:03:08 +0000 (15:03 +0200)]
[SOLR] Followup: FIX quotes in filters (SimpleSearch)

$1 contains results for the lastest substitution not the precedent
attempt.