[Koha-devel] ChatGPT and Koha

Uwe Dierolf uwe.dierolf at kit.edu
Wed Feb 22 08:31:17 CET 2023


Hi all,

yes, ChatGPT is awesome.

I asked ChatGPT to write a Koha plugin that places some javascript code
into pages of the staff frontend.
The code was as expected as far as I can say this, cause I never
developed a Koha plugin but it was pretty similar to the code which you
can find in the KitchenSink plugin.
Then I asked the Bot to activate the javascript only on specific pages having
a specific page id. Looked also very convincing.
Last but not least I wanted to know how to create the kpz file and got
an answer too.
Perhaps ChatGPT can produce the code for the vue.js based frontend.
Or perhaps copilot already can do this ;-)

Best regards, Uwe

--------------------------------------------------------------------------
Uwe Dierolf
Karlsruher Institut für Technologie (KIT)
KIT-Bibliothek
--------------------------------------------------------------------------

Am Wed, Feb 22, 2023 at 08:45:47AM +0200 schrieb Andreas Roussos:
> Hi David,
> 
> FWIW, a couple of weeks ago I copied and pasted two snippets of Perl code from Koha because I couldn't understand what type of variable they were generating. ChatGPT came back with a pretty comprehensive answer about hash references.
> 
> What impressed me (apart from the quality of its reply) was that I copied/pasted the code in a hurry including the line numbers preceding each line, however that did not seem to confuse ChatGPT at all!
> 
> Kind regards,
> 
> Andreas
> 
> On 2023-02-22 02:53, David Cook wrote:
> 
> 
>     Hi all,
> 
>      
> 
>     Like many around the world, I may have been bitten by the ChatGPT bug…
> 
>      
> 
>     Most of my ChatGPT questions have been more general in nature, but I figured I’d ask it about Koha, as there is a lot of public information, but it’s still a niche topic.
> 
>      
> 
>     I asked it to generate me a Koha plugin, and it refused for a while, but eventually I was able to convince it to try. The result wouldn’t even compile, but it got a lot of things right. In other conversations, it’s made mistakes but always done a good job of fixing its mistakes.
> 
>      
> 
>     Has anyone else played with ChatGPT and Koha or ChatGPT in general (on IT topics)?
> 
>      
> 
>     David Cook
> 
>     Senior Software Engineer
> 
>     Prosentient Systems
> 
>     Suite 7.03
> 
>     6a Glen St
> 
>     Milsons Point NSW 2061
> 
>     Australia
> 
>      
> 
>     Office: 02 9212 0899
> 
>     Online: 02 8005 0595
> 
>      
> 
> 
>     _______________________________________________
>     Koha-devel mailing list
>     Koha-devel at lists.koha-community.org
>     https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-devel
>     website : https://www.koha-community.org/
>     git : https://git.koha-community.org/
>     bugs : https://bugs.koha-community.org/
> 

> _______________________________________________
> Koha-devel mailing list
> Koha-devel at lists.koha-community.org
> https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-devel
> website : https://www.koha-community.org/
> git : https://git.koha-community.org/
> bugs : https://bugs.koha-community.org/



More information about the Koha-devel mailing list