[Koha] frameworks question
Thomas Dukleth
kohalist at agogme.com
Thu Apr 29 15:28:23 NZST 2010
Reply inline:
On Tue, April 27, 2010 12:44, Owen Leonard wrote:
>> Items attach to bibliographic records and not to MARC bibliographic
>> frameworks.
>
> But bibliographic records are all recorded with a frameworkcode, and
> the frameworks system checks to see if any existing bibliographic
> records use a particular framework before it is deleted.
Owen, thank you for identifying what should be happening. If
biblio_framework.pl line 94 is changed from:
my $sth = $dbh->prepare("select count(*) as total from marc_tag_structure
where frameworkcode=?");
to
my $sth = $dbh->prepare("select count(*) as total from `biblio` where
frameworkcode=?");
thus counting matching records in the biblio table instead of the
marc_tag_structure table, then all should be well.
> This is the
> error message she's reporting, and it can be found in the frameworks
> management template, admin/biblio_framework.tmpl:
>
> <!-- TMPL_IF NAME="total" -->
> <p><strong>This framework is used <!-- TMPL_VAR NAME="total"
> --> times</strong>.</p>
> <!-- /TMPL_IF -->
As I suspected, "template was used by 7 items", was not an accurate
transcription of the message. Owen went directly to the correct part of
the code identifying the obvious corresponding message.
I was overly hasty in my effort to find matching message text and merely
searched for use of "items" in combination with "template" or "framework".
I also searched for "was used" but had not thought to change the verb
tense.
>
> Nicole, try querying the biblio table for the frameworkcode of the
> framework you're trying to delete. That at least will determine
> whether the framework check is accurate or not.
The framework check should be for the biblio table as you identify.
Thomas Dukleth
Agogme
109 E 9th Street, 3D
New York, NY 10003
USA
http://www.agogme.com
+1 212-674-3783
[...]
More information about the Koha
mailing list