Bug 29311: (follow-up) Add id to span elements

The input fields in the form have ids, these are useful
for styling, but also for the Selenium tests. This patch
adds the ids from the former inputs to the now spans.

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
(cherry picked from commit 2fc06098d2)
Signed-off-by: Jacob O'Mara <jacobomara901@gmail.com>
(cherry picked from commit f88186b345)
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
This commit is contained in:
Katrin Fischer 2023-04-10 16:08:32 +00:00 committed by Lucas Gass
parent 360e48a95a
commit d453bb9c5d
No known key found for this signature in database
GPG Key ID: 693EE0FF4CD08D78
1 changed files with 7 additions and 7 deletions

View File

@ -86,7 +86,7 @@
<li>
[% IF biblionumber %]
<label>Title:</label>
<a href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% biblionumber | uri %]">[% title | html %]</a>
<a id="title" href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% biblionumber | uri %]">[% title | html %]</a>
[% ELSIF ( title_required ) %]
<label for="title" class="required">Title:</label>
<input type="text" id="title" name="title" class="span6" maxlength="255" value="[% title | html %]" required="required" />
@ -100,7 +100,7 @@
<li>
[% IF biblionumber %]
<label>Author:</label>
<span>[% author | html %]</span>
<span id="author">[% author | html %]</span>
[% ELSIF ( author_required ) %]
<label for="author" class="required">Author:</label>
<input type="text" id="author" name="author" class="span6" maxlength="80" value="[% author | html %]" required="required" />
@ -116,7 +116,7 @@
<div title="Copyright or publication year, for example: 2022">
[% IF biblionumber %]
<label>Publication year:</label>
<span>[% copyrightdate | html %]</span>
<span id="copyrightdate">[% copyrightdate | html %]</span>
[% ELSIF ( copyrightdate_required ) %]
<label for="copyrightdate" class="required">Publication year:</label>
<input type="text" id="copyrightdate" name="copyrightdate" pattern="[12]\d{3}" size="10" maxlength="4" value="[% copyrightdate | html %]" required="required" />
@ -134,7 +134,7 @@
<li>
[% IF biblionumber %]
<label>Standard number (ISBN, ISSN or other):</label>
<span>[% isbn | html %]</span>
<span id="isbn">[% isbn | html %]</span>
[% ELSIF ( isbn_required ) %]
<label for="isbn" class="required">Standard number (ISBN, ISSN or other):</label>
<input type="text" id="isbn" name="isbn" maxlength="80" value="[% isbn | html %]" required="required" />
@ -149,7 +149,7 @@
<li>
[% IF biblionumber %]
<label>Publisher:</label>
<span>[% publishercode | html %]</span>
<span id="publishercode">[% publishercode | html %]</span>
[% ELSIF ( publishercode_required ) %]
<label for="publishercode" class="required">Publisher:</label>
<input type="text" id="publishercode" name="publishercode" class="span6" maxlength="80" value="[% publishercode | html %]" required="required" />
@ -164,7 +164,7 @@
<li>
[% IF biblionumber %]
<label for="collectiontitle" class="required">Collection title:</label>
<span>[% collectiontitle | html %]</span>
<span id="collectiontitle">[% collectiontitle | html %]</span>
[% ELSIF ( collectiontitle_required ) %]
<label for="collectiontitle" class="required">Collection title:</label>
<input type="text" id="collectiontitle" name="collectiontitle" class="span6" maxlength="80" value="[% collectiontitle | html %]" required="required" />
@ -179,7 +179,7 @@
<li>
[% IF biblionumber %]
<label for="place" class="required">Publication place:</label>
<span>[% place | html %]</span>
<span id="place">[% place | html %]</span>
[% ELSIF ( place_required ) %]
<label for="place" class="required">Publication place:</label>
<input type="text" id="place" name="place" required="required" maxlength="80" value="[% place | html %]" />