Koha/koha-tmpl/intranet-tmpl/prog/en/includes
Owen Leonard cb195553d3 Bug 29821: Add interface for generating barcodes using svc/barcode
This patch adds a new page providing an interface for generating
barcodes using svc/barcode. A form allows the user to choose various
parameters and see the resulting barcode image.

To test, apply the patch and rebuild the staff interface SCSS
(https://wiki.koha-community.org/wiki/Working_with_SCSS_in_the_OPAC_and_staff_client).

- Go to the "Tools" home page. Follow the link to "Barcode image
  generator."
- On the barcode image generator page, confirm that there is a "Barcode
  image generator" link in the sidebar and that it is displayed with
  bold text.
- Test the features of the form:
  - Enter a numeric value in the "Barcode" field and tab out of the
    field or click "Show barcode" button. A barcode of type "Code39"
    should be shown with the text of the barcode included in the
    image below the barcode.
  - A text area below the barcode image should show the HTML used to
    generate the preview image.
    - Clicking in this textarea should automatically add the contents to
    the clipboard. You should be shown a message, "HTML copied to the
    clipboard."
  - Check the "hide text" checkbox. The barcode should be redisplayed
    without the text.
  - Check that changing the "barcode height" value is reflected
    correctly in the barcode image.
  - Try adding non-numeric data in the "Barcode" field. You should be
    shown an error message, "Barcodes of type [type]  must be numeric."
  - Test these other numeric barcode types: Code39, COOP2of5, EAN13,
    EAN8, IATA2of5, Industrial2of5, ITF, Matrix2of5, NW7, UPCA, and
    UPCE.

    Note that EAN13, EAN8, UPCA, and UPCE expect specific patterns. Test
    values (found here: https://barcode.tec-it.com/en/UPCE):

    EAN13: 978020137962
    EAN8: 9031101
    UPCA: 72527273070
    UPCE: 0123456

  - Change the barcode type to "QRcode."
    - The form should change, hiding the "Hide text" checkbox and
      showing a new ranger slider for "QR Code module size."
    - The barcode field should now be labeled "Text, URL, or barcode,
      etc"
    - The barcode field hint should change to a hint about QRcode
      dimensions.
    - Changing the "module size" slider should change the size of the
      generated QR code. As you change the slider the selected value
      should be reflected in the box.

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

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
2022-04-08 15:49:17 +02:00
..
background_jobs Bug 29797: Fix display of itemnumbers on the background job detail view 2022-01-21 21:34:51 -10:00
catalogue Bug 17748: Remove unecessary html filter 2022-03-24 14:22:10 -10:00
csv_headers Bug 17748: (follow-up) Remove availability column 2022-03-24 14:22:10 -10:00
mana
modals Bug 29519: Allow resolution of claims return at checkin 2022-02-14 21:41:38 -10:00
str Bug 6815: Capture member photo via webcam 2022-03-24 14:22:10 -10:00
virtualshelves/merge
about-team.inc
accounts.inc Bug 27946: (QA follow-up) Remove 'scan' terminology, requests may not be scans 2022-01-28 11:09:07 -10:00
acquisitions-add-to-basket.inc
acquisitions-menu.inc
acquisitions-search.inc
acquisitions-toolbar.inc
additional-fields-display.inc
additional-fields-entry.inc
admin-items-search-field-form.inc Bug 20689: (follow-up) Correct scope of template variables 2022-03-01 22:47:46 -10:00
admin-menu.inc
adv-search.inc
auth-finder-search.inc
authorities-search-results.inc Bug 29965: (follow-up) Use a new class for the preview 2022-02-23 22:05:33 -10:00
authorities-search.inc
authorities-toolbar.inc
authorities.inc
authorities_js.inc
authority-detail-modal.inc Bug 29965: Preview MARC in authority search results 2022-02-23 22:05:33 -10:00
av-build-dropbox.inc
biblio-title-head.inc
biblio-title.inc Bug 29609: Centralized code to build the link to a biblio detail page 2022-04-08 15:49:16 +02:00
biblio-view-menu.inc Bug 19532: Recalls on intranet 2022-03-14 22:45:51 -10:00
blocked-fines.inc
blocking_errors.inc
borrower_debarments.inc
branch-selector.inc
budget_planning.inc
budgets-active-currency.inc
budgets-admin-search.inc
budgets-admin-toolbar.inc
calendar.inc Bug 30011: Update links to jQueryUI assets, remove datepicker references, etc. 2022-04-08 15:49:16 +02:00
cat-menu.inc
cat-search.inc
cat-toolbar.inc
catalog-strings.inc
cataloging-search.inc
catalogue-search-box.inc
cateditor-ui.inc
cateditor-widgets-marc21.inc
category-out-of-age-limit.inc
chart.inc
checkin-search.inc
checkouts-table-footer.inc
checkouts-table.inc Bug 29519: Allow resolution of claims return at checkin 2022-02-14 21:41:38 -10:00
circ-menu.inc Bug 6815: Don't make an AJAX request to generate the modal 2022-03-24 14:22:10 -10:00
circ-nav.inc Bug 19532: Recalls on intranet 2022-03-14 22:45:51 -10:00
circ-search.inc
cities-admin-search.inc
clubs-table.inc Bug 28782: Use query param list instead of splitting elements using '/' 2022-03-03 16:11:50 -10:00
columns_settings.inc Bug 22038: Fix excel export if CurrencyFormat is FR 2022-04-04 16:23:46 +02:00
contracts-admin-search.inc
country-list.inc
currencies-admin-search.inc
datatables.inc
date-format.inc
delimiter_text.inc
desks-admin-search.inc
doc-head-close-receipt.inc
doc-head-close.inc Bug 30011: Update links to jQueryUI assets, remove datepicker references, etc. 2022-04-08 15:49:16 +02:00
doc-head-open.inc
empty_line.inc
facets.inc
filter-orders.inc
form-blocks.inc
format_price.inc
greybox.inc
guided-reports-view.inc
header.inc
holds_table.inc Bug 30266: Hide pickup location input on waiting hold 2022-03-22 10:17:34 -10:00
home-search.inc
html_helpers.inc Bug 29609: Centralized code to build the link to a biblio detail page 2022-04-08 15:49:16 +02:00
i18n.inc
ill-availability-table.inc
ill-list-table-strings.inc
ill-list-table.inc
ill-toolbar.inc
installer-doc-head-close.inc Bug 30011: Update links to jQueryUI assets, remove datepicker references, etc. 2022-04-08 15:49:16 +02:00
installer-intranet-bottom.inc Bug 30011: Update links to jQueryUI assets, remove datepicker references, etc. 2022-04-08 15:49:16 +02:00
installer-strings.inc
intranet-bottom.inc
intranetstylesheet.inc
js-date-format.inc
js-patron-format-address.inc Bug 30093: Fix QA failures 2022-04-04 09:47:00 +02:00
js-patron-format.inc Bug 30055: Make patron searches use the REST API 2022-04-04 09:46:57 +02:00
js-patron-get-age.inc Bug 30059: Deal with timezones 2022-03-24 14:22:10 -10:00
js_includes.inc Bug 30011: Update links to jQueryUI assets, remove datepicker references, etc. 2022-04-08 15:49:16 +02:00
keyboard_shortcuts.inc
labels-toolbar.inc
langmenu-staff-top.inc
last-borrower.inc
letters-search.inc
member-alt-address-style.inc
member-alt-contact-style.inc
member-display-address-style.inc
member-display-alt-address-style.inc
member-main-address-style.inc
members-toolbar.inc
merge-record.inc
messaging-preference-form.inc
noadd-warnings.inc
onboarding_messages.inc
page-numbers.inc
password_check.inc
patron-age.inc
patron-article-requests.inc
patron-return-claims.inc
patron-search-box.inc
patron-search-header.inc Bug 30063: Sort by "Name" firstname,surname 2022-04-04 09:47:02 +02:00
patron-search.inc Bug 30063: (follow-up) Fix missing TT filters 2022-04-05 17:36:59 +02:00
patron-title.inc Bug 19532: Recalls on intranet 2022-03-14 22:45:51 -10:00
patron-toolbar.inc
patron_messages.inc Bug 29889: Incorrect library check in patron message deletion logic 2022-01-19 12:13:49 -10:00
patroncards-errors.inc Bug 28576: Update the maximum size of an image. 2022-02-14 21:41:38 -10:00
patroncards-toolbar.inc
patronfields.inc Bug 30063: Sort by "Name" firstname,surname 2022-04-04 09:47:02 +02:00
patrons-admin-search.inc
permissions.inc Bug 19532: Database and installer stuff 2022-03-14 22:45:50 -10:00
popup-bottom.inc
pos-menu.inc
prefs-admin-search.inc
prefs-menu.inc
recalls.inc Bug 19532: (RM follow-up) Fix status finished renamed fulfilled 2022-03-14 22:45:52 -10:00
relatives-issues-table.inc
renew_results.inc
renew_strings.inc
reports-menu.inc
reports-toolbar.inc Bug 29680: Change markup to correct button radius 2022-01-05 13:49:09 -10:00
resort_form.inc
rotating-collections-toolbar.inc
search_indexes.inc
select2.inc
serials-menu.inc
serials-search.inc
serials-toolbar.inc
slip-print.inc
stockrotation-toolbar.inc
subscriptions-search.inc
subtype_limits.inc Bug 22605: (QA follow-up) Make Braille search option stick 2022-03-24 14:22:10 -10:00
subtypes_unimarc.inc
suggestions-add-search.inc
timepicker.inc
tools-item-action.inc
tools-menu.inc Bug 29821: Add interface for generating barcodes using svc/barcode 2022-04-08 15:49:17 +02:00
tools-nomatch-action.inc
tools-overlay-action.inc
transaction_types.inc
transfer_reasons.inc
validator-strings.inc
vendor-menu.inc
virtualshelves-toolbar.inc
waiting_holds.inc Bug 27868: Add expiration date to holds awaiting pickup 2022-01-28 11:09:07 -10:00
wysiwyg-systempreferences.inc
xslt-handler.inc
z3950-admin-search.inc
z3950_search.inc