Bug 32628: Add 'page-section' to various serials pages
authorOwen Leonard <oleonard@myacpl.org>
Fri, 13 Jan 2023 14:07:41 +0000 (14:07 +0000)
committerMartin Renvoize <martin.renvoize@ptfs-europe.com>
Tue, 17 Jan 2023 09:25:46 +0000 (09:25 +0000)
This patch adds a "page-section" container div around the main section
of serials pages which lack it.

This patch contains indentation changes, so please ignore whitespace
when looking at the diff.

To test you must have at least one subscription in your system. Apply
the patch and view the following pages to confirm that the main content
is contained in a white box:

- Subscription batch edit:
  - Go to Serials -> Search subscriptions -> Results
  - Check the box next to one or more search results and click "Edit
    selected serials."
- Subscription frequencies:
  - Serials -> Manage frequencies
- View subscription alerts:
  - Log in to the OPAC and search for a subscription.
    - On the subscription detail page click the "Subscribe to to email
      notification on new issues."
  - In the staff interface, locate that subscription and view its
    details.
    - Click the "subscribers" link under "Patron notification."

Signed-off-by: Andrew Fuerste-Henry <andrewfh@dubcolib.org>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
koha-tmpl/intranet-tmpl/prog/en/modules/serials/subscription-batchedit.tt
koha-tmpl/intranet-tmpl/prog/en/modules/serials/subscription-frequencies.tt
koha-tmpl/intranet-tmpl/prog/en/modules/serials/viewalerts.tt

index ba122bd..6b38351 100644 (file)
@@ -37,7 +37,7 @@
 
                     <h1>Subscription batch edit</h1>
 
-                    <div>
+                    <div class="page-section">
                         <p>You are about to edit the following subscriptions:</p>
                         <table>
                             <thead>
index 0272ef3..5cfe13b 100644 (file)
         [% END %]
 
         [% IF (frequencies_loop.size) %]
-          <table id="frequenciest">
-            <thead>
-              <tr>
-                <th>Description</th>
-                <th>Unit</th>
-                <th>Issues per unit</th>
-                <th>Units per issue</th>
-                <th>Display order</th>
-                <th class="noExport">Actions</th>
-              </tr>
-            </thead>
-            <tbody>
-              [% FOREACH frequency IN frequencies_loop %]
-                <tr>
-                  <td>[% frequency.description | html %]</td>
-                  <td>[% PROCESS translate_frequnit frequnit=frequency.unit %]</td>
-                  <td>[% frequency.issuesperunit | html %]</td>
-                  <td>[% frequency.unitsperissue | html %]</td>
-                  <td>[% frequency.displayorder | html %]</td>
-                  <td class="actions">
-                    <a class="btn btn-default btn-xs" href="/cgi-bin/koha/serials/subscription-frequencies.pl?op=modify&frequencyid=[% frequency.id | html %]"><i class="fa fa-pencil"></i> Edit</a>
-                    <a class="delete_frequency btn btn-default btn-xs" href="/cgi-bin/koha/serials/subscription-frequencies.pl?op=del&frequencyid=[% frequency.id | html %]"><i class="fa fa-trash"></i> Delete</a>
-                  </td>
-                </tr>
-              [% END %]
-            </tbody>
-          </table>
+            <div class="page-section">
+                <table id="frequenciest">
+                    <thead>
+                        <tr>
+                            <th>Description</th>
+                            <th>Unit</th>
+                            <th>Issues per unit</th>
+                            <th>Units per issue</th>
+                            <th>Display order</th>
+                            <th class="noExport">Actions</th>
+                        </tr>
+                    </thead>
+                    <tbody>
+                        [% FOREACH frequency IN frequencies_loop %]
+                            <tr>
+                                <td>[% frequency.description | html %]</td>
+                                <td>[% PROCESS translate_frequnit frequnit=frequency.unit %]</td>
+                                <td>[% frequency.issuesperunit | html %]</td>
+                                <td>[% frequency.unitsperissue | html %]</td>
+                                <td>[% frequency.displayorder | html %]</td>
+                                <td class="actions">
+                                    <a class="btn btn-default btn-xs" href="/cgi-bin/koha/serials/subscription-frequencies.pl?op=modify&frequencyid=[% frequency.id | html %]"><i class="fa fa-pencil"></i> Edit</a>
+                                    <a class="delete_frequency btn btn-default btn-xs" href="/cgi-bin/koha/serials/subscription-frequencies.pl?op=del&frequencyid=[% frequency.id | html %]"><i class="fa fa-trash"></i> Delete</a>
+                                </td>
+                            </tr>
+                        [% END %]
+                    </tbody>
+                </table>
+            </div> <!-- /.page-section -->
         [% ELSE %]
-          <p>There is no defined frequency.</p>
+            <p>There is no defined frequency.</p>
         [% END %]
       [% END %]
 
index ddf38a7..e8e8c1f 100644 (file)
         <div class="col-sm-10 col-sm-push-2">
             <main>
 
-<h1>Alert subscribers for <em>[% bibliotitle | html %]</em></h1>
+                <h1>Alert subscribers for <em>[% bibliotitle | html %]</em></h1>
+                <p>
+                    <span class="label">Subscription:</span> <a href="subscription-detail.pl?subscriptionid=[% subscriptionid | uri %]">[% bibliotitle | html %] #[% subscriptionid | html %]</a>
+                </p>
 
-<p>
-    <span class="label">Subscription:</span> <a href="subscription-detail.pl?subscriptionid=[% subscriptionid | uri %]">[% bibliotitle | html %] #[% subscriptionid | html %]</a>
-</p>
+                <div class="page-section">
 
-[% IF subscribers.count %]
-    <table>
-        <tr>
-            <th>Patron name</th>
-        </tr>
-        [% FOREACH subscriber IN subscribers %]
-        <tr>
-            <td>
-                <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% subscriber.borrowernumber | uri %]">[% INCLUDE 'patron-title.inc' patron=subscriber %]</a>
-            </td>
-        </tr>
-        [% END %]
-    </table>
-[% ELSE %]
-    <p>There are no patrons subscribed to this subscription serial alert.</p>
-[% END %]
+                    [% IF subscribers.count %]
+                        <table>
+                            <tr>
+                                <th>Patron name</th>
+                            </tr>
+                            [% FOREACH subscriber IN subscribers %]
+                            <tr>
+                                <td>
+                                    <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% subscriber.borrowernumber | uri %]">[% INCLUDE 'patron-title.inc' patron=subscriber %]</a>
+                                </td>
+                            </tr>
+                            [% END %]
+                        </table>
+                    [% ELSE %]
+                        <p>There are no patrons subscribed to this subscription serial alert.</p>
+                    [% END %]
+                </div> <!-- /.page-section -->
 
             </main>
         </div> <!-- /.col-sm-10.col-sm-push-2 -->