From e9317c71ad663f5d617be1e8a831eafc4fdd1b90 Mon Sep 17 00:00:00 2001 From: Marcel de Rooy 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..cc8e25a 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 @@
  1. -
  2. Required +
  3. Required. The host name should only contain the domain name.
  4. Required
  5. -
  6. Required +
  7. Required. The path name goes into Database, whereas the domain name goes into Hostname.
  8. -- 1.7.7.6