Bugzilla – Attachment 31464 Details for
Bug 7817
Items Permanent location (shelving location) is set to NULL when item is edited
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 7817: (followup) add test on MARC bibliographic framework test
Bug-7817-followup-add-test-on-MARC-bibliographic-f.patch (text/plain), 3.26 KB, created by
Tomás Cohen Arazi (tcohen)
on 2014-09-08 15:30:00 UTC
(
hide
)
Description:
Bug 7817: (followup) add test on MARC bibliographic framework test
Filename:
MIME Type:
Creator:
Tomás Cohen Arazi (tcohen)
Created:
2014-09-08 15:30:00 UTC
Size:
3.26 KB
patch
obsolete
>From 6c34c8b650c1894a7696fc26de72d25ce94f2b5d Mon Sep 17 00:00:00 2001 >From: Tomas Cohen Arazi <tomascohen@gmail.com> >Date: Mon, 8 Sep 2014 12:28:41 -0300 >Subject: [PATCH] Bug 7817: (followup) add test on MARC bibliographic framework > test > >Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com> >--- > admin/checkmarc.pl | 15 ++++++++++ > .../prog/en/modules/admin/checkmarc.tt | 34 ++++++++++++++++++++++ > 2 files changed, 49 insertions(+) > >diff --git a/admin/checkmarc.pl b/admin/checkmarc.pl >index a01ccc8..fbd1252 100755 >--- a/admin/checkmarc.pl >+++ b/admin/checkmarc.pl >@@ -244,6 +244,21 @@ if (scalar(@$invalid_authtypecodes) > 0) { > $template->param(authtypecode_info => $invalid_authtypecodes); > } > >+# checks items.permanent_location is not mapped >+$sth = $dbh->prepare("SELECT frameworkcode, frameworktext, tagfield, tagsubfield >+ FROM marc_subfield_structure >+ LEFT JOIN biblio_framework USING (frameworkcode) >+ WHERE kohafield='permanent_location' OR >+ kohafield='items.permanent_location'"); >+$sth->execute; >+my $permanent_location_mapped = $sth->fetchall_arrayref({}); >+if (scalar(@$permanent_location_mapped) > 0) { >+ $total++; >+ $template->param(permanent_location_mapped => 1); >+ $template->param(mapped_permanent_location => $permanent_location_mapped); >+} >+ >+ > $template->param(total => $total, > ); > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/checkmarc.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/checkmarc.tt >index d93ada7..de9129e 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/checkmarc.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/checkmarc.tt >@@ -222,6 +222,40 @@ > <td>all authority types used in the frameworks are defined</td> > </tr> > [% END %] >+ >+ [% IF ( permanent_location_mapped ) %] >+ <tr> >+ <td style="vertical-align:top;">items.permanent_location mapped</td> >+ <td>The following mappings exist for items.permanent_location, and they shouldn't. >+ <table> >+ <tr> >+ <th>Framework code</th> >+ <th>Framework description</th> >+ <th>Tag</th> >+ <th>Subfield</th> >+ </tr> >+ [% FOREACH mapped_perm_loc IN mapped_permanent_location %] >+ <tr> >+ <td>[% mapped_perm_loc.frameworkcode %]</td> >+ [% IF ( mapped_perm_loc.frameworkcode ) %] >+ <td>[% mapped_perm_loc.frameworktext %]</td> >+ [% ELSE %] >+ <td>Default framework</td> >+ [% END %] >+ <td>[% mapped_perm_loc.tagfield %]</td> >+ <td>[% mapped_perm_loc.tagsubfield %]</td> >+ </tr> >+ [% END %] >+ </table> >+ </td> >+ </tr> >+ [% ELSE %] >+ <tr> >+ <td>OK</td> >+ <td>items.permanent_location is not mapped on the frameworks</td> >+ </tr> >+ [% END %] >+ > <!-- --> > [% IF ( total ) %] > <tr> >-- >1.9.1
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 7817
:
28949
|
28970
|
28971
|
29093
|
30350
|
30923
|
30924
|
31133
|
31134
| 31464