Koha/koha-tmpl/intranet-tmpl/prog/en/modules/serials/subscription-renew.tt
Owen Leonard 068d0c43c1
Bug 33925: Improve translation of title tags: Serials
This patch updates serials templates so that title tags can be more
easily translated. Some templates have been updated for consistency as
well: Harmonizing page title, breaddrumb navigation, and page headers;
Adding "page-section" <div> where it was lacking.

To test, apply the patch and confirm that the following pages have the
correct title tags:

- Serials home
  - Serials search results
    - Subscription details
      - Subscription edit
        - Search for vendor
        - Search for bibliographic record
      - Subscription renew
      - Serial collection
      - Create and modify routing list
        - Preview routing list
          - View routing slip
      - Claims
      - Check expiration
      - With a subscription which has manual history enabled, click the
        "Edit history" link under the "Planning" tab.
     - Select multiple serial search results and batch edit
  - New subscription
  - Manage frequencies: Create and edit
  - Manage numbering patterns: Create and edit

Signed-off-by: Loïc Vassaux-Artur <loic.vassaux-artur@outlook.fr>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
2024-09-02 12:13:45 +02:00

138 lines
5 KiB
Text

[% USE raw %]
[% USE Koha %]
[% USE Branches %]
[% PROCESS 'i18n.inc' %]
[% SET footerjs = 1 %]
[% INCLUDE 'doc-head-open.inc' %]
<title>[% FILTER collapse %]
[% IF subscription %]
[% t("Renew subscription") | html %] &rsaquo;
[% subscription.bibliotitle | html %] &rsaquo;
[% ELSE %]
[% t("Renew subscriptions") | html %] &rsaquo;
[% END %]
[% t("Serials") | html %] &rsaquo;
[% t("Koha") | html %]
[% END %]</title>
[% INCLUDE 'doc-head-close.inc' %]
</head>
<body id="ser_subscription-renew" class="ser">
<div class="container-fluid">
<h1>Serials subscription renew</h1>
[% INCLUDE 'blocking_errors.inc' %]
[% IF op == 'cud-renew' OR op =='cud-multi_renew' %]
[% IF op == 'cud-renew' %]
<span>Subscription renewed.<span>
[% ELSE %]
<span>Subscriptions renewed.<span>
[% END %]
<nav class="navbar navbar-default fixed-bottom">
<div class="container-fluid">
<fieldset class="action">
<button type="button" class="btn btn-default close_window">Close window</button>
</fieldset>
</div>
</nav>
[% ELSIF op == 'multi_renew' %]
<form name="f" action="/cgi-bin/koha/serials/subscription-renew.pl" method="post">
[% INCLUDE 'csrf-token.inc' %]
<input type="hidden" name="op" value="cud-multi_renew" />
Subscription renewal for:
<ul>
[% FOR subscription IN subscriptions %]
<li>
<input type="hidden" name="subscriptionid" value="[% subscription.subscriptionid | html %]" />
[% subscription.bibliotitle | html %]
</li>
[% END %]
</ul>
<fieldset class="action"><input type="submit" class="btn btn-primary" value="Submit" /></fieldset>
</form>
[% ELSIF op == 'renew' %]
<form name="f" action="/cgi-bin/koha/serials/subscription-renew.pl" method="post">
[% INCLUDE 'csrf-token.inc' %]
<input type="hidden" name="op" value="cud-renew" />
<input type="hidden" name="subscriptionid" value="[% subscription.subscriptionid | html %]" />
<fieldset class="rows"><legend>Subscription renewal for [% subscription.bibliotitle | html %]</legend>
<ol>
<li>
<label for="startdate">Start date: </label>
<input type="text" size="10" id="startdate" name="startdate" value="[% startdate | html %]" class="flatpickr"/>
<div class="hint">[% INCLUDE 'date-format.inc' %]</div>
</li>
<li>
<label>Subscription length:</label>
<select name="subtype" id="subtype">
[% FOREACH st IN [['numberlength', 'issues'], ['weeklength', 'weeks'], ['monthlength', 'months']] %]
[% SET subtype = st.0 %]
[% SET value = st.1 %]
[% IF subscription.$subtype %]
<option value="[% value | html %]" selected="selected">
[% ELSE %]
<option value="[% value | html %]">
[% END %]
[% SWITCH subtype %]
[% CASE 'numberlength' %]<span>issues</span>
[% CASE 'weeklength' %]<span>weeks</span>
[% CASE 'monthlength' %]<span>months</span>
[% END %]
</option>
[% END %]
</select>
<input type="text" name="sublength" id="sublength" size="3" value="[% subscription.numberlength || subscription.weeklength || subscription.monthlength | html %]" />(enter amount in numerals)
<input type="hidden" name="issuelengthcount">
</li>
[% IF Koha.Preference('RenewSerialAddsSuggestion') %]
<li>
<label for="branchcode">Library:</label>
<select name="branchcode" id="branchcode" style="width: 20em;">
[% UNLESS ( Independentbranches ) %]
<option value="">None</option>
[% END %]
[% IF CAN_user_serials_superserials %]
[% PROCESS options_for_libraries libraries => Branches.all(selected => subscription.branchcode) %]
[% END %]
</select> (select a library)
</li>
<li>
<label for="note">Note for the librarian that will manage your renewal request: </label>
<textarea name="note" id="note" rows="5" cols="50"></textarea>
</li>
[% END %]
</ol>
</fieldset>
<nav class="navbar navbar-default fixed-bottom">
<div class="container-fluid">
<fieldset class="action">
<input type="submit" class="btn btn-primary" value="Submit" />
<button type="button" class="btn btn-default close_window">Close window</button>
</fieldset>
</div>
</nav>
</form>
[% END %]
[% MACRO jsinclude BLOCK %]
[% INCLUDE 'calendar.inc' %]
<script>
$(document).ready(function(){
$(".close").on("click", function(e){
e.preventDefault();
window.opener.location.reload(false);
self.close();
});
});
</script>
[% END %]
[% INCLUDE 'intranet-bottom.inc' popup_window=1 %]