Quick question I hope: I created a framework and then immediately deleted it - and it said my template was used by 7 items -- how is that possible?? Thanks Nicole
Ghosts? Seriously though that sounds like a bug ill attempt to replicate it when I get back to my desk Chris On 27/04/2010, Nicole Engard <nengard@gmail.com> wrote:
Quick question I hope:
I created a framework and then immediately deleted it - and it said my template was used by 7 items -- how is that possible??
Thanks Nicole _______________________________________________ Koha mailing list Koha@lists.katipo.co.nz http://lists.katipo.co.nz/mailman/listinfo/koha
Reply inline: On Mon, April 26, 2010 23:19, Nicole Engard wrote:
Quick question I hope:
I created a framework and then immediately deleted it - and it said my template was used by 7 items -- how is that possible??
Are you reporting a bug? Items attach to bibliographic records and not to MARC bibliographic frameworks. Are you not referring to the record editor in which the bibliographic framework may have been in use. I do not find an error message with those exact words. If you have not transcribed the error message exactly, please reproduce the error and transcribe the error message exactly as it appears on the screen. I had a thought about the issue which you are reporting but I suspect that there is a mismatch in your precise description of the issue. Thomas Dukleth Agogme 109 E 9th Street, 3D New York, NY 10003 USA http://www.agogme.com +1 212-674-3783
Not reporting an error yet - waiting to see if anyone else has a problem similar to this. If it was an error I would report it as a bug. As for the way I worded it - yes, I meant bib records. Nicole On Mon, Apr 26, 2010 at 9:13 PM, Thomas Dukleth <kohalist@agogme.com> wrote:
Reply inline:
On Mon, April 26, 2010 23:19, Nicole Engard wrote:
Quick question I hope:
I created a framework and then immediately deleted it - and it said my template was used by 7 items -- how is that possible??
Are you reporting a bug?
Items attach to bibliographic records and not to MARC bibliographic frameworks. Are you not referring to the record editor in which the bibliographic framework may have been in use.
I do not find an error message with those exact words. If you have not transcribed the error message exactly, please reproduce the error and transcribe the error message exactly as it appears on the screen.
I had a thought about the issue which you are reporting but I suspect that there is a mismatch in your precise description of the issue.
Thomas Dukleth Agogme 109 E 9th Street, 3D New York, NY 10003 USA http://www.agogme.com +1 212-674-3783
* Nicole Engard (nengard@gmail.com) wrote:
Not reporting an error yet - waiting to see if anyone else has a problem similar to this. If it was an error I would report it as a bug. As for the way I worded it - yes, I meant bib records.
Hi Nicole I can't recreate it. I created a framework called TEST, then deleted it. No error message, (just the confirmation box) Nothing about biblios attached. This is running the latest code from master. Chris -- Chris Cormack Catalyst IT Ltd. +64 4 803 2238 PO Box 11-053, Manners St, Wellington 6142, New Zealand
Okay, I'll try again (I too am on the latest code) and see if I can make it happen again :) Thanks!! Nicole On Mon, Apr 26, 2010 at 10:21 PM, Chris Cormack <chrisc@catalyst.net.nz> wrote:
* Nicole Engard (nengard@gmail.com) wrote:
Not reporting an error yet - waiting to see if anyone else has a problem similar to this. If it was an error I would report it as a bug. As for the way I worded it - yes, I meant bib records.
Hi Nicole
I can't recreate it. I created a framework called TEST, then deleted it. No error message, (just the confirmation box) Nothing about biblios attached.
This is running the latest code from master.
Chris -- Chris Cormack Catalyst IT Ltd. +64 4 803 2238 PO Box 11-053, Manners St, Wellington 6142, New Zealand
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. 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 --> 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. -- Owen -- Web Developer Athens County Public Libraries http://www.myacpl.org
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 [...]
Added to Bugzilla: http://bugs.koha.org/cgi-bin/bugzilla3/show_bug.cgi?id=4424 And patch sent with Thomas' suggested fix. Thanks Thomas! -- Owen -- Web Developer Athens County Public Libraries http://www.myacpl.org
participants (5)
-
Chris Cormack -
Chris Cormack -
Nicole Engard -
Owen Leonard -
Thomas Dukleth