A dual question if I may: a) Does anyone know in the staff "Add MARC record" page (/koha/cataloguing/addbiblio.pl), how to make the "default" framework totally disappear? If not, how to set an alternate framework (say, BKS) as the "option selected" in the drop down box? Our cataloguers have, over the last few years, unfortunately "forgotten" to save to the correct BKS framework (itself derived from the default) about 700 biblios, so... b) manipulating MySQL directly is trivial (I have tried it on our sandbox) apparently with no loss of integrity. Has anyone ever tried this? and are there any down-sides that I have not detected? Thanks in advance, Paul
Paul A schreef op di 25-03-2014 om 18:13 [-0400]:
a) Does anyone know in the staff "Add MARC record" page (/koha/cataloguing/addbiblio.pl), how to make the "default" framework totally disappear? If not, how to set an alternate framework (say, BKS) as the "option selected" in the drop down box?
You can totally hide it with a bit of jQuery javascript. It would be nice to be able to have an option in the frameworks editor to show/hide individual ones from the cataloguing interface, but that's currently not possible.
b) manipulating MySQL directly is trivial (I have tried it on our sandbox) apparently with no loss of integrity. Has anyone ever tried this? and are there any down-sides that I have not detected?
You don't say what you're actually doing with mysql, but if it's just changing the framework code for a bunch of biblios, I wouldn't expect it to cause issues, but I haven't tried it myself. If it's deleting the default framework, I'd really discourage that. Things might go a bit haywire. -- Robin Sheat Catalyst IT Ltd. ✆ +64 4 803 2204 GPG: 5FA7 4B49 1E4D CAA4 4C38 8505 77F5 B724 F871 3BDF
At 11:38 AM 3/26/2014 +1300, Robin Sheat wrote:
Paul A schreef op di 25-03-2014 om 18:13 [-0400]:
a) Does anyone know in the staff "Add MARC record" page (/koha/cataloguing/addbiblio.pl), how to make the "default" framework totally disappear? If not, how to set an alternate framework (say, BKS) as the "option selected" in the drop down box?
You can totally hide it with a bit of jQuery javascript.
Robin -- many tnx. Having no experience with jQuery, could you suggest the code and how to enable it? And for the following, yes to your first comment, and definitely *not* deleting the framework: UPDATE biblio SET biblio.frameworkcode='BKS' WHERE biblio.frameworkcode LIKE ''; Again thanks and best regards -- Paul
b) manipulating MySQL directly is trivial (I have tried it on our sandbox) apparently with no loss of integrity. Has anyone ever tried this? and are there any down-sides that I have not detected?
You don't say what you're actually doing with mysql, but if it's just changing the framework code for a bunch of biblios, I wouldn't expect it to cause issues, but I haven't tried it myself.
If it's deleting the default framework, I'd really discourage that. Things might go a bit haywire.
--- Maritime heritage and history, preservation and conservation, research and education through the written word and the arts. <http://NavalMarineArchive.com> and <http://UltraMarine.ca>
Paul A schreef op di 25-03-2014 om 19:38 [-0400]:
Robin -- many tnx. Having no experience with jQuery, could you suggest the code and how to enable it?
Not off the top of my head, but between this: http://wiki.koha-community.org/wiki/JQuery_Library and this: http://api.jquery.com/ you should be able to put something together. PS: no need to CC me in replies, I'm already on the list. -- Robin Sheat Catalyst IT Ltd. ✆ +64 4 803 2204 GPG: 5FA7 4B49 1E4D CAA4 4C38 8505 77F5 B724 F871 3BDF
Hello Paul,
Paul A schreef op di 25-03-2014 om 19:38 [-0400]:
Robin -- many tnx. Having no experience with jQuery, could you suggest the code and how to enable it?
The jQuery below $("a[href$='frameworkcode=']").hide(); $("#Frameworks option[value=Default]").hide(); $('li.z3950searchFw:first').hide(); will hide the default framework on the page you requested as well as on the page /cgi-bin/koha/cataloguing/addbooks.pl. I have tested the above in 3.14 and I think the code should be language independent. Hope this helps. Olugbenga Adara
Hello,
Hello Paul,
Paul A schreef op di 25-03-2014 om 19:38 [-0400]:
Robin -- many tnx. Having no experience with jQuery, could you suggest the code and how to enable it?
The jQuery below
$("a[href$='frameworkcode=']").hide(); $("#Frameworks option[value=Default]").hide(); $('li.z3950searchFw:first').hide();
I clicked sent before I noticed you also asked how to enable it. Just get to Administration > System preferences. Then go to the Staff Client section and look for intranetuserjs. If it currently contains no code you can copy and paste the code below, paste and save. $(document).ready(function(){ $("a[href$='frameworkcode=']").hide(); $("#Frameworks option[value=Default]").hide(); $('li.z3950searchFw:first').hide(); }); Olugbenga Adara
participants (3)
-
Olugbenga Adara -
Paul A -
Robin Sheat