[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
Tue Feb 16 15:05:06 CET 2016


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

Rémi Mayrand-Provencher <remi.mayrand-provencher at inLibro.com> changed:

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

--- Comment #19 from Rémi Mayrand-Provencher <remi.mayrand-provencher at inLibro.com> ---
Created attachment 48125
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=48125&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 >>

Squashed all previous commits into one as asked by comment #15.
I did not see any changes made to the database so I didn't change anything
related to that.

Bug8609 - Removed useless plugin_parameters sub
bug8609 fixes for comment #15 and #16
bug8609 Use Modern::Perl instead of strict and warnings

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


More information about the Koha-bugs mailing list