Bugzilla – Attachment 181931 Details for
Bug 39825
Add a direct link to items tag in MARC bibliographic framework page
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 39825: Add a direct link to items tag in MARC bibliographic framework page
Bug-39825-Add-a-direct-link-to-items-tag-in-MARC-b.patch (text/plain), 3.07 KB, created by
Roman Dolny
on 2025-05-05 17:03:24 UTC
(
hide
)
Description:
Bug 39825: Add a direct link to items tag in MARC bibliographic framework page
Filename:
MIME Type:
Creator:
Roman Dolny
Created:
2025-05-05 17:03:24 UTC
Size:
3.07 KB
patch
obsolete
>From dfced3d56c62775f948bbf13b54f8d9981eeb8ba Mon Sep 17 00:00:00 2001 >From: Fridolin Somers <fridolin.somers@biblibre.com> >Date: Mon, 5 May 2025 10:12:30 +0200 >Subject: [PATCH] Bug 39825: Add a direct link to items tag in MARC > bibliographic framework page > >In MARC bibliographic framework page, add a direct link to items tag (952 in MARC21 and 995 in UNIMARC) can be very useful. >Currently one needs to search for the tag, then click on actions, then click on "View subfields". > >Test plan : >1) Go to Administration > MARC bibliographic framework >2) View any framework MARC structure >3) You see in tools bar new button "View items tag (952)" >4) Click on it, you see this tag subfields > >Signed-off-by: Roman Dolny <roman.dolny@jezuici.pl> >--- > admin/marctagstructure.pl | 10 +++++++--- > .../prog/en/modules/admin/marctagstructure.tt | 5 +++++ > 2 files changed, 12 insertions(+), 3 deletions(-) > >diff --git a/admin/marctagstructure.pl b/admin/marctagstructure.pl >index 8e3301e7a6..5bc90cab28 100755 >--- a/admin/marctagstructure.pl >+++ b/admin/marctagstructure.pl >@@ -18,11 +18,12 @@ > # along with Koha; if not, see <http://www.gnu.org/licenses>. > > use Modern::Perl; >-use CGI qw ( -utf8 ); >-use C4::Auth qw( get_template_and_user ); >+use CGI qw ( -utf8 ); >+ >+use C4::Auth qw( get_template_and_user ); >+use C4::Biblio qw( GetMarcFromKohaField ); > use C4::Context; > use C4::Output qw( output_html_with_http_headers ); >-use C4::Context; > > use Koha::Caches; > use Koha::AuthorisedValues; >@@ -230,6 +231,9 @@ if ( $op eq 'add_form' ) { > } > } > >+ my ( $items_tag, $items_subtag ) = GetMarcFromKohaField('items.itemnumber'); >+ $template->param( items_tag => $items_tag ); >+ > # here, $op can be unset or set to "cud-framework_create_confirm". > if ( $searchfield ne '' ) { > $template->param( searchfield => $searchfield ); >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/marctagstructure.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/marctagstructure.tt >index ecb182d342..395ac42221 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/marctagstructure.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/marctagstructure.tt >@@ -95,6 +95,11 @@ > <div id="toolbar" class="btn-toolbar"> > <a class="btn btn-default" id="addtag" href="/cgi-bin/koha/admin/marctagstructure.pl?op=add_form&frameworkcode=[% framework.frameworkcode | uri %]"><i class="fa fa-plus"></i> New tag</a> > <a class="btn btn-default" href="/cgi-bin/koha/admin/biblio_framework.pl?op=add_form&frameworkcode=[% loo.frameworkcode | uri %]"><i class="fa-solid fa-pencil" aria-hidden="true"></i> Edit framework</a> >+ [% IF items_tag %] >+ <a class="btn btn-default" id="itemstag" href="/cgi-bin/koha/admin/marc_subfields_structure.pl?tagfield=[% items_tag | uri %]&frameworkcode=[% framework.frameworkcode | uri %]" >+ ><i class="fa-solid fa-eye" aria-hidden="true"></i> View items tag ([% items_tag | html %])</a >+ > >+ [% END %] > </div> > [% END %] > >-- >2.39.5
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 39825
:
181895
|
181896
| 181931