From 663e6053b0bbab6630d8b242d500d5e8b4f77b28 Mon Sep 17 00:00:00 2001 From: Marcel de Rooy Date: Thu, 21 Sep 2023 08:03:19 +0200 Subject: [PATCH] Bug 34860: New framework plugin for ISBN/ISSN Content-Type: text/plain; charset=utf-8 A Koha patch should still be submitted. The REST API does not yet support an index search like the one in isbn_count. --- cataloguing/value_builder/rma_isbn.pl | 51 +++++++++++++++++++ cataloguing/value_builder/rma_issn.pl | 50 ++++++++++++++++++ .../prog/en/modules/cataloguing/addbiblio.tt | 2 + koha-tmpl/intranet-tmpl/prog/js/isbn.js | 47 +++++++++++++++++ koha-tmpl/intranet-tmpl/prog/js/issn.js | 35 +++++++++++++ svc/isbn_count | 48 +++++++++++++++++ svc/issn_count | 31 +++++++++++ 7 files changed, 264 insertions(+) create mode 100755 cataloguing/value_builder/rma_isbn.pl create mode 100755 cataloguing/value_builder/rma_issn.pl create mode 100644 koha-tmpl/intranet-tmpl/prog/js/isbn.js create mode 100644 koha-tmpl/intranet-tmpl/prog/js/issn.js create mode 100755 svc/isbn_count create mode 100755 svc/issn_count diff --git a/cataloguing/value_builder/rma_isbn.pl b/cataloguing/value_builder/rma_isbn.pl new file mode 100755 index 0000000000..0b7163dacd --- /dev/null +++ b/cataloguing/value_builder/rma_isbn.pl @@ -0,0 +1,51 @@ +#!/usr/bin/perl + +use Modern::Perl; +use CGI; + +my $builder = sub { + my ( $params ) = @_; + my $field_number = $params->{id}; + + my $res=" + +"; +return $res; +}; + +return { builder => $builder }; diff --git a/cataloguing/value_builder/rma_issn.pl b/cataloguing/value_builder/rma_issn.pl new file mode 100755 index 0000000000..dbca24944a --- /dev/null +++ b/cataloguing/value_builder/rma_issn.pl @@ -0,0 +1,50 @@ +#!/usr/bin/perl + +use Modern::Perl; +use CGI; + +my $builder = sub { + my ( $params ) = @_; + my $field_number = $params->{id}; + + my $res=" + +"; +return $res; +}; + +return { builder => $builder }; diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/addbiblio.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/addbiblio.tt index 787d19cb56..56ba3d7a98 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/addbiblio.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/addbiblio.tt @@ -27,6 +27,8 @@ [% Asset.js("js/cataloging.js") | $raw %] [% Asset.js("js/browser.js") | $raw %] +[% Asset.js("js/isbn.js") | $raw %] +[% Asset.js("js/issn.js") | $raw %]