From 3f621421f47941daa79de01fcab24cc70e3bdeaf Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Tue, 29 Nov 2022 16:56:02 +0000 Subject: [PATCH] Bug 32300: Add page-section to cataloguing plugins (cat) This patch adds a "page-section" container div around the main section of cataloging plugins which lack it. The patch also adds a "btn btn-primary" buttons. This patch contains indentation changes, so please ignore whitespace when looking at the diff. These changes are simple enough that checking the diff is probably enough, but if you want to test a plugin in action, you go to Administration -> MARC bibliographic framework. - Choose Actions -> MARC structure on the framework you want to modify - Choose Actions -> Edit subfields on the tag you want to modify - Select the tab for the subfield you want to change. - In the "Other options" section near the bottom, use the "Plugin" dropdown to select the plugin you want to associate with that subfield. - In the basic MARC editor the subfield you updated should now have an icon next to it for triggering the plugin. Clicking it should trigger a popup window which shows the updated template. For plugins with "authorities" in the name, configure the Authorities structure under Administration -> Authority types. Signed-off-by: Lucas Gass --- .../value_builder/marc21_field_006.tt | 45 +- .../value_builder/marc21_field_007.tt | 3894 +++++++++-------- .../value_builder/marc21_field_008.tt | 43 +- .../marc21_field_008_authorities.tt | 1408 +++--- .../value_builder/marc21_leader.tt | 703 +-- .../marc21_leader_authorities.tt | 223 +- .../value_builder/marc21_linking_section.tt | 209 +- .../value_builder/unimarc_field_100.tt | 1362 +++--- .../unimarc_field_100_authorities.tt | 692 +-- .../value_builder/unimarc_field_105.tt | 2178 ++++----- .../value_builder/unimarc_field_106.tt | 160 +- .../value_builder/unimarc_field_110.tt | 1278 +++--- .../value_builder/unimarc_field_115a.tt | 2374 +++++----- .../value_builder/unimarc_field_115b.tt | 1266 +++--- .../value_builder/unimarc_field_116.tt | 3160 ++++++------- .../value_builder/unimarc_field_117.tt | 1610 +++---- .../value_builder/unimarc_field_120.tt | 2232 +++++----- .../value_builder/unimarc_field_121a.tt | 660 +-- .../value_builder/unimarc_field_121b.tt | 428 +- .../value_builder/unimarc_field_122.tt | 66 +- .../value_builder/unimarc_field_123a.tt | 56 +- .../value_builder/unimarc_field_123d.tt | 84 +- .../value_builder/unimarc_field_123e.tt | 86 +- .../value_builder/unimarc_field_123f.tt | 86 +- .../value_builder/unimarc_field_123g.tt | 86 +- .../value_builder/unimarc_field_123i_j.tt | 64 +- .../value_builder/unimarc_field_124a.tt | 56 +- .../value_builder/unimarc_field_124b.tt | 138 +- .../value_builder/unimarc_field_124c.tt | 246 +- .../value_builder/unimarc_field_124d.tt | 56 +- .../value_builder/unimarc_field_124e.tt | 56 +- .../value_builder/unimarc_field_124f.tt | 206 +- .../value_builder/unimarc_field_124g.tt | 126 +- .../value_builder/unimarc_field_125a.tt | 258 +- .../value_builder/unimarc_field_125b.tt | 246 +- .../value_builder/unimarc_field_126a.tt | 2046 ++++----- .../value_builder/unimarc_field_126b.tt | 330 +- .../value_builder/unimarc_field_127.tt | 42 +- .../value_builder/unimarc_field_128a.tt | 727 +-- .../value_builder/unimarc_field_128b.tt | 917 ++-- .../value_builder/unimarc_field_128c.tt | 906 ++-- .../value_builder/unimarc_field_130.tt | 640 +-- .../value_builder/unimarc_field_135a.tt | 108 +- .../value_builder/unimarc_field_140.tt | 3419 +++++++-------- .../value_builder/unimarc_field_141.tt | 708 +-- .../value_builder/unimarc_field_146a.tt | 42 +- .../value_builder/unimarc_field_146b.tt | 168 +- .../value_builder/unimarc_field_146c.tt | 168 +- .../value_builder/unimarc_field_146d.tt | 128 +- .../value_builder/unimarc_field_146e.tt | 168 +- .../value_builder/unimarc_field_146f.tt | 168 +- .../value_builder/unimarc_field_146h.tt | 58 +- .../value_builder/unimarc_field_146i.tt | 58 +- .../value_builder/unimarc_field_181-2.tt | 77 +- .../value_builder/unimarc_field_181a.tt | 247 +- .../value_builder/unimarc_field_181b.tt | 464 +- .../value_builder/unimarc_field_181c.tt | 332 +- .../value_builder/unimarc_field_182-2.tt | 76 +- .../value_builder/unimarc_field_182a.tt | 151 +- .../value_builder/unimarc_field_182c.tt | 150 +- .../value_builder/unimarc_field_183-2.tt | 76 +- .../value_builder/unimarc_field_183a.tt | 749 ++-- .../value_builder/unimarc_field_225a.tt | 40 +- .../value_builder/unimarc_field_283-2.tt | 76 +- .../value_builder/unimarc_field_283a.tt | 748 ++-- .../value_builder/unimarc_field_325h.tt | 66 +- .../value_builder/unimarc_field_325j.tt | 244 +- .../value_builder/unimarc_field_4XX.tt | 244 +- .../value_builder/unimarc_field_686a.tt | 24 +- .../value_builder/unimarc_field_700-4.tt | 84 +- .../value_builder/unimarc_leader.tt | 571 +-- .../unimarc_leader_authorities.tt | 368 +- 72 files changed, 20783 insertions(+), 20646 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/value_builder/marc21_field_006.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/value_builder/marc21_field_006.tt index 4f4df48923a..d7fdcf5bee5 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/value_builder/marc21_field_006.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/value_builder/marc21_field_006.tt @@ -9,28 +9,31 @@

006 Fixed-length data elements--Additional material characteristics--General information

- - - -
-

"[% result | html %]"

+
+ + + +
-
- - - - - - - - -
- -
-
Cancel
-
+

"[% result | html %]"

+ +
+ + + + + + + + +
+ +
+
Cancel
+
+
[% MACRO jsinclude BLOCK %] [% Asset.js("js/xmlControlfield.js") | $raw %] diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/value_builder/marc21_field_007.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/value_builder/marc21_field_007.tt index a266be40a3f..33c91fcf1eb 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/value_builder/marc21_field_007.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/value_builder/marc21_field_007.tt @@ -5,93 +5,97 @@ +

007 Physical description fixed field--General information

-
- -

-

-
-
+
+ + +

+

+ +
+
-
Cancel
- +
Cancel
+ +
[% MACRO jsinclude BLOCK %] [% END %] diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/value_builder/marc21_leader.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/value_builder/marc21_leader.tt index fd1f35666b4..ced8f846afa 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/value_builder/marc21_leader.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/value_builder/marc21_leader.tt @@ -6,364 +6,367 @@ -
- -

000 - Leader

- - - - - - - - - - - - - - - - - - - - - - +
+
0-4 Record size(auto-filled)
- +

000 - Leader

- [% IF ( f5c ) %] - - [% ELSE %] - - [% END %] - [% IF ( f5d ) %] - - [% ELSE %] - - [% END %] - [% IF ( f5n ) %] - - [% ELSE %] - - [% END %] - [% IF ( f5p ) %] - - [% ELSE %] - - [% END %] - -
- -
- -
- -
+ + + + + + + - - - - - - - - - - - + [% IF ( f5c ) %] + + [% ELSE %] + + [% END %] + [% IF ( f5d ) %] + + [% ELSE %] + + [% END %] + [% IF ( f5n ) %] + + [% ELSE %] + + [% END %] + [% IF ( f5p ) %] + + [% ELSE %] + + [% END %] + + + + + + + + + + + - - - - - - - - - - - - - + + + + -
0-4 Record size(auto-filled)
+
9- Character coding schemea - UCS/Unicode (auto-filled)
10-16 indicator/subfields/size(auto-filled)
- -
+ +
+ +
- -
- -
20-24 entry map & lengths(auto-filled)
+ +
-
Cancel
-
+ + 9- Character coding scheme + a - UCS/Unicode (auto-filled) + + + 10-16 indicator/subfields/size + (auto-filled) + + + + + + + + + + + + + + + + + + + + + + + 20-24 entry map & lengths + (auto-filled) + + + +
Cancel
+ + [% MACRO jsinclude BLOCK %] [% END %] diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/value_builder/unimarc_field_106.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/value_builder/unimarc_field_106.tt index dc613adea71..4033dd4f10b 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/value_builder/unimarc_field_106.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/value_builder/unimarc_field_106.tt @@ -5,86 +5,88 @@ -

UNIMARC field 106 builder

-
- - - - + +
- + + + - -
+ -
-
Cancel
- + [% IF ( f1r ) %] + + [% ELSE %] + + [% END %] + [% IF ( f1b ) %] + + [% ELSE %] + + [% END %] + [% IF ( f1e ) %] + + [% ELSE %] + + [% END %] + + [% IF ( f1f ) %] + + [% ELSE %] + + + [% END %] + [% IF ( f1g ) %] + + [% ELSE %] + + + [% END %] + [% IF ( f1h ) %] + + [% ELSE %] + + + [% END %] + [% IF ( f1i ) %] + + [% ELSE %] + + + [% END %] + [% IF ( f1j ) %] + + [% ELSE %] + + + [% END %] + [% IF ( f1s ) %] + + [% ELSE %] + + + [% END %] + [% IF ( f1t ) %] + + [% ELSE %] + + + [% END %] + [% IF ( f1z ) %] + + [% ELSE %] + + + [% END %] + +
+
Cancel
+ + [% MACRO jsinclude BLOCK %] -[% INCLUDE 'popup-bottom.inc' %] \ No newline at end of file +[% INCLUDE 'popup-bottom.inc' %] diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/value_builder/unimarc_field_225a.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/value_builder/unimarc_field_225a.tt index 8365b2a186b..2aad976d00d 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/value_builder/unimarc_field_225a.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/value_builder/unimarc_field_225a.tt @@ -5,26 +5,26 @@ -

UNIMARC field 225a builder

-
-
-

Collection

-

- -

- OR new collection: -
- -
-
+

UNIMARC field 225a builder

+
+
+

Collection

+

+ +

+ OR new collection: +
+ +
+
[% MACRO jsinclude BLOCK %] diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/value_builder/unimarc_field_283-2.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/value_builder/unimarc_field_283-2.tt index f7c74a1e852..4037029cfa0 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/value_builder/unimarc_field_283-2.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/value_builder/unimarc_field_283-2.tt @@ -5,43 +5,45 @@ -

UNIMARC field 283-2 builder

- -
- - - - - -
- -
-

Cancel

-
+

UNIMARC field 283-2 builder

+ +
+
+ + + + + +
+ +
+

Cancel

+
+
\ No newline at end of file + diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/value_builder/unimarc_field_325j.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/value_builder/unimarc_field_325j.tt index c8bb237e44a..984a9bdbb40 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/value_builder/unimarc_field_325j.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/value_builder/unimarc_field_325j.tt @@ -5,127 +5,129 @@ -

UNIMARC field 325j builder

- -
- - - - - - - - - - - - - - - - - -
- -
- -
- -
- -
-

Cancel

-
+

UNIMARC field 325j builder

+ +
+
+ + + + + + + + + + + + + + + + + +
+ +
+ +
+ +
+ +
+

Cancel

+
+
[% INCLUDE 'popup-bottom.inc' %] -- 2.30.2