GithubHelp home page GithubHelp logo

koha-plugin-visual-label-tool's Introduction

Koha-Suomi Visual Label tool plugin

Create labels with visual tool

Installing

Koha's Plugin System allows for you to add additional tools and reports to Koha that are specific to your library. Plugins are installed by uploading KPZ ( Koha Plugin Zip ) packages. A KPZ file is just a zip file containing the perl files, template files, and any other files necessary to make the plugin work.

The plugin system needs to be turned on by a system administrator.

To set up the Koha plugin system you must first make some changes to your install.

Change <enable_plugins>0<enable_plugins> to <enable_plugins>1</enable_plugins> in your koha-conf.xml file
Confirm that the path to <pluginsdir> exists, is correct, and is writable by the web server
Remember to allow access to plugin directory from Apache

<Directory <pluginsdir>>
    Options Indexes FollowSymLinks
    AllowOverride None
    Require all granted
</Directory>

Restart your webserver

Once set up is complete you will need to alter your UseKohaPlugins system preference. On the Tools page you will see the Tools Plugins and on the Reports page you will see the Reports Plugins.

Downloading

From the release page you can download the latest *.kpz file

Configure

Add items to printing queue with intranetuserjs

$(document).ready(function() {
    $(".print_label").after('<li><a href="#" onclick="setPrintQueue(event, $(this))">Tulostusjonoon</a></li>');
});

function setPrintQueue(e, element) {
    e.preventDefault();
    let searchParams = new URLSearchParams(element.parent().parent().find(".print_label a").attr("href"));
    $.ajax({
    url: "/api/v1/contrib/kohasuomi/labels/print/queue",
    type: "POST",
    dataType: "json",
    contentType: "application/json; charset=utf-8",
    data: JSON.stringify({ itemnumber: searchParams.get('number_list'), printed: 0 }),
    success: function (result) {
        alert("Nide lisätty jonoon!");
        },
        error: function (err) {
            alert("Lisäys epäonnistui!");
        }
    });
}

How create and modify labels

  1. Create and modify labels in configuration.

Screenshot1

Screenshot2

  1. Define labels name and dimensions

Screenshot3

  1. Define label's fields on fields tab. You can choose from the list or create a custom field where you can add fields with subfields. The custom fields can be combined with AND/OR (&&/||)

    Predefined fields that are not in the tables:

    1. items.barcode => Readable barcode
    2. items.barcodevalue => Only numbers
    3. items.branchname => Homebranch's description in branches table
    4. items.location => LOC description from authorised values
    5. items.signumYKL => YKL code from itemcallnumber
    6. items.signumLoc => Location from itemcallnumber
    7. items.signumHeading => Main heading from itemcallnumber
    8. marc.title => 245$a && 245$b && 245$p && 245$n || 111$a || 130$a
    9. marc.author => (942$i || 100$a) && (100$c || 110$a || 111$a)
    10. marc.unititle => 130$a && 130$l
    11. marc.description => 300$a && 300$e && 347$b
    12. marc.publication => 260$c || 264$c
    13. marc.volume => 262$a || 049$a

Screenshot4

  1. Define signum and fields

Screenshot5

  1. The fields will appear to label preview and when the postion is changed the field will move on the preview.

Screenshot6

  1. Print a test label sheet. The configurations have to be saved to get the newest changes. You can modify top and left margins of the print from topbar, those apply only in the printing view. For the test sheet the plugin fetches the first item from the database and fills fields.

Screenshot6

How to use

  1. Run the tool.
  2. Choose from created labels.
  3. Choose items from the lists available and click them to be printed or read barcodes to the input field. Screenshot7 If intranetusejs setting is in place (see above), you can add items to your own list from item's actions. Screenshot8
  4. Today acquired items are fetched with dateaccessioned value.
  5. The plugin keeps a list of printed labels so you can return to them and choose to be printed again.

koha-plugin-visual-label-tool's People

Contributors

ajkiv avatar atarnus avatar johannaraisa avatar lmstrand avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

koha-plugin-visual-label-tool's Issues

Kyyti: tarratulostuksen Itse tulostetut -listalla liikaa niteitä

Mikä vikana?

Eräällä paljon tarroja tulostavalle on tarratulostustyökalun Itse tulostetut -listaan kertynyt niin paljon niteitä, että selain hyytyi niitä ladatessa. Niiden poistaminen yksittäin on valtava työ, jos sen edes saa tehtyä, kun selainkin tosiaan hyytyi. Tästä heräsi kysymyksiä. Minne ne tallentuvat? Voiko niitä kertyä niin paljon että alkavat viedä jo liikaa tilaa? Voiko niitä poistaa massana (joko työkaluun tehtävällä toiminnolla tai kehittäjän tekemänä poistona)?

Vastauksia Matrixissa:

  • Menevät tauluun: koha_plugin_fi_kohasuomi_visuallabeltool_print_queue
  • Kyytissä rivejä taulussa 113 194
  • Häviävät jonkin aikarajan perusteella Itse tulostetut -listasta

Tiedostokoko ei siis liene ongelma, mutta yksittäiselle käyttäjälle voi tulostettuja niteitä kertyä niin paljon, että selain ei sitä kestä. Mikähän on tarkka aikaraja? Olisikohan sitä syytä pienentää?

Mitä pitäisi tapahtua

Tarratulostustyökalun Itse tulostetut -listalle ei pitäisi kertyä niin paljon niteitä, ettei selain saisi niitä ladatuiksi.

Kuinka toistaa ongelma/asia

No response

Selain

No response

Jotain muuta?

No response

Tarrapohjalle kokoelma-tieto selkokielisenä (description)

Kehitysehdotukseni

Siirretty Redminestä tiketistä 3626, RedGrave 3626.

Saisiko tarrapohjalle laitettua kokoelma-tiedon (ccode) selkokielisenä (description)? Oulussa haluttaisiin lisätä kokoelma-tieto tarralle, mutta sinne saa tällä hetkellä vain kokoelmakoodin tunnuksen, joka ei ole hyvä vaihtoehto.


Koha-Suomen asiantuntijaryhmä 30.10.2023: Toteutetaan niin, että tarralle saa edelleen myös kokoelmakoodin tunnuksen.

Jotain muuta?

No response

Vastaanotetuille kausijulkaisuniteille oma tulostusjono tarratulostustyökaluun

Kehitysehdotukseni

Tiedot Redmine-tiketistä https://tiketti.koha-suomi.fi/issues/3985
Luotu: 07/05/2019

Niteiden muokkaus näytöllä Lisää tulostuslistaan -valintamahdollisuus info ja/tai selkätarran tulostusta varten.


Anneli Österman
Asiantuntijaryhmän 15.3.2023 päätös: Toteutetaan jos mahdollista saman tyylisesti kuin Tulostusjonoon-linkki/nappula on lisätty niteiden muokkaukseen.

Jotain muuta?

No response

Niteiden lisääminen tulostusjonoon pluginin mukana tulevalla javascript-rimpsulla

/// Niteiden lisäys tarratulostusjonoon. Ilman näitä niteitä ei saa vietyä niteiden muokkauksesta ja perustiedot-näytöltä omaan tulostusjonoon. ///

Pluginin tarvitsemat kaksi rimpsua on nyt lisätty pluginiin itseensä siellä ylläpidettäviksi. Toiminta pitäisi testata.

Testaus:

Poista rimpsut " Niteiden lisäys tarratulostusjonoon" ja "Niteiden lisätys tarratulostustyökaluun perustiedot-näytöltä" intranetuserJS-asetuksesta.

Tarkista, että tarratulostusjonoon lisääminen onnistuu edelleen molemmista paikoista.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.