[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 Jul 30 14:42:12 CEST 2015
http://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 #38961|0 |1
is obsolete| |
--- Comment #12 from Rémi Mayrand-Provencher <remi.mayrand-provencher at inLibro.com> ---
Created attachment 41231
-->
http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=41231&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.
Changes:
C4/Installer/PerlDependencies.pm -
Regexp::Common::URI dependence added
cataloguing/value_builder/url.pl - new file
koha-tmpl/intranet-tmpl/prog/en/modules/authorities/authorities.tt - new
function called in url.pl
koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/addbiblio.tt - new
function called in url.pl
koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/additem.tt - new
function called in url.pl
koha-tmpl/intranet-tmpl/prog/en/modules/tools/batchMod-edit.tt - new
function called in url.pl
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 >>
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list