koha.git
5 years agoRFID: add icons to show security status
Dobrica Pavlinusic [Thu, 3 Mar 2016 12:52:00 +0000 (13:52 +0100)]
RFID: add icons to show security status

5 years agoRFID: add FFZG keyboard shortcuts alt+z/alt+r/alt+k
Dobrica Pavlinusic [Wed, 2 Mar 2016 22:45:18 +0000 (23:45 +0100)]
RFID: add FFZG keyboard shortcuts alt+z/alt+r/alt+k

5 years agoRFID: improve interface, show reader checkbox and IP
Dobrica Pavlinusic [Wed, 2 Mar 2016 21:55:31 +0000 (22:55 +0100)]
RFID: improve interface, show reader checkbox and IP

5 years agofix detection of selected check in/out tab
Dobrica Pavlinusic [Wed, 2 Mar 2016 13:36:46 +0000 (14:36 +0100)]
fix detection of selected check in/out tab

5 years agomake RFID window floating, better instructions
Dobrica Pavlinusic [Tue, 1 Mar 2016 15:03:45 +0000 (16:03 +0100)]
make RFID window floating, better instructions

5 years agoadded logos required for FFZG theme
Dobrica Pavlinusic [Mon, 15 Feb 2016 13:52:21 +0000 (14:52 +0100)]
added logos required for FFZG theme

5 years agoempty colors.css to prevent 404 error
Dobrica Pavlinusic [Mon, 15 Feb 2016 13:51:23 +0000 (14:51 +0100)]
empty colors.css to prevent 404 error

5 years agoFFZG: custom basketgroup pdf template
Dobrica Pavlinusic [Wed, 13 Jan 2016 09:30:17 +0000 (10:30 +0100)]
FFZG: custom basketgroup pdf template

5 years agoremoved C4::Dates from koha-ffzg.psgi
Dobrica Pavlinusic [Mon, 4 Jan 2016 14:56:15 +0000 (15:56 +0100)]
removed C4::Dates from koha-ffzg.psgi

5 years agoOPACBaseURL must start with http://
Marijana Glavica [Mon, 19 Oct 2015 18:03:27 +0000 (20:03 +0200)]
OPACBaseURL must start with http://

5 years agoControl-number index changed to Local-number - link to host record
Marijana Glavica [Wed, 27 May 2015 14:12:20 +0000 (16:12 +0200)]
Control-number index changed to Local-number - link to host record

5 years agochange navbar to navbar-fixed
Marijana Glavica [Sun, 10 May 2015 20:24:52 +0000 (22:24 +0200)]
change navbar to navbar-fixed

5 years agodisable value_builder/ffzg-stocknumber.pl
Dobrica Pavlinusic [Sun, 10 May 2015 20:20:03 +0000 (22:20 +0200)]
disable value_builder/ffzg-stocknumber.pl

5 years agoAKZG -- added inventory number generation for new homebranch
Dobrica Pavlinusic [Wed, 8 Apr 2015 13:55:39 +0000 (15:55 +0200)]
AKZG -- added inventory number generation for new homebranch

5 years agoKRT-4338 -- generate stocknumbers only for FFZG home branch
Dobrica Pavlinusic [Mon, 16 Mar 2015 13:34:11 +0000 (14:34 +0100)]
KRT-4338 -- generate stocknumbers only for FFZG home branch

5 years agoFFZG #390 - sigurature zs -- perl replacement for function, encoding
Dobrica Pavlinusic [Thu, 12 Mar 2015 18:39:06 +0000 (19:39 +0100)]
FFZG #390 - sigurature zs -- perl replacement for function, encoding

5 years agoupdatedatabase from command line and create log
Dobrica Pavlinusic [Wed, 11 Mar 2015 12:57:54 +0000 (13:57 +0100)]
updatedatabase from command line and create log

5 years agoadded koha-ffzg.psgi for /etc/init.d/koha-plack
Dobrica Pavlinusic [Tue, 10 Mar 2015 19:13:01 +0000 (20:13 +0100)]
added koha-ffzg.psgi for /etc/init.d/koha-plack

5 years agoKRT-4338 -- create barcode and stocknumber when receiving items in acq
Dobrica Pavlinusic [Mon, 16 Feb 2015 16:02:10 +0000 (17:02 +0100)]
KRT-4338 -- create barcode and stocknumber when receiving items in acq

KRT-4338 -- fix year-stocknumber

5 years agomarc21 filed 008 - ffzg plugins modifications
Marijana Glavica [Tue, 7 Oct 2014 12:45:59 +0000 (14:45 +0200)]
marc21 filed 008 - ffzg plugins modifications

5 years agoaditional local value builders with tt template
Dobrica Pavlinusic [Mon, 15 Sep 2014 08:43:52 +0000 (10:43 +0200)]
aditional local value builders with tt template

5 years agofix value builder template extension to tt
Dobrica Pavlinusic [Fri, 5 Sep 2014 08:55:01 +0000 (10:55 +0200)]
fix value builder template extension to tt

5 years agocheckout/in books only on 3M reader
Dobrica Pavlinusic [Mon, 14 Apr 2014 13:05:18 +0000 (15:05 +0200)]
checkout/in books only on 3M reader

otherwise, we can't secure/unsecure books

5 years agoF4 to program tag
Dobrica Pavlinusic [Fri, 4 Apr 2014 12:45:02 +0000 (14:45 +0200)]
F4 to program tag

5 years agosearch catalog using barcode
Dobrica Pavlinusic [Fri, 4 Apr 2014 11:29:44 +0000 (13:29 +0200)]
search catalog using barcode

5 years agoalways respect check in tab if selected
Dobrica Pavlinusic [Thu, 3 Apr 2014 15:01:06 +0000 (17:01 +0200)]
always respect check in tab if selected

5 years agofirst change security and then submit form
Dobrica Pavlinusic [Thu, 3 Apr 2014 14:06:03 +0000 (16:06 +0200)]
first change security and then submit form

This allows librarians to remote book from reader as soon as page is
submitted instead of waiting for page load and one RFID scan to
correctly change tag security.

5 years agobetter extraction of script name
Dobrica Pavlinusic [Thu, 3 Apr 2014 14:03:53 +0000 (16:03 +0200)]
better extraction of script name

5 years agoremote debug output
Dobrica Pavlinusic [Thu, 3 Apr 2014 12:01:30 +0000 (14:01 +0200)]
remote debug output

5 years agocall rfid_secure JSONP only if security changed
Dobrica Pavlinusic [Thu, 3 Apr 2014 11:57:34 +0000 (13:57 +0200)]
call rfid_secure JSONP only if security changed

5 years agodisable rfid refresh before page load
Dobrica Pavlinusic [Thu, 3 Apr 2014 09:36:30 +0000 (11:36 +0200)]
disable rfid refresh before page load

5 years agoadded javascript from Biblio::RFID
Dobrica Pavlinusic [Thu, 3 Apr 2014 09:36:03 +0000 (11:36 +0200)]
added javascript from Biblio::RFID

5 years agocreate ip directory with correct permissions
Dobrica Pavlinusic [Thu, 3 Apr 2014 09:34:02 +0000 (11:34 +0200)]
create ip directory with correct permissions

5 years agoregister rfid reader
Dobrica Pavlinusic [Thu, 3 Apr 2014 09:33:14 +0000 (11:33 +0200)]
register rfid reader

records local (intranet) address and address inside vmware (behind NAT)
for access from local browser

5 years agomove script to rfid directory
Dobrica Pavlinusic [Tue, 1 Apr 2014 09:35:37 +0000 (11:35 +0200)]
move script to rfid directory

5 years agoffzg_inventarna_knjiga needs itemnumber
Dobrica Pavlinusic [Fri, 7 Mar 2014 15:39:25 +0000 (16:39 +0100)]
ffzg_inventarna_knjiga needs itemnumber

5 years agolookup borrower data using SmartX card data
Dobrica Pavlinusic [Thu, 6 Feb 2014 11:02:33 +0000 (12:02 +0100)]
lookup borrower data using SmartX card data

5 years agoupdate and install hr-HR language
Dobrica Pavlinusic [Tue, 5 Nov 2013 15:16:24 +0000 (16:16 +0100)]
update and install hr-HR language

5 years agoffzg-stocknumber: replace YUI with jquery
Dobrica Pavlinusic [Mon, 4 Nov 2013 12:04:52 +0000 (13:04 +0100)]
ffzg-stocknumber: replace YUI with jquery

5 years agoFFZG #390 - Signatura ZS - jquery changed location
Dobrica Pavlinusic [Mon, 4 Nov 2013 11:37:26 +0000 (12:37 +0100)]
FFZG #390 - Signatura ZS - jquery changed location

5 years agofamfamfam silk images
Marijana Glavica [Sun, 3 Nov 2013 19:43:25 +0000 (20:43 +0100)]
famfamfam silk images

5 years agocustom OPAC details template
Marijana Glavica [Sun, 3 Nov 2013 15:27:55 +0000 (16:27 +0100)]
custom OPAC details template

5 years agocustom intranet templates
Marijana Glavica [Sun, 3 Nov 2013 15:26:55 +0000 (16:26 +0100)]
custom intranet templates

5 years agocustom intranet templates
Marijana Glavica [Sun, 3 Nov 2013 13:43:46 +0000 (14:43 +0100)]
custom intranet templates

5 years agoMARC21slim2OPACResultsFFZG.xsl
Marijana Glavica [Tue, 22 Oct 2013 12:44:20 +0000 (14:44 +0200)]
MARC21slim2OPACResultsFFZG.xsl

5 years agocustom xsl for MARC21slim2intranetDetailISBD.xsl
Marijana Glavica [Thu, 17 Oct 2013 15:15:52 +0000 (17:15 +0200)]
custom xsl for MARC21slim2intranetDetailISBD.xsl

5 years agoFFZG stocknumber - use last year until 15th of january
Dobrica Pavlinusic [Tue, 1 Jan 2013 22:43:20 +0000 (23:43 +0100)]
FFZG stocknumber - use last year until 15th of january

5 years agokeybord shortcuts for circulation
Marijana Glavica [Tue, 26 Jun 2012 11:39:36 +0000 (13:39 +0200)]
keybord shortcuts for circulation

5 years agoinsert RFID chip position using javascript
Dobrica Pavlinusic [Thu, 5 Jan 2012 14:46:56 +0000 (15:46 +0100)]
insert RFID chip position using javascript

Adding RFID tags to items using catalogue/moredetail template

persistent location of RFID chip based on itemnumber

added stocknumber in red to items detail page

5 years agoadded autocomplete="off"
Dobrica Pavlinusic [Fri, 10 Feb 2012 14:44:04 +0000 (15:44 +0100)]
added autocomplete="off"

5 years agoauto-focus barcode field on load
Dobrica Pavlinusic [Fri, 10 Feb 2012 14:38:57 +0000 (15:38 +0100)]
auto-focus barcode field on load

5 years agoredirect to printer REST only if barcode was found
Dobrica Pavlinusic [Thu, 9 Feb 2012 21:26:54 +0000 (22:26 +0100)]
redirect to printer REST only if barcode was found

5 years agoadded form to print another barcode
Dobrica Pavlinusic [Thu, 9 Feb 2012 17:08:38 +0000 (18:08 +0100)]
added form to print another barcode

5 years agocorrectly encode utf8 callnumbers
Dobrica Pavlinusic [Thu, 9 Feb 2012 14:10:50 +0000 (15:10 +0100)]
correctly encode utf8 callnumbers

5 years agoopac-sendbasket.tt is not translatable
Marijana Glavica [Tue, 31 Jan 2012 21:02:01 +0000 (22:02 +0100)]
opac-sendbasket.tt is not translatable

this file was made manualy, not by translate tool, so that is
why it is commited to the repository

5 years agofix currency exchange rates
Dobrica Pavlinusic [Fri, 27 Jan 2012 10:54:47 +0000 (11:54 +0100)]
fix currency exchange rates

5 years agoHNB currency update
Dobrica Pavlinusic [Wed, 25 Jan 2012 21:09:49 +0000 (22:09 +0100)]
HNB currency update

5 years agonew inventory number confirmation
Dobrica Pavlinusic [Tue, 24 Jan 2012 19:56:34 +0000 (20:56 +0100)]
new inventory number confirmation

5 years agoopen items editor instad of normal view in received orders list
Marijana Glavica [Fri, 20 Jan 2012 06:17:48 +0000 (07:17 +0100)]
open items editor instad of normal view in received orders list

5 years agoFFZG stocknumber value_builder plugin for YEAR-NR
Dobrica Pavlinusic [Tue, 17 Jan 2012 19:04:08 +0000 (20:04 +0100)]
FFZG stocknumber value_builder plugin for YEAR-NR

Squashed commit of the following:

commit 87ff20b8470895b3261a408c503ca3d0f5130025
Author: Dobrica Pavlinusic <dpavlin@rot13.org>
Date:   Tue Jan 17 19:47:27 2012 +0100

    stocknumber in YEAR-NR format

commit 9084f5a1199d9305570da122d3b383f2b2662bf8
Author: Dobrica Pavlinusic <dpavlin@rot13.org>
Date:   Tue Jan 17 18:30:11 2012 +0100

    begin value builder for inventory book

5 years agoRFID position pictures
Dobrica Pavlinusic [Wed, 4 Jan 2012 15:08:40 +0000 (16:08 +0100)]
RFID position pictures

5 years agocorner images for library menu
Marijana Glavica [Thu, 5 Jan 2012 12:54:07 +0000 (13:54 +0100)]
corner images for library menu

5 years agoNormal view to look like ISBD
Marijana Glavica [Thu, 5 Jan 2012 01:35:32 +0000 (02:35 +0100)]
Normal view to look like ISBD

5 years agoplugins for thesis framework
Marijana Glavica [Tue, 3 Jan 2012 13:30:25 +0000 (14:30 +0100)]
plugins for thesis framework

5 years agoPlugins for leader and 008
Marijana Glavica [Tue, 3 Jan 2012 03:50:28 +0000 (04:50 +0100)]
Plugins for leader and 008

5 years agoSome images for OPAC
Marijana Glavica [Tue, 3 Jan 2012 01:04:00 +0000 (02:04 +0100)]
Some images for OPAC

5 years agoOPAC FFZG style
Marijana Glavica [Mon, 2 Jan 2012 18:18:27 +0000 (19:18 +0100)]
OPAC FFZG style

5 years agoffzg site required local staff css
Marijana Glavica [Thu, 14 Jul 2011 21:34:59 +0000 (23:34 +0200)]
ffzg site required local staff css

5 years agobounce browser to printer URL and return with station
Dobrica Pavlinusic [Wed, 8 Feb 2012 13:47:53 +0000 (14:47 +0100)]
bounce browser to printer URL and return with station

This allows us to recurect to printer REST API, send ZPL file to printer
and return to Koha with station/printer IP address to record in log.

5 years agoFFZG #390 - Signatura zatvorenog spremišta
Dobrica Pavlinusic [Sun, 1 Jan 2012 12:18:50 +0000 (13:18 +0100)]
FFZG #390 - Signatura zatvorenog spremišta

Implementirati višestruke nizove signatura prema formatu

Ovo je port na Template Toolkit za Kohu 3.4 i novije

5 years agoBug 22565: (QA follow-up) Fix test Acquisition.t
Josef Moravec [Mon, 25 Mar 2019 11:21:45 +0000 (11:21 +0000)]
Bug 22565: (QA follow-up) Fix test Acquisition.t

Test plan:
prove t/db_dependent/Acquisition.t
should pass

Signed-off-by: Josef Moravec <josef.moravec@gmail.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
5 years agoBug 22565: Add test for ModReceiveOrder regression
Martin Renvoize [Mon, 25 Mar 2019 11:04:37 +0000 (11:04 +0000)]
Bug 22565: Add test for ModReceiveOrder regression

This test checks that order_internalnote is only updated for the given
orderline in ModReceiveOrder.

Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Josef Moravec <josef.moravec@gmail.com>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
5 years agoBug 22565: Do NOT replace all internalnote's on receive
Martin Renvoize [Mon, 25 Mar 2019 10:49:15 +0000 (10:49 +0000)]
Bug 22565: Do NOT replace all internalnote's on receive

Bug 21467 introduced a but whereby setting any order_internalnote on
receive one would end up setting all orders to have that internalnote.

This patch adds the missing WHERE clause to the database query which was
likely lost during a rebase?

Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Josef Moravec <josef.moravec@gmail.com>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
5 years agoBug 22032: Compiled CSS
Nick Clemens [Fri, 22 Mar 2019 20:29:19 +0000 (20:29 +0000)]
Bug 22032: Compiled CSS

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
5 years agoBug 22032: Improve local cover image tab on detail page
Owen Leonard [Thu, 20 Dec 2018 16:32:34 +0000 (16:32 +0000)]
Bug 22032: Improve local cover image tab on detail page

This patch makes a variety of improvements to the images tab of the
staff client's bibliographic detail page.

To test, apply the patch and regenerate the staff client CSS.

 - Enable the LocalCoverImages system preference.
 - Locate a bibliographic record which has no images attached.
   - There should be a "no images" message and an upload button.
     - Upload an image and return to the detail page.
       - The "Images" tab should have a nicely-styled thumbnail of the
         image you uploaded.
         - Test the "Delete image" link: It should ask for a
           confirmation. If you confirm, the image should disappear and
           a "loading" spinner should appear.
           - When the image has been deleted the thumbnail container
             should disappear and the "no images" message should
             reappear.
 - Test this process with AllowMultipleCovers enabled and disabled.

Extra credit: Modify the AJAX url in the removeLocalImage
function in detail.tt. After misspelling a parameter name or the URL
path, clicking the "Delete image" link should trigger an alert and
re-show the image thumbnail.

Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
5 years agoBug 18589: (QA follow-up) Remove dateFormat from javascript on ill requests pages.
Josef Moravec [Mon, 18 Mar 2019 14:33:24 +0000 (14:33 +0000)]
Bug 18589: (QA follow-up) Remove dateFormat from javascript on ill requests pages.

This is not needed, the right formatting is done in calendar.inc

Test plan:
Use datepickers on ILL requests list page and ensure they work as
expected and the list is right filterred

Signed-off-by: Josef Moravec <josef.moravec@gmail.com>
Signed-off-by: Andrew Isherwood <andrew.isherwood@ptfs-europe.com>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
5 years agoBug 18589: (QA follow-up) Move template to bootstrap grid
Josef Moravec [Mon, 18 Mar 2019 13:40:54 +0000 (13:40 +0000)]
Bug 18589: (QA follow-up) Move template to bootstrap grid

Test plan:
Go to patrons Ill request history page and ensure the layout is not
broken and is consistant with other patron pages (except Circulation and
Details pages)

Signed-off-by: Josef Moravec <josef.moravec@gmail.com>
Signed-off-by: Andrew Isherwood <andrew.isherwood@ptfs-europe.com>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
5 years agoBug 18589: (QA follow-up) Rename page to "ILL requests history" for consistancy
Josef Moravec [Mon, 18 Mar 2019 09:32:11 +0000 (09:32 +0000)]
Bug 18589: (QA follow-up) Rename page to "ILL requests history" for consistancy

Signed-off-by: Josef Moravec <josef.moravec@gmail.com>
Signed-off-by: Andrew Isherwood <andrew.isherwood@ptfs-europe.com>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
5 years agoBug 18589: (follow-up) Fix merge problem
Andrew Isherwood [Tue, 12 Mar 2019 09:41:56 +0000 (09:41 +0000)]
Bug 18589: (follow-up) Fix merge problem

Bug in passing row to getStatusName

As per item 3) in comment #20:
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=18589#c20

Signed-off-by: Josef Moravec <josef.moravec@gmail.com>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
5 years agoBug 18589: (follow-up) Add borrowernumber test
Andrew Isherwood [Tue, 12 Mar 2019 09:19:56 +0000 (09:19 +0000)]
Bug 18589: (follow-up) Add borrowernumber test

As per comment #21:
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=18589#c21

We now test borrowernumber filter works. This test has come from
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=83184&action=diff
and will be removed from that bug

Signed-off-by: Josef Moravec <josef.moravec@gmail.com>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
5 years agoBug 18589: (follow-up) Fix QA tool failures
Andrew Isherwood [Mon, 11 Mar 2019 15:58:42 +0000 (15:58 +0000)]
Bug 18589: (follow-up) Fix QA tool failures

As per comment #17:
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=18589#c17

Sorry Josef, I honestly have no idea where those tabs came from :( Every
once in a while my copy of Vim decides to embarass me and stick in tabs
instead of spaces... <shakes fist at screen>

Signed-off-by: Josef Moravec <josef.moravec@gmail.com>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
5 years agoBug 18589: (follow-up) Remove redundant-ness
Andrew Isherwood [Mon, 11 Mar 2019 14:19:36 +0000 (14:19 +0000)]
Bug 18589: (follow-up) Remove redundant-ness

Following feedback from Josef via IRC, removing redundant code

Signed-off-by: Josef Moravec <josef.moravec@gmail.com>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
5 years agoBug 18589: Show ILLs as part of patron profile
Andrew Isherwood [Mon, 11 Mar 2019 11:56:28 +0000 (11:56 +0000)]
Bug 18589: Show ILLs as part of patron profile

This patch moves the display of a patron's ILL requests to be inline in
the Patron Profile page, as per all other patron information.

It includes a substantial refactor of
koha-tmpl/intranet-tmpl/prog/en/modules/ill/ill-requests.tt in that it
moves the display of the illlist table (which is populated by an API
request) into it's own separate include file. It also moves the
datatable related Javascript for this table into it's own JS file. Doing
this allows us to reuse both in both the new members/ill-requests.tt
template and the pre-existing ill/ill-requests.tt template.

To test:
1) Ensure ILL is enabled and your user has sufficient permissions
2) Ensure your user has some ILL requests
3) Navigate to the user's patron profile page
4) Click on the "Interlibrary loans" tab
5) Observe that the requests table is displayed inline
6) Observe that only your user's requests are displayed

Signed-off-by: Niamh.Walker-Headon@it-tallaght.ie
This is essentially a reimplementation of attachment 84796 to take into
account all changes that had happened beneath this bug and also to
ensure JS strings are translatable.

Signed-off-by: Josef Moravec <josef.moravec@gmail.com>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
5 years agoBug 21998: Silent tests
Jonathan Druart [Wed, 27 Feb 2019 17:49:35 +0000 (14:49 -0300)]
Bug 21998: Silent tests

Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
5 years agoBug 21998: Throw exception on bad pattern
Josef Moravec [Tue, 18 Dec 2018 11:53:21 +0000 (11:53 +0000)]
Bug 21998: Throw exception on bad pattern

Signed-off-by: Josef Moravec <josef.moravec@gmail.com>
Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
5 years agoBug 21998: Add pattern parameter in Koha::Token
Marcel de Rooy [Wed, 19 Sep 2018 13:36:36 +0000 (15:36 +0200)]
Bug 21998: Add pattern parameter in Koha::Token

Allow a pattern too in Koha::Token->generate. Only supported length.
Does not affect CSRF calls. So tiny change without further impact.

Test plan:
Run  t/Token.t

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Josef Moravec <josef.moravec@gmail.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
5 years agoBug 22008: DBRev 18.12.00.031
Nick Clemens [Fri, 22 Mar 2019 20:04:33 +0000 (20:04 +0000)]
Bug 22008: DBRev 18.12.00.031

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
5 years agoBug 22008: Fixes to make unit tests pass
Kyle M Hall [Wed, 6 Mar 2019 13:08:19 +0000 (08:08 -0500)]
Bug 22008: Fixes to make unit tests pass

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Josef Moravec <josef.moravec@gmail.com>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
5 years agoBug 22008: Add missing constraints
Martin Renvoize [Wed, 27 Feb 2019 12:04:46 +0000 (12:04 +0000)]
Bug 22008: Add missing constraints

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Josef Moravec <josef.moravec@gmail.com>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
5 years agoBug 22008: Add tests for new constraints
Martin Renvoize [Wed, 27 Feb 2019 12:02:36 +0000 (12:02 +0000)]
Bug 22008: Add tests for new constraints

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Josef Moravec <josef.moravec@gmail.com>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
5 years agoBug 20478: Fix qa complaints
Nick Clemens [Fri, 22 Mar 2019 19:56:18 +0000 (19:56 +0000)]
Bug 20478: Fix qa complaints

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
5 years agoBug 20478: (QA follow-up) Make test more standard
Martin Renvoize [Fri, 8 Mar 2019 10:35:49 +0000 (10:35 +0000)]
Bug 20478: (QA follow-up) Make test more standard

Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
5 years agoBug 20478: Have the cronjob script advance_notices.pl send digest messages per branch.
Andreas Jonsson [Mon, 22 Jan 2018 10:37:14 +0000 (10:37 +0000)]
Bug 20478: Have the cronjob script advance_notices.pl send digest messages per branch.

Desired behavior of the script advance_notices.pl is that the sender
address on the notice message is that of the branch of the issues in
question.  Thus, the solution is to generate digest messages per
branch.

To test:
1) Inspect unit test in t/db_dependent/cronjobs/advance_notices_digest.t and note that:
   - There are three libraries
   - There is a borrower
   - The borrower is registered at library1
   - The borrower has message preference wants_digest set to 1
   - The borrower has message preference days_in_advance set to 1
   - The content of the letter PREDUEDGST is '<<count>> <<branches.branchname>>'
   - There are three items
   - There is one issue per item
   - There is one issues at library2
   - There are two issues at library3
   - The date_due of the issues are set to tomorrow
   - For the default case (no -digest-per-message)
      - It is asserted that there is one message in the message queue after running the script
      - It is asserted that there are three items in the message.
      - It is asserted that the branchname is that of the borrower's home library.
   - For the case where -digest-per-message is enabled
      - It is asserted that there are two messages in the message queue after running the script
      - It is asserted that the item count of the message corresponding to library2 is 1
      - It is asserted that the item count of the message corresponding to library3 is 2
      - It is asserted that the branchnames are correct.
2) Run unit test: prove t/db_dependent/cronjobs/advance_notices_digest.t

Sponsored-By: Bibliotek Mellansjö, which is a cooperation between
Sponsored-By: Gullspångs kommunbibliotek
Sponsored-By: Hjo stadsbibliotek
Sponsored-By: Karlsborgs bibliotek
Sponsored-By: Mariestads stadsbibliotek
Sponsored-By: Skövde stadsbibliotek
Sponsored-By: Tibro bibliotek
Sponsored-By: Tidaholms stadsbibliotek
Sponsored-By: Töreboda kommunbibliotek
Signed-off-by: Andreas Jonsson <andreas.jonsson@kreablo.se>
Signed-off-by: Magnus Enger <magnus@libriotech.no>
Adding the --digest-per-branch switch turns the digest into one digest per
library. I think it makes perfect sense to keep the default behaviour
and hide this new functionality behind a command line switch.
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
5 years agoBug 20478: Refactor to remove code duplication.
Andreas Jonsson [Tue, 27 Mar 2018 09:22:45 +0000 (11:22 +0200)]
Bug 20478: Refactor to remove code duplication.

Signed-off-by: Magnus Enger <magnus@libriotech.no>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
5 years agoBug 20478: Add unit test for advance_notices.pl cronjob.
Andreas Jonsson [Mon, 22 Jan 2018 08:50:10 +0000 (08:50 +0000)]
Bug 20478: Add unit test for advance_notices.pl cronjob.

Signed-off-by: Magnus Enger <magnus@libriotech.no>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
5 years agoBug 19661: (follow-up) Use Basic auth in tests
Josef Moravec [Tue, 26 Feb 2019 09:16:05 +0000 (09:16 +0000)]
Bug 19661: (follow-up) Use Basic auth in tests

Test plan:

prove t/db_dependent/api/v1/acquisitions_funds.t

Signed-off-by: Josef Moravec <josef.moravec@gmail.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
5 years agoBug 19661: Add and change properties and parameters to conform to the funds RFC.
Matthias Meusburger [Tue, 15 Jan 2019 09:46:04 +0000 (10:46 +0100)]
Bug 19661: Add and change properties and parameters to conform to the funds RFC.

Also, perform an exact search when searching on the fund owner id.

Signed-off-by: Josef Moravec <josef.moravec@gmail.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
5 years agoBug 19661: Use Koha::Acquisition::Funds instead of C4::Budgets
Matthias Meusburger [Wed, 17 Jan 2018 10:49:14 +0000 (11:49 +0100)]
Bug 19661: Use Koha::Acquisition::Funds instead of C4::Budgets

Signed-off-by: Josef Moravec <josef.moravec@gmail.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
5 years agoBug 19661: REST API - Funds Endpoint
Matthias Meusburger [Thu, 12 Oct 2017 07:55:12 +0000 (07:55 +0000)]
Bug 19661: REST API - Funds Endpoint

This patch adds a new route to the REST api:

/api/v1/acquisitions/funds/

Signed-off-by: David Bourgault <david.bourgault@inlibro.com>
Signed-off-by: Josef Moravec <josef.moravec@gmail.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
5 years agoBug 21948: Compiled CSS
Nick Clemens [Fri, 22 Mar 2019 19:20:55 +0000 (19:20 +0000)]
Bug 21948: Compiled CSS

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>