Koha/svc
Owen Leonard 34c405d6fe Bug 20894: Add barcode size parameters to /svc/barcode
This patch adds a couple of new parameters to the barcode generator
service: "modulesize," which controls the size of QRcodes*, and
"height," which can be applied to all other barcode types.

* The "modulesize" number refers to the pixel dimensions of each black
and white square in the generated QRcode. The dimensions in "squares" of
the QR code depends on how much data is being encoded.

For QRcodes, one default parameters is used: An error-correction level
of "M" (Medium, https://en.wikipedia.org/wiki/QR_code#Error_correction).

To test, apply the patch and restart services. Test various settings to
confirm that barcodes are displayed correctly:

http://127.0.0.1:8081/cgi-bin/koha/svc/barcode?type=QRcode&modulesize=3&barcode=https%3A%2F%2Fkoha-community.org
http://127.0.0.1:8081/cgi-bin/koha/svc/barcode?type=QRcode&modulesize=6&barcode=https%3A%2F%2Fkoha-community.org
http://127.0.0.1:8081/cgi-bin/koha/svc/barcode?type=Code39&height=50&barcode=32000000203734
http://127.0.0.1:8081/cgi-bin/koha/svc/barcode?type=Code39&height=20&barcode=32000000203734
http://127.0.0.1:8081/cgi-bin/koha/svc/barcode?type=COOP2of5&height=50&barcode=32000000203734
http://127.0.0.1:8081/cgi-bin/koha/svc/barcode?type=IATA2of5&height=50&barcode=32000000203734
http://127.0.0.1:8081/cgi-bin/koha/svc/barcode?type=Industrial2of5&height=50&barcode=32000000203734
http://127.0.0.1:8081/cgi-bin/koha/svc/barcode?type=ITF&height=50&barcode=32000000203734
http://127.0.0.1:8081/cgi-bin/koha/svc/barcode?type=Matrix2of5&height=50&barcode=32000000203734
http://127.0.0.1:8081/cgi-bin/koha/svc/barcode?type=NW7&height=50&barcode=32000000203734

Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
2022-02-09 22:01:37 -10:00
..
cataloguing Bug 28785: Adjust check_cookie_auth calls 2021-10-18 11:28:41 +02:00
club Bug 28785: Adjust check_cookie_auth calls 2021-10-18 11:28:41 +02:00
config Bug 29056: Remove the demo functionality leftovers 2021-09-28 15:12:45 +02:00
letters Bug 17600: Fix imports for svc/letters/preview 2021-10-21 09:56:29 +02:00
mana Bug 28785: Adjust check_cookie_auth calls 2021-10-18 11:28:41 +02:00
members Bug 28785: Adjust check_cookie_auth calls 2021-10-18 11:28:41 +02:00
records Bug 14957: Fix record preview 2021-10-26 16:46:03 +02:00
virtualshelves Bug 28959: Add virtualshelves.public as a boolean 2021-10-28 17:47:38 +02:00
article_request Bug 28785: Adjust check_cookie_auth calls 2021-10-18 11:28:41 +02:00
authentication Bug 25898: Prohibit indirect object notation 2020-10-15 12:56:30 +02:00
authorised_values Bug 28785: Adjust check_cookie_auth calls 2021-10-18 11:28:41 +02:00
barcode Bug 20894: Add barcode size parameters to /svc/barcode 2022-02-09 22:01:37 -10:00
bib Bug 17600: Fix other occurrences in svc 2021-07-26 16:41:07 +02:00
bib_framework Bug 28750: fix svc/bib_framework 2021-07-26 16:28:52 +02:00
bib_profile Bug 25898: Prohibit indirect object notation 2020-10-15 12:56:30 +02:00
checkin Bug 28785: Adjust check_cookie_auth calls 2021-10-18 11:28:41 +02:00
checkout_notes Bug 28785: Adjust check_cookie_auth calls 2021-10-18 11:28:41 +02:00
checkouts Bug 28785: Adjust check_cookie_auth calls 2021-10-18 11:28:41 +02:00
convert_report Bug 24663: Remove authnotrequired if set to 0 2020-09-03 10:40:35 +02:00
cover_images Bug 28785: Adjust check_cookie_auth calls 2021-10-18 11:28:41 +02:00
creator_batches Bug 28785: Adjust check_cookie_auth calls 2021-10-18 11:28:41 +02:00
holds Bug 28785: Adjust check_cookie_auth calls 2021-10-18 11:28:41 +02:00
import_bib Bug 17600: Fix other occurrences in svc 2021-07-26 16:41:07 +02:00
localization
new_bib Bug 28750: (bug 17600 follow-up) Use full routine names in svc/new_bib svc/bib 2021-07-26 16:28:52 +02:00
problem_reports Bug 28785: Adjust check_cookie_auth calls 2021-10-18 11:28:41 +02:00
renew Bug 28785: Adjust check_cookie_auth calls 2021-10-18 11:28:41 +02:00
report Bug 17600: Fix other occurrences in svc 2021-07-26 16:41:07 +02:00
return_claims Bug 28785: Adjust check_cookie_auth calls 2021-10-18 11:28:41 +02:00
split_callnumbers Bug 26251: Remove unused routines from svc/split_callnumbers 2020-08-20 10:23:56 +02:00