From eac724b9fc0224e0caf4280fc2eed5d4a5281046 Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Wed, 9 Nov 2022 18:19:51 +0000 Subject: [PATCH] Bug 31928: Add page-section to callnumber browser value builder (cat) This patch adds a page-section div around the search results shown by the call number browser plugin in Cataloging. The patch also restructures the search form so that the layout is correct. To test you must have an item subfield linked to the call number browser plugin: - Go to MARC frameworks -> Default MARC framework -> MARC structure. - Locate the 952 tag and click Actions -> Edit subfields. - Open the "o" tab and in the last section, "Other options," choose "cn_browser.pl" for the plugin field. Open an item record for editing: - Go to Cataloging and search for a bibliographic record. - Click Actions -> Add/Edit items for one of the results. - In the item edit form, the "o - Full call number" field should have a "..." link at the end. - Clicking it should trigger a popup window. - The search form at the top should be laid out correctly. - Perform a search which will return results. - The table of results should be contained within a white box. Signed-off-by: David Nind Signed-off-by: Katrin Fischer Signed-off-by: Tomas Cohen Arazi --- .../cataloguing/value_builder/cn_browser.tt | 98 ++++++++++--------- 1 file changed, 53 insertions(+), 45 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/value_builder/cn_browser.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/value_builder/cn_browser.tt index dc239e2624..12364d9e6b 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/value_builder/cn_browser.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/value_builder/cn_browser.tt @@ -15,53 +15,61 @@

Call number browser

-
- - - - - -
- - +
+
    +
  1. + + + + +
  2. +
  3. + + +
  4. +
+
+ +
+
-
-
- - - - - - - - -[% FOREACH cn_loo IN cn_loop %] - - - - - - -[% END %] - -
Call numberTitleLibraryCollection
[% cn_loo.itemcallnumber | html %] - - [% cn_loo.title | html %] [% cn_loo.subtitle | html %] [% cn_loo.subtitle2 | html %] - [% IF ( cn_loo.author ) %] - by [% cn_loo.author | html %] - [% END %] - [% IF ( cn_loo.barcode ) %] ([% cn_loo.barcode | html %])[% END %] - - [% cn_loo.branchname | html %][% AuthorisedValues.GetByCode( 'CCODE', cn_loo.ccode ) | html %]
+
+ + + + + + + + + [% FOREACH cn_loo IN cn_loop %] + + + + + + + [% END %] + +
Call numberTitleLibraryCollection
[% cn_loo.itemcallnumber | html %] + + [% cn_loo.title | html %] [% cn_loo.subtitle | html %] [% cn_loo.subtitle2 | html %] + [% IF ( cn_loo.author ) %] + by [% cn_loo.author | html %] + [% END %] + [% IF ( cn_loo.barcode ) %] ([% cn_loo.barcode | html %])[% END %] + + [% cn_loo.branchname | html %][% AuthorisedValues.GetByCode( 'CCODE', cn_loo.ccode ) | html %]
+
[% INCLUDE 'intranet-bottom.inc' popup_window=1 %] -- 2.39.5