Bugzilla – Attachment 31228 Details for
Bug 12823
Add some hints for Host, Database and SRU search fields mappings
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 12823: Add some hints for Host and Database when hovering their labels
Bug-12823-Add-some-hints-for-Host-and-Database-whe.patch (text/plain), 3.58 KB, created by
Marcel de Rooy
on 2014-08-28 07:12:48 UTC
(
hide
)
Description:
Bug 12823: Add some hints for Host and Database when hovering their labels
Filename:
MIME Type:
Creator:
Marcel de Rooy
Created:
2014-08-28 07:12:48 UTC
Size:
3.58 KB
patch
obsolete
>From deeb52d32984a46cf681f9fc4069e6b0b4849815 Mon Sep 17 00:00:00 2001 >From: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> >Date: Tue, 26 Aug 2014 10:31:29 +0200 >Subject: [PATCH] Bug 12823: Add some hints for Host and Database when > hovering their labels >Content-Type: text/plain; charset=utf-8 > >When adding or editing a SRU server, the red Required text will be >appended with another hint how to fill these fields. > >Test plan: >Add/Edit SRU server. Hover over the Hostname and Database label. >Add/Edit Z39.50 server. Hover again. No additional text. >--- > .../prog/en/modules/admin/z3950servers.tt | 27 ++++++++++++++++++- > 1 files changed, 25 insertions(+), 2 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/z3950servers.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/z3950servers.tt >index 79643c2..56d174a 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/z3950servers.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/z3950servers.tt >@@ -46,6 +46,29 @@ > timeout: { number: true } > } > }); >+ >+ // A few documentation hints for users adding/editing SRU server: >+ $("#host_docline").hide(); >+ $("#database_docline").hide(); >+ [% IF (server.servertype||type) == 'sru' %] >+ $("#host_label").hover( >+ function( event ) { >+ $("#host_docline").show(); >+ }, >+ function( event ) { >+ $("#host_docline").hide(); >+ } >+ ); >+ $("#database_label").hover( >+ function( event ) { >+ $("#database_docline").show(); >+ }, >+ function( event ) { >+ $("#database_docline").hide(); >+ } >+ ); >+ [% END %] >+ > $("#serverentry").submit(function( event ) { > // copy show_sru_fields to hidden counterpart > $('#sru_fields').val( $('#show_sru_fields').val() ); >@@ -117,11 +140,11 @@ > <ol> > <li><label for="name">Server name: </label><input type="text" name="servername" id="servername" size="65" maxlength="100" onblur="toUC(this)" value="[% server.servername | html %]"/></li> > >- <li><label for="host" class="required">Hostname: </label> <input type="text" name="host" id="host" size="30" value="[% server.host %]" required="required" /> <span class="required">Required</span> >+ <li><label for="host" class="required" id="host_label">Hostname: </label> <input type="text" name="host" id="host" size="30" value="[% server.host %]" required="required" /> <span class="required">Required<span id="host_docline">. The host name should only contain the domain name.</span></span> > </li> > <li><label for="port" class="required">Port: </label> <input type="text" name="port" id="port" size="5" value="[% server.port %]" required="required" /> <span class="required">Required</span> > </li> >- <li><label for="db" class="required">Database: </label> <input type="text" name="db" id="db" value="[% server.db %]" required="required" /> <span class="required">Required</span> >+ <li><label for="db" class="required" id="database_label">Database: </label> <input type="text" name="db" id="db" value="[% server.db %]" required="required" /> <span class="required">Required<span id="database_docline">. The path name goes into Database, whereas the domain name goes into Hostname.</span></span> > </li> > <li><label for="userid">Userid: </label> <input type="text" name="userid" id="userid" value="[% server.userid %]" /> > </li> >-- >1.7.7.6
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 12823
:
31154
|
31155
|
31156
|
31157
|
31228
|
31229
|
33981
|
33982
|
34690
|
34691
|
34695
|
34696