[Bug 12806] New: Adding 'Koha as a CMS' to the OPAC
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=12806 Bug ID: 12806 Summary: Adding 'Koha as a CMS' to the OPAC Change sponsored?: --- Product: Koha Version: master Hardware: All OS: All Status: NEW Severity: new feature Priority: P5 - low Component: OPAC Assignee: oleonard@myacpl.org Reporter: indradg@gmail.com QA Contact: testopia@bugs.koha-community.org This patch implements the simple "Koha as a CMS" feature as described in both Koha manual and the community wiki. http://wiki.koha-community.org/wiki/Koha_as_a_CMS. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=12806 Indranil Das Gupta <indradg@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |indradg@gmail.com Patch complexity|--- |Trivial patch Change sponsored?|--- |Sponsored -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=12806 --- Comment #1 from Indranil Das Gupta <indradg@gmail.com> --- This patch implements the simple "Koha as a CMS" feature as described in both Koha manual and the community wiki, for the 'bootstrap' OPAC theme. http://wiki.koha-community.org/wiki/Koha_as_a_CMS. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=12806 --- Comment #2 from Indranil Das Gupta <indradg@gmail.com> --- Created attachment 31068 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=31068&action=edit Koha as a CMS patch for bootstrap OPAC theme -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=12806 Indranil Das Gupta <indradg@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |Needs Signoff -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=12806 M. de Rooy <m.de.rooy@rijksmuseum.nl> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |m.de.rooy@rijksmuseum.nl --- Comment #3 from M. de Rooy <m.de.rooy@rijksmuseum.nl> --- Indranil: Interesting patch! I wonder if we should move the page contents to another database table instead of putting them in the preferences? You would only need an extra form to handle CRUD ops. It would make translation of these local pages easier too. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=12806 --- Comment #4 from Jonathan Druart <jonathan.druart@biblibre.com> --- Why do you want to add these files into the Koha src? What append if a library has already created these files (pages.pl and pages.tt)? I know the answer: Boom :) -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=12806 Viktor Sarge <viktor.sarge@regionhalland.se> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |viktor.sarge@regionhalland. | |se --- Comment #5 from Viktor Sarge <viktor.sarge@regionhalland.se> --- +1 for shipping the needed .tt-files with a standard install in general. If I remember correctly that would it possible for IT-librarians to activate CMS-mode without having to ask the admin to manhandle any files on the server. "Boom" should be avoided of course :) -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=12806 Indranil Das Gupta <indradg@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Needs Signoff |In Discussion --- Comment #6 from Indranil Das Gupta <indradg@gmail.com> --- (In reply to Jonathan Druart from comment #4)
Why do you want to add these files into the Koha src?
Jonathan: The "Koha as a CMS" as it has existed in the wiki and manual (Appendix E) is essentially an user-driven hack. There has been discussion before http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=7840 about integrating it. This is a feature I use a bit, and when I wrote a small KPZ plugin to provide the WYSIWYG feature for CMS add/edit window, it seemed work well. However, apparently people who wanted to use it had trouble with the pages.tt / pages.pl hand edits.
What append if a library has already created these files (pages.pl and pages.tt)? I know the answer: Boom :)
So, this patch was the next step to make user adoption more seamless. I assume, that if @Marcel's suggestion in included and the pages namespace is re-defined, then there should be no reason for a BLAST? :-) -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=12806 --- Comment #7 from Indranil Das Gupta <indradg@gmail.com> --- (In reply to M. de Rooy from comment #3)
Indranil: Interesting patch! I wonder if we should move the page contents to another database table instead of putting them in the preferences? You would only need an extra form to handle CRUD ops. It would make translation of these local pages easier too.
Marcel: I think I can manage that! Right now I had written a simple KPZ to take care of things on that side. I'm sure I can re-factor that. https://github.com/l2c2technologies/KohaCMS/releases/tag/1.2.2 -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=12806 Marc Véron <veron@veron.ch> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |veron@veron.ch -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=12806 Gaetan Boisson <gaetan.boisson@biblibre.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |gaetan.boisson@biblibre.com --- Comment #8 from Gaetan Boisson <gaetan.boisson@biblibre.com> --- This sounds like a good idea to me! -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=12806 David Cook <dcook@prosentient.com.au> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |dcook@prosentient.com.au --- Comment #9 from David Cook <dcook@prosentient.com.au> --- We have a local patch for "Koha as a CMS", so I should take a look at this as well... -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=12806 David Cook <dcook@prosentient.com.au> changed: What |Removed |Added ---------------------------------------------------------------------------- See Also| |http://bugs.koha-community. | |org/bugzilla3/show_bug.cgi? | |id=11584 -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=12806 --- Comment #10 from David Cook <dcook@prosentient.com.au> --- Comment on attachment 31068 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=31068 Koha as a CMS patch for bootstrap OPAC theme Review of attachment 31068: --> (http://bugs.koha-community.org/bugzilla3/page.cgi?id=splinter.html&bug=12806&attachment=31068) ----------------------------------------------------------------- At a glance, we've implemented this in a very different way. We might want to add lots more IDs and classes so that libraries can have more control of what they hide/show on these extra pages. Most libraries we have don't want to see news, quotes, login boxes, etc on their "pages". ::: koha-tmpl/opac-tmpl/bootstrap/en/modules/pages.tt @@ +45,5 @@
+ </div> + </div> + [% END %] + + [% IF ( page_test ) %]<div id="opacmainuserblock">[% page_test %]</div>[% END %]
Might a better variable name be "page_text" rather than "page_test"? -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=12806 --- Comment #11 from Viktor Sarge <viktor.sarge@regionhalland.se> --- I haven't written an RFC for it yet but we are very much wanting to add a proper way to do this that also gives you navigation for the pages. We are thinking about doing it this way: * Add something under "Tools" where you create the pages and put them in the right hierarchy. When you create a page you are also prompted to fill out all the same areas as opac-main but done with TinyMCE. * Navigation in Opac is automatically created to mirror the above mentioned hierarchy. I'm suggesting first level to be tabs like the one Owen blogged about at http://www.myacpl.org/koha/new-opac-theme-bootstrap/ Level 2,3 etc would perhaps be best as left hand navigation on larger screens. * Move all existing html in sysprefs into the new system and delete the sysprefs that require coding skills. * Add a way to create standalone "widgets" that can be displayed on multiple pages. Either html content or things that run code (like exposing content form RSS-streams or data from reports) I'd say the best solution for storing the necessary information would be a new table like html_content. The table opac_news mostly does what is needed but would have to be renamed. A new general purpose one seems better and then we could a few columns like "type" classification or "location" The thing that both I and the developer I'm talking with the most here have to look into is URLs. We would like nice looking URLs like "cgi-bin/koha/our-libraries.pl" instead of "cgi-bin/koha/page.pl?name=our-libraries". I'm not quite shure what the best approach for that might be. All input would be valuable and I guess I should really file an RFC and create a separate thread for this. The work on this might start during july/august but currently he is working on history for MARC records. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=12806 --- Comment #12 from Gaetan Boisson <gaetan.boisson@biblibre.com> --- Does this need to remain in discussion? -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=12806 Indranil Das Gupta <indradg@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Assignee|oleonard@myacpl.org |indradg@gmail.com -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=12806 Indranil Das Gupta <indradg@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|In Discussion |ASSIGNED -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=12806 Indranil Das Gupta <indradg@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Change sponsored?|Sponsored |--- -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=12806 Gaetan Boisson <gaetan.boisson@biblibre.com> changed: What |Removed |Added ---------------------------------------------------------------------------- See Also| |http://bugs.koha-community. | |org/bugzilla3/show_bug.cgi? | |id=14980 -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=12806 --- Comment #13 from Gaetan Boisson <gaetan.boisson@biblibre.com> --- I am still very much in favor of brining this into master, even in a very unpolished way that will allow us to build upon later. Fridolin has done a POC in bug 14980. -- You are receiving this mail because: You are watching all bug changes.
participants (1)
-
bugzilla-daemon@bugs.koha-community.org