[Koha-bugs] [Bug 8609] Add an URL validation plugin for authority and biblio frameworks

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Thu Dec 15 16:35:45 CET 2016


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=8609

Charles Farmer <charles.farmer at inlibro.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #48125|0                           |1
        is obsolete|                            |

--- Comment #23 from Charles Farmer <charles.farmer at inlibro.com> ---
Created attachment 58205
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=58205&action=edit
Bug 8609 - Add an URL validation plugin for authority and biblio frameworks

This patch adds a new validation plugin to validate that a field/subfield
contains a valid url. This plugin that can be used in biblio and authority
frameworks.

Testing:

I) Before applying:

0) Go to the Cataloging module: menu->More->Cataloging;
1) Click <<New record -> default framework>> bouton;
2) Click tab << 8 >>;
3) Insert a text (for example "test") in the 856->u input field;
4) Click out of the input field;
5) Validate no message;

II) After Applying:

i) field/subfield plugin attach

0) In Koha adminstration, click << MARC bibliographic framework >>;
1) In Default framework, click << MARC structure >>;
2) Search field 856 and click << Subfields >>;
3) Click << u >>;
4) In Other options -> Plugin, choose url.pl

ii) Insert a text in the 856->u input field

0) Go to the Cataloging module: menu->More->Cataloging;
1) Click <<New record -> default framework>> bouton;
2) Click tab << 8 >>;
3) Insert a text (for example "test") in the 856->u input field;
4) Click out of the input field;
5) Validate message:
<< The field 856$u must contain a valid URL!
ex : http://www.google.com >>

----

This patch is a simple rebase to ease future developments.
Comments #20, #21 and #22 will be addressed in a another commit.

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list