Bugzilla – Attachment 36009 Details for
Bug 13729
Give news in Opac a unique anchor
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 13729 - [SIGNED-OFF] Give news in Opac a unique anchor
Bug-13729---SIGNED-OFF-Give-news-in-Opac-a-unique-.patch (text/plain), 1.87 KB, created by
Magnus Enger
on 2015-02-18 21:53:31 UTC
(
hide
)
Description:
Bug 13729 - [SIGNED-OFF] Give news in Opac a unique anchor
Filename:
MIME Type:
Creator:
Magnus Enger
Created:
2015-02-18 21:53:31 UTC
Size:
1.87 KB
patch
obsolete
>From bc62e54ade641db41c5532a1c9da44b1474ba1ab Mon Sep 17 00:00:00 2001 >From: Viktor Sarge <viktor.sarge@regionhalland.se> >Date: Wed, 18 Feb 2015 21:02:09 +0000 >Subject: [PATCH] Bug 13729 - [SIGNED-OFF] Give news in Opac a unique anchor > >This patch introduces the use of the idnew-value from the opac_news table as a base for a unique anchor on each newsitem in Opac. > >The anchor can be used for linking to specific newsitems and also for improving bug 7843 (RSS stream for news) with a unique link to each item in the RSS stream. > >Test plan: >* Make shure you have a few news in the opac. Best is if it's enough to hide a few beneath the bottom of the window. >* Install the patch. >* Verify that you can access newitems with links like mykoha/cgi-bin/koha/opac-main.pl#newsitem4 >* Experiment with removing newsitems and verify that that the newsitem-id stay unique to each newsitem. > >Signed-off-by: Magnus Enger <magnus@enger.priv.no> >Works as advertised. Nice enhancement! >--- > koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-main.tt | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-main.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-main.tt >index bda8913..2329b74 100644 >--- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-main.tt >+++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-main.tt >@@ -41,7 +41,7 @@ > <div id="news" class="newscontainer"> > [% FOREACH koha_new IN koha_news %] > <div class="newsitem"> >- <h4 class="newsheader">[% koha_new.title %]</h4> >+ <a name="newsitem[% koha_new.idnew %]"></a><h4 class="newsheader">[% koha_new.title %]</h4> > <div class="newsbody">[% koha_new.new %]</div> > <div class="newsfooter">(published on [% koha_new.newdate %])</div> > </div> >-- >1.9.1
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 13729
:
36007
|
36009
|
36026