EPrints Technical Mailing List Archive

See the EPrints wiki for instructions on how to join this mailing list and related information.

Message: #05884


< Previous (by date) | Next (by date) > | < Previous (in thread) | Next (in thread) > | Messages - Most Recent First | Threads - Most Recent First

Re: [EP-tech] Issue with searchfield labels and checkbox ids


On Wed, Aug 24, 2016 at 6:27 AM, John Salter <J.Salter@leeds.ac.uk> wrote:
> Hi,
>
> Can someone running v3.3.15 check a couple of things for me:
>
> 1.       On the advanced search page, do the search input fields have a
> corresponding <label> element?

Hi John,

No, only checkboxes have a <label> element.

>
> 2.       If you have a multi-checkbox search input, do all the checkboxes
> have the same id attribute?

Yes,

<div><label><input name="type" id="type" value="article"
class="ep_form_checkbox" type="checkbox"> Artículo</label></div>
                        <div><label><input name="type" id="type"
value="book_section" class="ep_form_checkbox" type="checkbox"> Parte
de Libro</label></div>
                        <div><label><input name="type" id="type"
value="monograph" class="ep_form_checkbox" type="checkbox">
Monografía</label></div>
                        <div><label><input name="type" id="type"
value="conference_item" class="ep_form_checkbox" type="checkbox">
Documento de Conferencia</label></div>

/////////////////////////////////////////////

 <div><label><input name="ispublished" id="ispublished" value="pub"
class="ep_form_checkbox" type="checkbox"> Publicado</label></div>
                        <div><label><input name="ispublished"
id="ispublished" value="inpress" class="ep_form_checkbox"
type="checkbox"> En Prensa</label></div>
                        <div><label><input name="ispublished"
id="ispublished" value="submitted" class="ep_form_checkbox"
type="checkbox"> En Evaluación</label></div>
                        <div><label><input name="ispublished"
id="ispublished" value="unpub" class="ep_form_checkbox"
type="checkbox"> Inédito</label></div>

/////////////////////////////////////////////

<div><label><input name="documents.format" id="documents.format"
value="text/html" class="ep_form_checkbox" type="checkbox">
HTML</label></div>
                        <div><label><input name="documents.format"
id="documents.format" value="application/pdf" class="ep_form_checkbox"
type="checkbox"> PDF</label></div>
                        <div><label><input name="documents.format"
id="documents.format" value="application/postscript"
class="ep_form_checkbox" type="checkbox"> Postscript</label></div>
                        <div><label><input name="documents.format"
id="documents.format" value="text/plain" class="ep_form_checkbox"
type="checkbox"> Texto Plano</label></div>
                        <div><label><input name="documents.format"
id="documents.format" value="application/rtf" class="ep_form_checkbox"
type="checkbox"> Rich Text (RTF)</label></div>


Regards,

Cristian



>
>
>
> Cheers,
>
> John
>
>
>
>
> *** Options: http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech
> *** Archive: http://www.eprints.org/tech.php/
> *** EPrints community wiki: http://wiki.eprints.org/
> *** EPrints developers Forum: http://forum.eprints.org/
>