From d9ebdadd4d873e573d421b8670bd5e7ee2bdb9ef Mon Sep 17 00:00:00 2001 From: Lucas Gass Date: Wed, 25 Oct 2023 20:59:59 +0000 Subject: [PATCH] Bug 35157: Remove spans from patronfields.inc To test: 1. Run any page that contains the "Search patrons" search bar through an HTML validator and you will see a lot of: Stray start tag span. Stray end tag span. 2. Apply patch 3. Try step 1 again, no more errors from the HTML validator. 4. Make sure the patron searches still work when limiting by 'Search field'. --- .../prog/en/includes/patronfields.inc | 154 +++++++++--------- 1 file changed, 77 insertions(+), 77 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/patronfields.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/patronfields.inc index 777cc300bd9..f5c949bd9e8 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/includes/patronfields.inc +++ b/koha-tmpl/intranet-tmpl/prog/en/includes/patronfields.inc @@ -1,81 +1,81 @@ [%- BLOCK patron_fields -%] - [%- SWITCH name -%] - [%- CASE 'standard' -%]Standard - [%- CASE 'full_address' -%]Full address - [%- CASE 'all_emails' -%]All emails - [%- CASE 'all_phones' -%]All phones - [%- CASE 'borrowernumber' -%]Borrowernumber - [%- CASE 'cardnumber' -%]Card number - [%- CASE 'surname' -%]Surname - [%- CASE 'firstname' -%]First name - [%- CASE 'middle_name' -%]Middle name - [%- CASE 'title' -%]Salutation - [%- CASE 'othernames' -%]Other name - [%- CASE 'initials' -%]Initials - [%- CASE 'pronouns' -%]Pronouns - [%- CASE 'streetnumber' -%]Street number - [%- CASE 'streettype' -%]Street type - [%- CASE 'address' -%]Address - [%- CASE 'address2' -%]Address 2 - [%- CASE 'city' -%]City - [%- CASE 'state' -%]State - [%- CASE 'zipcode' -%]ZIP/Postal code - [%- CASE 'country' -%]Country - [%- CASE 'email' -%]Primary email - [%- CASE 'phone' -%]Primary phone - [%- CASE 'mobile' -%]Mobile phone - [%- CASE 'fax' -%]Fax - [%- CASE 'emailpro' -%]Secondary email - [%- CASE 'phonepro' -%]Secondary phone - [%- CASE 'B_streetnumber' -%]Alternate street number - [%- CASE 'B_streettype' -%]Alternate street type - [%- CASE 'B_address' -%]Alternate address - [%- CASE 'B_address2' -%]Alternate address line 2 - [%- CASE 'B_city' -%]Alternate city - [%- CASE 'B_state' -%]Alternate state - [%- CASE 'B_zipcode' -%]Alternate zip code - [%- CASE 'B_country' -%]Alternate country - [%- CASE 'B_email' -%]Alternate email - [%- CASE 'B_phone' -%]Alternate phone - [%- CASE 'dateofbirth' -%]Date of birth - [%- CASE 'branchcode' -%]Library (code) - [%- CASE 'categorycode' -%]Category (code) - [%- CASE 'dateenrolled' -%]Registration date - [%- CASE 'dateexpiry' -%]Expiry date - [%- CASE 'gonenoaddress' -%]Gone no address - [%- CASE 'lost' -%]Lost card - [%- CASE 'debarred' -%]Restricted - [%- CASE 'debarredcomment' -%]Restriction reason - [%- CASE 'contactname' -%]Guarantor surname - [%- CASE 'contactfirstname' -%]Guarantor firstname - [%- CASE 'contacttitle' -%]Guarantor title - [%- CASE 'guarantorid' -%]Guarantor ID - [%- CASE 'borrowernotes' -%]Circulation note - [%- CASE 'relationship' -%]Guarantor relationship - [%- CASE 'sex' -%]Gender - [%- CASE 'flags' -%]Permissions (code) - [%- CASE 'userid' -%]Username - [%- CASE 'opacnote' -%]OPAC note - [%- CASE 'contactnote' -%]Contact note - [%- CASE 'sort1' -%]Sort 1 - [%- CASE 'sort2' -%]Sort 2 - [%- CASE 'altcontactfirstname' -%]Alternate contact first name - [%- CASE 'altcontactsurname' -%]Alternate contact surname - [%- CASE 'altcontactaddress1' -%]Alternate contact address - [%- CASE 'altcontactaddress2' -%]Alternate contact address 2 - [%- CASE 'altcontactaddress3' -%]Alternate contact city - [%- CASE 'altcontactstate' -%]Alternate contact state - [%- CASE 'altcontactzipcode' -%]Alternate contact ZIP/postal code - [%- CASE 'altcontactcountry' -%]Alternate contact country - [%- CASE 'altcontactphone' -%]Alternate contact phone - [%- CASE 'smsalertnumber' -%]SMS alert number - [%- CASE 'sms_provider_id' -%]SMS provider - [%- CASE 'privacy' -%]Privacy (code) - [%- CASE 'privacy_guarantor_checkouts' -%]Guarantor can view checkouts - [%- CASE 'updated_on' -%]Last updated - [%- CASE 'lastseen' -%]Last seen - [%- CASE 'checkprevcheckout' -%]Check previous checkout - [%- CASE DEFAULT -%] + [%- SWITCH name -%] + [%- CASE 'standard' -%]Standard + [%- CASE 'full_address' -%]Full address + [%- CASE 'all_emails' -%]All emails + [%- CASE 'all_phones' -%]All phones + [%- CASE 'borrowernumber' -%]Borrowernumber + [%- CASE 'cardnumber' -%]Card number + [%- CASE 'surname' -%]Surname + [%- CASE 'firstname' -%]First name + [%- CASE 'middle_name' -%]Middle name + [%- CASE 'title' -%]Salutation + [%- CASE 'othernames' -%]Other name + [%- CASE 'initials' -%]Initials + [%- CASE 'pronouns' -%]Pronouns + [%- CASE 'streetnumber' -%]Street number + [%- CASE 'streettype' -%]Street type + [%- CASE 'address' -%]Address + [%- CASE 'address2' -%]Address 2 + [%- CASE 'city' -%]City + [%- CASE 'state' -%]State + [%- CASE 'zipcode' -%]ZIP/Postal code + [%- CASE 'country' -%]Country + [%- CASE 'email' -%]Primary email + [%- CASE 'phone' -%]Primary phone + [%- CASE 'mobile' -%]Mobile phone + [%- CASE 'fax' -%]Fax + [%- CASE 'emailpro' -%]Secondary email + [%- CASE 'phonepro' -%]Secondary phone + [%- CASE 'B_streetnumber' -%]Alternate street number + [%- CASE 'B_streettype' -%]Alternate street type + [%- CASE 'B_address' -%]Alternate address + [%- CASE 'B_address2' -%]Alternate address line 2 + [%- CASE 'B_city' -%]Alternate city + [%- CASE 'B_state' -%]Alternate state + [%- CASE 'B_zipcode' -%]Alternate zip code + [%- CASE 'B_country' -%]Alternate country + [%- CASE 'B_email' -%]Alternate email + [%- CASE 'B_phone' -%]Alternate phone + [%- CASE 'dateofbirth' -%]Date of birth + [%- CASE 'branchcode' -%]Library (code) + [%- CASE 'categorycode' -%]Category (code) + [%- CASE 'dateenrolled' -%]Registration date + [%- CASE 'dateexpiry' -%]Expiry date + [%- CASE 'gonenoaddress' -%]Gone no address + [%- CASE 'lost' -%]Lost card + [%- CASE 'debarred' -%]Restricted + [%- CASE 'debarredcomment' -%]Restriction reason + [%- CASE 'contactname' -%]Guarantor surname + [%- CASE 'contactfirstname' -%]Guarantor firstname + [%- CASE 'contacttitle' -%]Guarantor title + [%- CASE 'guarantorid' -%]Guarantor ID + [%- CASE 'borrowernotes' -%]Circulation note + [%- CASE 'relationship' -%]Guarantor relationship + [%- CASE 'sex' -%]Gender + [%- CASE 'flags' -%]Permissions (code) + [%- CASE 'userid' -%]Username + [%- CASE 'opacnote' -%]OPAC note + [%- CASE 'contactnote' -%]Contact note + [%- CASE 'sort1' -%]Sort 1 + [%- CASE 'sort2' -%]Sort 2 + [%- CASE 'altcontactfirstname' -%]Alternate contact first name + [%- CASE 'altcontactsurname' -%]Alternate contact surname + [%- CASE 'altcontactaddress1' -%]Alternate contact address + [%- CASE 'altcontactaddress2' -%]Alternate contact address 2 + [%- CASE 'altcontactaddress3' -%]Alternate contact city + [%- CASE 'altcontactstate' -%]Alternate contact state + [%- CASE 'altcontactzipcode' -%]Alternate contact ZIP/postal code + [%- CASE 'altcontactcountry' -%]Alternate contact country + [%- CASE 'altcontactphone' -%]Alternate contact phone + [%- CASE 'smsalertnumber' -%]SMS alert number + [%- CASE 'sms_provider_id' -%]SMS provider + [%- CASE 'privacy' -%]Privacy (code) + [%- CASE 'privacy_guarantor_checkouts' -%]Guarantor can view checkouts + [%- CASE 'updated_on' -%]Last updated + [%- CASE 'lastseen' -%]Last seen + [%- CASE 'checkprevcheckout' -%]Check previous checkout + [%- CASE DEFAULT -%] [%- END -%] [%- END -%] [%- BLOCK patron_fields_dropdown -%] -- 2.30.2